This post is from a low-reputation account and contains an unverified outbound link. Be cautious before clicking external links.

SSH without password

zeeshanjan(25)
Published in
#ssh
Words
71
Reading
1 min
Listen
Play
8y

0_FV8_NyZ88dQ_FtNx.png

For a developer, it happens to be an irritating task to login into server (using SSH) and typing in the password every time. It can be avoided, if you're on a secure machine (not shared).

Open Terminal - and generate SSH key:

your-local-machine$ ssh-keygen

Now copy that SSH key to your remote machine (server)

your-local-machine$ ssh-copy-id root@your-server-ip

It will ask you your-server-ip password - once the keys are copied, try login without password now.

your-local-machine$ ssh root@your-server-ip

your-server-ip# 

Image source: https://medium.com/@grassfedcode/what-could-be-better-than-ssh-e69561ec1b83

SSH without password | Ecency