Skip to content

Instantly share code, notes, and snippets.

@gdellicarpini
Created October 19, 2017 08:47
Show Gist options
  • Save gdellicarpini/e2bd04d0d067e739a2771efeafae1b75 to your computer and use it in GitHub Desktop.
Save gdellicarpini/e2bd04d0d067e739a2771efeafae1b75 to your computer and use it in GitHub Desktop.
How to ssh to remote server using private key instead of password.
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