Linux允许ssh用root用户登录

允许root登录

vi /etc/ssh/sshd_config

将PermitRootLogin值改yes

重启服务:service sshd restart(/etc/initd.d/sshd restart)

允许不输入密码登录

将PermitEmptyPasswords yes前面的#号去掉

重启服务:service sshd restart(/etc/initd.d/sshd restart)

测试

ssh <ipaddress> 或 ssh <hostname> 或 用putty软件

猜你喜欢

转载自blog.csdn.net/blueblood1/article/details/82930313