Click to See Complete Forum and Search --> : how get ssh to stop asking for passord?


lugoteehalt
04-21-2005, 10:43 AM
How can ssh be stopped from asking for a password when log into a remote computer; it's only started asking after a silly do?

Thanks any help.

mrBen
04-21-2005, 11:03 AM
Originally posted by lugoteehalt
How can ssh be stopped from asking for a password when log into a remote computer; it's only started asking after a silly do?

Thanks any help.

You'll need to setup private key encryption stuff to authenticate.

serz
04-21-2005, 12:25 PM
http://www.phy.bnl.gov/computing/gateway/ssh-agent.html
http://www.arches.uga.edu/~pkeck/ssh/

techwise
04-21-2005, 12:57 PM
exactly what was the "silly do"?

m

lugoteehalt
04-22-2005, 12:08 PM
Originally posted by techwise
exactly what was the "silly do"?

m
Installed / on remote computer and accidentally wiped /home partition. Would not then connect with ssh because it said the key, or something, had changed; so I wiped /home/.ssh I think, can't remember, and tried again. This time it worked but wanted the user password for the remote box.:rolleyes:

Thanks for the help - looks a bit bloody complicated, God knows how I managed it in the past.

techwise
04-27-2005, 02:09 PM
ok, easy fix then. just cat the id_rsa.pub key from your client .ssh file into the "authorized_keys" file in the .ssh folder for your user on the server machine.

Make sure that the perms for that "authorized_keys" file are 600 and 700 for the .ssh folder.

The restart sshd on the server.

DimGR
05-01-2005, 03:03 PM
or delete the known hosts file from .ssh

je_fro
05-01-2005, 05:07 PM
or just delete the line from
~/ssh/known_hosts

techwise
05-01-2005, 11:12 PM
is there a mechanism for public key based authentication in the known_hosts file? I didnt know that.

m

lugoteehalt
05-04-2005, 07:23 AM
Thanks.

Used keygen to produce public private key pair and coppied the puublic one to authorised keys in other computer.