Did you put the ssh2 public keywork (id_rsa.pub) into a file ~/.ssh/authorized_keys2 on the other computer? Are both computers using openssh? If so, maybe one of their configuration files makes ssh1 the default. To make sure ssh2 is what's used, try logging on with "ssh -2 <username@computer>". To make ssh1 work without a password, make a ssh1 keypair and copy identity.pub to the other computer's ~/.ssh/authorized_keys (not authorized_keys2). Note that although I said the ssh2 public key goes in the remote computer's ~/.ssh/authorized_keys2, which works for me, the documentation claims it should be ~/.ssh/authorized_keys. Maybe it would work if you went with the documentation. In any case, all this can be messed up if the /etc/ssh/ssh_config or sshd_config files are changed from the default. For example /etc/ssh/sshd_config could have AuthorizedKeysFile set to a non-default value. And the default PubkeyAuthentication is "yes"; if it has been set to "no" on the remote computer, the method I described won't work. I don't think there's any problem with the two servers using different passwords for the same user name. So long as you use the method I described, the password should be irrelevant.
On Tue, 5 Nov 2002, Jason Lim wrote: > > I already follow what you said(ssh2 with empty passphrase) but when i > type "ssh servername", I still get password prompt. > How to solve this? It's this is because of this two server are using > same user name but with different password? > > > > "Steven J. Yellin" wrote: > > > > For openssh, to log on w/o a password, on the computer from which you > > want to log on, run "ssh-keygen -t rsa" to generate a ssh2 keypair > > (without the "-t rsa" it would make an ssh1 keypair). For ease of use, > > give an empty passphrase. Accept the default location for the keypair, in > > ~.ssh. > > The ssh2 keypair is id_rsa, id_rsa.pub; the ssh1 is identity, > > identity.pub. I assume ssh2 is the default when you use ssh. For the > > ssh2 keypair, copy id_rsa.pub from the computer from which you want to log > > w/o a password to ~./ssh/authorized_keys2 on the computer to which you > > want to log on w/o a password. > > > > On Tue, 5 Nov 2002, Gary Chan wrote: > > > > > Hi, > > > > > > I have used " rsync -e ssh ipass:/home/gary/abc.txt /tmp/def.txt", but > > > it needs to enter password. If I would like to run it as a cronjob, how > > > can I prevent to prompt to enter password > > > > -- Steven Yellin _______________________________________________ Seawolf-list mailing list [EMAIL PROTECTED] https://listman.redhat.com/mailman/listinfo/seawolf-list