- IP is 10.157.167.129
- Account name: sfd
- Password: sfd123
- The key of the account sdf
The key of the account root
- Create non-root account
- -rwx------ 1 sfd sfd 410 May 22 09:41 authorized_keys
useradd sfd
- Set this user as sodoers
- Generate key pair for the account sfd
Switch to the account sfd: su – sfd
Generate key: ssh-keygen
Save the public key to your local, the public key is under ~/.ssh/id_rsa.pub
- Set SSHD can be login through password
login with the account sfd,
sudo vim /etc/ssh/sshd_config
Restart sshd service
- Set proxy to resolve cannot reach external issue
sudo vim /etc/profile
source /etc/profile