Created
October 30, 2020 02:59
-
-
Save information-security/960ac6ece3303fdf7949fe7142e4c54b to your computer and use it in GitHub Desktop.
How to enable Public/Private key ssh authentication
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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