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