开启root登录
1. echo root:your password |sudo chpasswd root
1. sudo sed -i 's/^#\?PermitRootLogin.*/PermitRootLogin yes/g' /etc/ssh/sshd_config;
1. sudo sed -i 's/^#\?PasswordAuthentication.*/PasswordAuthentication yes/g' /etc/ssh/sshd_config;
1. sudo service sshd restart
版权声明:本文为原创文章,版权归 啊友 所有,转载请注明出处!
本文链接:http://www.geeh.cn/32.html
友情提示:如果博客出现404或链接失效,请留言或者联系博主修复!