1、登录ssh,用vi来修改,https://www.xqblog.com/6009.html,修改后重启sshd,命令systemctl restart sshd
2、如需要可以关闭selinux,http://blog.51cto.com/bguncle/957315 查看selinux状态,一般是开启的,可用vi编辑,设置为disabled
其他参考:https://blog.csdn.net/ausboyue/article/details/53691953
附:vi的用法
1、登录ssh,用vi来修改,https://www.xqblog.com/6009.html,修改后重启sshd,命令systemctl restart sshd
2、如需要可以关闭selinux,http://blog.51cto.com/bguncle/957315 查看selinux状态,一般是开启的,可用vi编辑,设置为disabled
其他参考:https://blog.csdn.net/ausboyue/article/details/53691953
附:vi的用法