ssh - passwordless login ....

From: Tis Unix (unixdocs72@yahoo.co.uk)
Date: Thu May 27 2004 - 05:20:58 EDT


Hi there,
 
I am trying to setup to login to server2 from server1 via ssh without a password ... This is what I have done so far -
 
On Server1 -
 
ssh-keygen -t rsa .... as <user>
 
This produces the following in /.ssh
 
$ pwd
/home/trevor/.ssh
$ ls -al
total 10
drwx------ 2 trevor other 512 May 27 10:02 .
drwxr-xr-x 3 trevor other 512 May 27 09:56 ..
-rw------- 1 trevor other 883 May 27 09:55 id_rsa
-rw-r--r-- 1 trevor other 227 May 27 09:55 id_rsa.pub

I then copied the the id_rsa.pub file to Server2 and put it in /.ssh and called it authorized_keys. I can log in now, but it's requesting a password .. See output -
 
debug1: Host '213.199.34.163' is known and matches the RSA host key.
debug1: Found key in /home/trevor/.ssh/known_hosts:1
debug1: bits set: 508/1024
debug1: ssh_rsa_verify: signature correct
debug1: Wait SSH2_MSG_NEWKEYS.
debug1: GOT SSH2_MSG_NEWKEYS.
debug1: send SSH2_MSG_NEWKEYS.
debug1: done: send SSH2_MSG_NEWKEYS.
debug1: done: KEX2.
debug1: send SSH2_MSG_SERVICE_REQUEST
debug1: service_accept: ssh-userauth
debug1: got SSH2_MSG_SERVICE_ACCEPT
debug1: authentications that can continue: publickey,password,keyboard-interactive
debug1: next auth method to try is publickey
debug1: key does not exist: /home/trevor/.ssh/identity
debug1: try pubkey: /home/trevor/.ssh/id_rsa
debug1: read SSH2 private key done: name rsa w/o comment success 1
debug1: authentications that can continue: publickey,password,keyboard-interactive
debug1: next auth method to try is publickey
debug1: key does not exist: /home/trevor/.ssh/id_dsa
debug1: next auth method to try is password
trevor@213.199.34.163's password:
debug1: ssh-userauth2 successfull: method password
debug1: channel 0: new [client-session]
debug1: send channel open 0
debug1: Entering interactive session.
debug1: client_init id 0 arg 0
debug1: channel request 0: shell
debug1: channel 0: open confirm rwindow 0 rmax 32768
Last login: Thu May 27 10:11:58 2004 from webstats
Sun Microsystems Inc. SunOS 5.8 Generic February 2000
bash-2.03$ logout

 
What further steps do I need to take to gain passwordless entry ?
 
Thanks in advance
Tis
 
 

                
---------------------------------
  Yahoo! Messenger - Communicate instantly..."Ping" your friends today! Download Messenger Now
_______________________________________________
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:28:44 EDT