hi 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 ? regard omicron -- ****** An optimist sees light at the end of every tunnel. A pessimist fears it might be of an incoming train. omicron@omicron.dyndns.org omicron.symonds.net C O G I T O E R G O S U M ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
On Sun, Feb 25, 2001 at 11:58 +0530, omicron wrote:
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 ?
Read "man ssh" and take a look at the "-i" and maybe "-l" options. And once you're bored of always typing this, read about the ~/.ssh/config file. When in doubt, pass the "-v" option to your ssh client invocation and carefully read what is written to the terminal. Everything else is guesswork. virtually yours 82D1 9B9C 01DC 4FB4 D7B4 61BE 3F49 4F77 72DE DA76 Gerhard Sittig true | mail -s "get gpg key" Gerhard.Sittig@gmx.net -- If you don't understand or are scared by any of the above ask your parents or an adult to help you.
Have you set RSAAuthentication yes in /etc/ssh/sshd_config or wherever your system wide configuration file for sshd is? On Sun, 25 Feb 2001, omicron wrote:
hi 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 ?
regard omicron
-- ****** An optimist sees light at the end of every tunnel. A pessimist fears it might be of an incoming train.
omicron@omicron.dyndns.org omicron.symonds.net
C O G I T O E R G O S U M ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
--------------------------------------------------------------------- To unsubscribe, e-mail: suse-security-unsubscribe@suse.com For additional commands, e-mail: suse-security-help@suse.com
All the time you are logging in you have a new IP-address. In this case the ssh should warn you every time that the authenticity can't be established (you are unknown). I don't know exactly if you can really switch off the ask for a password in this case. Martin omicron wrote:
hi 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 ?
All the time you are logging in you have a new IP-address. In this case the ssh should warn you every time that the authenticity can't be established (you are unknown). I don't know exactly if you can really switch off the ask for a password in this case. no this is not true, with dyndns you have a unique (not changing) hostname. if the ip-address changes, ssh automatically adds the ip address to the known_hosts file, but it doesn't handle it as a new address (since the host name is the same) I'm using the same thing without problems, but can't look at it at the moment to help ...
bye Markus -- _____________________________ /"\ Markus Gaugusch ICQ 11374583 \ / ASCII Ribbon Campaign markus@gaugusch.dhs.org X Against HTML Mail / \
Have you checked the ownship and authority of the files? Note that ssh refuses to use a key if it's world readable. Look in /var/log/messages on your workstation and see if ssh complains about it. Anders On Sunday 25 February 2001 07:28, omicron wrote:
hi 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 ?
regard omicron
participants (6)
-
Anders Johansson
-
Gerhard Sittig
-
Markus Gaugusch
-
Martin Haas
-
omicron
-
semat