Skip to content

Instantly share code, notes, and snippets.

@information-security
Created October 30, 2020 02:59
Show Gist options
  • Save information-security/960ac6ece3303fdf7949fe7142e4c54b to your computer and use it in GitHub Desktop.
Save information-security/960ac6ece3303fdf7949fe7142e4c54b to your computer and use it in GitHub Desktop.
How to enable Public/Private key ssh authentication
Just try these following commands
1) ssh-keygen
Press Enter key till you get the prompt
2) ssh-copy-id -i ~/.ssh/id_rsa.pub root@ip_address
(It will once ask for the password of the host system)
3) ssh root@ip_address
Now you should be able to login without any password
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment