Hello all.
i'm using openssh , and i want to know how i can login to a remote computer from mine ( which has a dialup connection -- dynamic ip, but with
a
dyndns.org hostname) without being asked for a password. i used ssh-keygen to generate both dsa & rsa keys and i put the pub keys in the remote computer's ~/.ssh/authorized_keys2 & ~/.ssh/authorized_keys, but it still is asking for a password. What have i done wrong ?
There are several questions here: 1. What password is it asking of you? The RSA and DSA private keys usually have a passphrase associated with them, which the SSH client will ask of you. 2. Have you configured client and server for RSA and/or DSA authentication? 3. Are the SSH client user's public keys in ~/.ssh/authorized_keys[2] in the correct format? Are the permissions on the files correct? Are the filenames correct? IMHO, the best way to discover what the real problem is, is to call sshd with the -d option on the SSH server and use 'ssh -v -v' on the client, monitoring the result. That way, you can trace just about everything that happens on the client as well as the server. This should help you find the cause of your problem. HTH Tobias
I think I know ... On Feb 27 at 11:46, Reckhard, Tobias said (in part):
i'm using openssh , and i want to know how i can login to a remote computer from mine ( which has a dialup connection -- dynamic ip, but with a dyndns.org hostname) without being asked for a password. i used ssh-keygen to generate both dsa & rsa keys and i put the pub keys in the remote computer's ~/.ssh/authorized_keys2 & ~/.ssh/authorized_keys, but it still is asking for a password. What have i done wrong ?
Try this: chmod go-rwx .ssh/authorized_keys* This bit me when I upgraded openssh -- /var/log/messages had a message complaining about it as well. &:-) -- This is joke number 18
participants (2)
-
Andrew McGill
-
Reckhard, Tobias