1sudo -i
2password
修改完root密码之后
1sudo sed -i 's/^#\?PermitRootLogin.*/ PermitRootLogin yes/g' /etc/ssh/sshd_config;
2sudo sed -i 's/^#\?PasswordAuthentication.*/ PasswordAuthentication yes/g' /etc/ssh/sshd_config;
3sudo service sshd restart
last updated: