SSH Passwordless Login Using SSH Keygen in 5 Easy Steps

If You Appreciate What We Do Here On TecMint, You Should Consider:

  1. Stay Connected to: Twitter | Facebook | Google Plus
  2. Subscribe to our email updates: Sign Up Now
  3. Get your own self-hosted blog with a Free Domain at ($3.45/month).
  4. Become a Supporter - Make a contribution via PayPal
  5. Support us by purchasing our premium books in PDF format.
  6. Support us by taking our online Linux courses

We are thankful for your never ending support.

Ravi Saive

I am Ravi Saive, creator of TecMint. A Computer Geek and Linux Guru who loves to share tricks and tips on Internet. Most Of My Servers runs on Open Source Platform called Linux. Follow Me: Twitter, Facebook and Google+

Your name can also be listed here. Got a tip? Submit it here to become an TecMint author.

RedHat RHCE and RHCSA Certification Book
Linux Foundation LFCS and LFCE Certification Preparation Guide

You may also like...

221 Responses

  1. Joy says:

    Hi,

    I have tried passwordless login and working fine from server A to server B. But reverse side it is not working and asking for password.

  2. Lambert Tran says:

    After this is done, can we login the client from the server w/o using password? What about doing this for multiple servers and clients?

    Thank you!

    • Ravi Saive says:

      @Lambert,

      If you have followed instructions correctly, yes you will able to login to remote server without password. For multiple SSH passwordless logins, follow the same instructions on each server.

  3. Ravikumar Wagh says:

    Hello Ravi,

    This is because, if you check ssh config file.

    Default path for ssh authorized keys are in .ssh directory at you home directory.

    ————————————————————————–
    AuthorizedKeysFile .ssh/authorized_keys
    ————————————————————————–

    You can change path if you wish :)

  4. ravi says:

    why we are going to create a .ssh directory on client server?

  5. Yasir says:

    After following above steps i’m unable to login for local host

  6. Sai K says:

    After step 2, when I enter my password, I’ve been getting an error.

    stty: standard input: invalid argument

    Any comments on how to solve this?

  7. dexter says:

    Any way to disable the typing animations? Even ebooks don’t have this. It in no way assists, just distracts & irritates.

    Oh – the info is great btw, worked a treat.

  8. Alexander says:

    It would really be much easier to read your article if you used “source server” and “destination server” instead of IP addresses.

  9. Sowjanya says:

    Great One!!!

  10. Nan Xiao says:

    In step 1: “generate a pair of public keys”, it should be “generate a pair of public/private keys”.

Got something to say? Join the discussion.

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.