Configuring ssh not to prompt for password

octopusgrabbus asked:

I have git successfully installed on one of our Red Hat Linux 5 WS servers, and am using it on our Intranet, not outside our firewall.

Currently, I am prompted for a password when I connect, so what steps do I need to take to make sure the server has the correct keys to avoid prompting for a password? I believe this is an issue of making sure the public keys are present. I’m just not sure how to set that up.

Thanks.

My answer:


Make a keypair, and then copy the public key to the server:

Example:

ssh-keygen -t dsa
ssh-copy-id -i ~/.ssh/id_dsa user@remotehost

View the full question and answer on Server Fault.

Creative Commons License
This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.