Created
October 19, 2017 08:47
-
-
Save gdellicarpini/e2bd04d0d067e739a2771efeafae1b75 to your computer and use it in GitHub Desktop.
How to ssh to remote server using private key instead of password.
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
On the server target: | |
- Create (if not exists) a blank file named "authorized_keys" in /home/<username>/.ssh/ | |
- Download PuttyGen | |
- Open PuttyGen | |
- Click on "Generate" | |
- Keep mooving mouse on blank area | |
Once keys are generated: | |
- Copy public key and paste it in the "authorized_keys" file | |
- Save private key on your computer | |
Login: | |
- Open Putty | |
- Insert hostname | |
- Insert username in Connection -> Data -> Auto-login username | |
- Load private key file in Connection -> SSH -> Auth -> Private key file fot authentication | |
- Save Putty Session | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment