I have set up pub/priv keys in using...
ssh-keygeb -b 1024 -t rsa -N <typed my passphrase>
ls -alt ~/.ssh
-rw-r--r-- 1 rtl 100 219 Jul 9 16:31 id_rsa.pub
-rw------- 1 rtl 100 951 Jul 9 16:26 id_rsa
i added the keys to an agent.....
eval `ssh-agent`
then...
ssh-add id_rsa
<typed my passphrase>
I try and log onto localhost......
ssh -v -l <user> localhost
The error i get is......
debug1: Forcing accepting of host key for loopback/localhost.
debug1: bits set: 526/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
debug1: next auth method to try is publickey
debug1: userauth_pubkey_agent: trying agent key id_rsa
debug1: authentications that can continue: publickey
debug1: next auth method to try is publickey
debug1: try pubkey: /data1/rtl/.ssh/id_rsa
debug1: PEM_read_PrivateKey failed
debug1: read SSH2 private key done: name <no key> success 0
Enter passphrase for key '/data1/rtl/.ssh/id_rsa':
debug1: read SSH2 private key done: name rsa w/o comment success 1
debug1: authentications that can continue: publickey
debug1: next auth method to try is publickey
debug1: key does not exist: /data1/rtl/.ssh/id_dsa
debug1: no more auth methods to try
Unable to find an authentication method
debug1: Calling cleanup 0x39a0c(0x0)
It works if i enable passwords in /etc/ssh/sshd_config
what am i doing wrong?
.........Ricky
Start Free Trial