Generate RSA keys on Client
mkdir ~/.ssh
chmod 700 ~/.ssh
ssh-keygen -t rsa -b 4096
Transfer Client Key to Host
ssh-copy-id username@host
Test
ssh username@host
Disable Password Authentication On Host
sudo nano /etc/ssh/sshd_config
Look for <#PasswordAuthentication yes> and change it to <no>.
Restart SSH
sudo service ssh restart
DONE
No comments:
Post a Comment