DreamingWell Logo

SSH Passkey

Posted by Travis Collins at February 21, 2005 11:36 PM

Here is a nifty trick to pair an ssh client and server. Using this technique, you'll be able to SSH from one computer to another without a password.

Always use common sense when by passing authentications schemes. This particular technique removes the use of a password to access a server. Meaning if someone gains access to your client terminal, then they immediately have access to your server terminal.

From Client terminal, create a key.

ssh-keygen -t dsa

This only needs to be done once per client. If you do not wish to enter a password each time you ssh to a server, then simply do not provide a passphrase.

This public part of this key will be stored on your server. When the client terminal connects, the private part of this key will be used to authenicate; this is instead of a simple password.

Use this putkey.sh script (thanks arenasoftware.com) from your client to place the public part of your newly generated key on the server.

sh ./putkey.sh user@host.tld

To remove this from your server, remove the entry from the .ssh directory in your home path.

 

Post a comment




Remember Me?


Flickr Feed

IMG_0037.JPGIMG_0036.JPGIMG_0035.JPGIMG_0034.JPGIMG_0032.JPG

Twitter Status

Travis is gearing up for a DreamingWell product announcement that's been in the works for 6 months. :)

Last Seen in

Addison Heights, Virginia

 

Privacy Policy

|

Copyright DreamingWell.com 2008