passwords – Tea-Driven Development https://blog.mattwynne.net Matt Wynne taking it one tea at a time Wed, 21 Aug 2019 13:02:06 +0000 en-US hourly 1 https://wordpress.org/?v=6.2 165828820 Quick and Easy Password-less SSH Login on Remote Servers https://blog.mattwynne.net/2009/01/13/quick-and-easy-password-less-ssh-login-on-remote-servers/ https://blog.mattwynne.net/2009/01/13/quick-and-easy-password-less-ssh-login-on-remote-servers/#comments Tue, 13 Jan 2009 17:34:27 +0000 http://blog.mattwynne.net/2009/01/13/quick-and-easy-password-less-ssh-login-on-remote-servers/ Continue reading "Quick and Easy Password-less SSH Login on Remote Servers"

]]>
Like so many posts in this category, this is surely child’s play to you linux aficionados. For those of us mere morals though, this is a very useful little trick, and it shows how you can easily move data from your local workstation to a remote server using SSH.

If you don’t already have a public / private key pair on your local workstation do this:

ssh-keygen -t rsa

If you have no idea what I’m talking about, try looking for this:

ls ~/.ssh

Did you see anything? You’re looking for a file called id_rsa.pub, I would guess.

Now that you have generated your key, to copy the public key part up to the remote server, do this:

ssh remote-user@remote-server.com “echo ‘cat ~/.ssh/id_rsa.pub‘ >> ~/.ssh/authorized_keys”

You should now be able to dance around the inner bits of the internet to your heart’s content.

Thanks to Dan Lucraft for the technology behind this post.

]]>
https://blog.mattwynne.net/2009/01/13/quick-and-easy-password-less-ssh-login-on-remote-servers/feed/ 1 95