服务器允许ssh登录root

vim打开/etc/ssh/sshd_config

sudo vim /etc/ssh/sshd_config

 

sshd_config中的PermitRootLogin属性改为yes

...
PermitRootLogin yes
...

 

重启sshd服务

sudo service sshd restart

你可能感兴趣的:(杂七杂八解决方案,服务器,ssh,运维)