Home » ssh hosting » Currently Reading:

How to configure ssh known_hosts?

January 15, 2010 ssh hosting 3 Comments

I am using OpenSSH on Red Hat Linux. How do I set up the known_hosts file in the .ssh folder so that I can log on to remote machines without typing in a password?

On your local machine, you need to create a private/public key files.
Log in, they type "ssh-keygen -t rsa", and just press enter when asked for the passphrase (no password). It will put two files in your ~/.ssh/ folder. They are "id_rsa" and "id_rsa.pub". Don’t give out your "id_rsa" file, it is private. The "id_rsa.pub" is the public key and you need to add it to the remote computer’s "authorized_keys" file. Once it is added, you should be able to connect with no password.

Currently there are "3 comments" on this Article:

  1. jonny2g says:

    http://amath.colorado.edu/computing/unix/sshknownhosts.html

    This should help get you started.
    References :

  2. lordandmaker says:

    This looks to be closer to answering your question:
    http://www.astro.caltech.edu/~mbonati/WIRC/manual/DATARED/setting_up_no-password_ssh.html
    References :

  3. clievers says:

    On your local machine, you need to create a private/public key files.
    Log in, they type "ssh-keygen -t rsa", and just press enter when asked for the passphrase (no password). It will put two files in your ~/.ssh/ folder. They are "id_rsa" and "id_rsa.pub". Don’t give out your "id_rsa" file, it is private. The "id_rsa.pub" is the public key and you need to add it to the remote computer’s "authorized_keys" file. Once it is added, you should be able to connect with no password.
    References :

Comment on this Article:







Related Articles:

Search This Site

Switch to our mobile site