jump to navigation

Howto: Setup ssh authentication without password April 25, 2008

Posted by Mayank in ssh, ubuntu.
Tags: , ,
    create rsa/dsa keys using ssh-keygen utility. run the comand ssh-keygen

    mayank@B2 /home/mayank
    $ ssh-keygen
    Generating public/private rsa key pair.
    Enter file in which to save the key (/home/mayank/.ssh/id_rsa):
    Created directory '/home/mayank/.ssh'.
    Enter passphrase (empty for no passphrase):
    Enter same passphrase again:
    Your identification has been saved in /home/mayank/.ssh/id_rsa.
    Your public key has been saved in /home/mayank/.ssh/id_rsa.pub.
    The key fingerprint is:
    a7:00:03:16:e3:31:69:6d:cf:e0:5e:b7:e6:91:2c:80 mayank@B2

    scp the generated public to the target machine under the home directory of the user to which you would like have a password-less login.


Next Steps:

Now when you try to ssh to the remote machine, you will be prompted for the passphrase each time. To avoid this you can use keychain. More information about that is available at the following pages.







No comments yet — be the first.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: