Re: Failed publickey problem
- From: Adam <news@xxxxxxxxxxxxxxxx>
- Date: Sun, 18 Jan 2009 21:47:48 GMT
In message <fB4cl.2164$%54.226@xxxxxxxxxxxxxxxxxxxx>, Darren Dunham wrote:
Adam <news@xxxxxxxxxxxxxxxx> wrote:
Now I've got it basically working for the admin user, I'm trying to
extend it to meet my needs - namely being able to log in as two
different users. I'm not sure I understand what should be happening
in theory though. When I start a session using Putty it askes me to
"login as:". Is this referring to logging in as some other user
which exists on my system?
It's asking for what account you expect to access on the target
system.
OK, I want to log in as "adam" so I copied the authorized_keys file
so it is used by sshd when I reply "adam" to the "login as:" prompt.
However, the client returns: "server refused our key" even though both
the public and private keys are identical to the working "admin"
session. Am I doing something wrong?
Here's a chunk of the server log, first for a successful "admin" login:
debug1: KEX done
debug1: userauth-request for user admin service ssh-connection method none
debug1: attempt 0 failures 0
Failed none for admin from 192.168.0.1 port 49473 ssh2
debug1: userauth-request for user admin service ssh-connection method publickey
debug1: attempt 1 failures 0
debug1: test whether pkalg/pkblob are acceptable
debug1: temporarily_use_uid: 0/0 (e=0/0)
debug1: trying public key file /mnt/HDA_ROOT/.config/ssh/authorized_keys_admin
debug1: fd 4 clearing O_NONBLOCK
debug1: matching key found: file /mnt/HDA_ROOT/.config/ssh/authorized_keys_admin, line 1
Found matching RSA key: 7d:31:91:45:fb:85:89:7c:8b:3b:5d:da:cb:af:d8:eb
debug1: restore_uid: 0/0
Postponed publickey for admin from 192.168.0.1 port 49473 ssh2
debug1: userauth-request for user admin service ssh-connection method publickey
debug1: attempt 2 failures 0
debug1: temporarily_use_uid: 0/0 (e=0/0)
debug1: trying public key file /mnt/HDA_ROOT/.config/ssh/authorized_keys_admin
debug1: fd 4 clearing O_NONBLOCK
debug1: matching key found: file /mnt/HDA_ROOT/.config/ssh/authorized_keys_admin, line 1
Found matching RSA key: 7d:31:91:45:fb:85:89:7c:8b:3b:5d:da:cb:af:d8:eb
debug1: restore_uid: 0/0
debug1: ssh_rsa_verify: signature correct
....and for an unsuccessful "adam" login:
debug1: KEX done
debug1: userauth-request for user adam service ssh-connection method none
debug1: attempt 0 failures 0
Failed none for adam from 192.168.0.1 port 49536 ssh2
debug1: userauth-request for user adam service ssh-connection method publickey
debug1: attempt 1 failures 0
debug1: test whether pkalg/pkblob are acceptable
debug1: temporarily_use_uid: 502/100 (e=0/0)
debug1: trying public key file /mnt/HDA_ROOT/.config/ssh/authorized_keys_adam
debug1: restore_uid: 0/0
debug1: temporarily_use_uid: 502/100 (e=0/0)
debug1: trying public key file /mnt/HDA_ROOT/.config/ssh/authorized_keys_adam
debug1: restore_uid: 0/0
Failed publickey for adam from 192.168.0.1 port 49536 ssh2
Thanks a lot,
Adam
--
Adam Richardson
Carpe Diem
.
- Follow-Ups:
- Re: Failed publickey problem
- From: Darren Dunham
- Re: Failed publickey problem
- References:
- Re: Failed publickey problem
- From: Darren Dunham
- Re: Failed publickey problem
- From: Adam
- Re: Failed publickey problem
- From: Darren Dunham
- Re: Failed publickey problem
- From: Adam
- Re: Failed publickey problem
- From: Darren Dunham
- Re: Failed publickey problem
- Prev by Date: Re: Cannot ssh to OpenSolaris after upgrade to 2008.11 (build 101) from WinXP
- Next by Date: Re: Limiting SSH keys for git hostinig
- Previous by thread: Re: Failed publickey problem
- Next by thread: Re: Failed publickey problem
- Index(es):