Quantcast
Channel: Jasdeep Singh » quick tips
Viewing all articles
Browse latest Browse all 3

Easily Enable Password Less SSH Logins

$
0
0

I absolutely hate entering in my passwords to different servers I SSH into. And with so many servers at our disposal. I cannot remember the passwords to them all.

Here’s a handy trick to quickly and painlessly add your public SSH keys to your servers’ ~/.ssh/authorized_keys

$ ssh root@server-name.com
root@server-name.com password:

Being a sysadmin, one must be extremely familiar with this command. Use this two liner to quickly copy over your public SSH keys to enable password-less logins:

$ brew install ssh-copy-id # if on Mac OS X
$ ssh-copy-id root@server-name.com

Now, you can do just -

$ ssh root@server-name.com

Enjoy, I hope you find it handy!

PS: Offcourse, change root to your own username


Viewing all articles
Browse latest Browse all 3

Latest Images

Trending Articles





Latest Images