1. create an new account:
useradd ryan
2. modify password of ryan:
passwd ryan
key in the password for user ryan
3. modify
/etc/sudoers
vim /etc/sudoers
4. modify /etc/ssh/sshd_config
vim /etc/ssh/sshd_config
5. restart sshd service:
service sshd restart
6. login by using ryan account
7. switch to root user
sudo su -
转载于:https://blog.51cto.com/ryansong/1379435