Add SSHkey to VPS

https://www.digitalocean.com/community/tutorials/how-to-set-up-ssh-keys-2 Create .ssh folder in root foder mkdir -p ~/.ssh touch ~/.ssh/authorized_keys echo public_key_string >> ~/.ssh/authorized_keys Phần quyền, chỉ root account mới có thể access. chmod -R go= ~/.ssh chmod 700 ~/.ssh chmod 600 ~/.ssh/authorized_keys Disabling Password Authentication on your Server sudo nano /etc/ssh/sshd_config PasswordAuthentication no ChallengeResponseAuthentication no UsePAM no Ubuntu sudo systemctl restart ssh …

Add SSHkey to VPS Read More »