转自:https://www.cnblogs.com/dr228912353/p/9153565.html
-
修改ssh的config文件:
在kail中输入命令:vi /etc/ssh/sshd_config
将 # Authentication:
LoginGraceTime 120
PermitRootLogin prohibit-password
StrictModes yes
改为:
Authentication:
LoginGraceTime 120
PermitRootLogin yes
StrictModes yes
修改完后保存(wq) -
输入命令:service ssh restart
-
用xshell或者xftp连接成功