UPDATE: openSSH - passwordless login

From: Tis Unix (unixdocs72@yahoo.co.uk)
Date: Wed Aug 04 2004 - 10:15:19 EDT


First of all ..... Yes it was a type when I mentioned that I copy id_rsa.pub to ~/.ssh/authorized keys ... I did in fact copy it to authorized_keys AND I used scp .....
 
Thanks to everyone who has offered advice, there are too many to mention. I have looked at everything you wonderful people have mentioned and changed some premissions/configurations but still no luck ....
 
Here is the output of ssh -v ... Look at the end, it goes past the authenticaion method of 'publickey', therefore I am guessing it is not working, but it doesn't say why?
 
Here it is -
 
bash-2.05$ ssh -v server2
OpenSSH_3.8p1, SSH protocols 1.5/2.0, OpenSSL 0.9.7d 17 Mar 2004
debug1: Reading configuration data /usr/local/etc/ssh_config
debug1: Connecting to xxx.xxx.xxx.xxx [xxx.xxx.xx.xxx] port 22.
debug1: Connection established.
debug1: identity file /export/home/weblogs/.ssh/identity type -1
debug1: identity file /export/home/weblogs/.ssh/id_rsa type 1
debug1: identity file /export/home/weblogs/.ssh/id_dsa type -1
debug1: Remote protocol version 1.99, remote software version OpenSSH_3.4p1
debug1: match: OpenSSH_3.4p1 pat OpenSSH*
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_3.8p1
debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug1: kex: server->client aes128-cbc hmac-md5 none
debug1: kex: client->server aes128-cbc hmac-md5 none
debug1: SSH2_MSG_KEX_DH_GEX_REQUEST(1024<1024<8192) sent
debug1: expecting SSH2_MSG_KEX_DH_GEX_GROUP
debug1: SSH2_MSG_KEX_DH_GEX_INIT sent
debug1: expecting SSH2_MSG_KEX_DH_GEX_REPLY
debug1: Host '213.199.34.163' is known and matches the RSA host key.
debug1: Found key in /export/home/weblogs/.ssh/known_hosts:1
debug1: ssh_rsa_verify: signature correct
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug1: SSH2_MSG_NEWKEYS received
debug1: SSH2_MSG_SERVICE_REQUEST sent
debug1: SSH2_MSG_SERVICE_ACCEPT received
debug1: Authentications that can continue: publickey,password,keyboard-interactive
debug1: Next authentication method: publickey
debug1: Trying private key: /export/home/weblogs/.ssh/identity
debug1: Offering public key: /export/home/weblogs/.ssh/id_rsa
debug1: Authentications that can continue: publickey,password,keyboard-interactive
debug1: Trying private key: /export/home/weblogs/.ssh/id_dsa
debug1: Next authentication method: keyboard-interactive
debug1: Authentications that can continue: publickey,password,keyboard-interactive
debug1: Next authentication method: password
user1@server2's password:

Above it goes past publickey authentication and eventually gets to password authentication as a last resort, but no indication why publickey doesn't work ....
 
Anymore help would be appreciated ....
Cheers
Tis
 
Original post .....
 
Hi all,
 
I thought that I had done all the necessary steps for passwordless
login
from server1 to server2 as user1 (have set up the same user accounts on
both servers)

On server1 I have pkgadd'd the openssh pkg, along with openssl, zlib,
libgcc and tcpwrappers. All ok ....
 
I've run `ssh-keygen -t rsa` with NO passphrase as user1, which
produced
id_rsa.pub, which I have copied over to server2 as ~/.ssh/authorized
keys
 
But it's still asking me for a password. I have googled and they all
seem to give me the steps I have already undertaken. Is there something
I am mising ?

Any help would be appreciated
Regards
Tis

                
---------------------------------
 ALL-NEW Yahoo! Messenger - all new features - even more fun!
_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers



This archive was generated by hypermail 2.1.7 : Wed Apr 09 2008 - 23:29:12 EDT