ssh远程连接命令:ssh root@xxxxxxx
1.vi /etc/ssh/sshd_config
将PermitRootLogin 改为yes,去掉PasswordAuthentication yes前的#
2.service ssh restart
ps:我一开始没写root,连不上是权限的问题
ssh远程连接命令:ssh root@xxxxxxx
1.vi /etc/ssh/sshd_config
将PermitRootLogin 改为yes,去掉PasswordAuthentication yes前的#
2.service ssh restart
ps:我一开始没写root,连不上是权限的问题