ask ssh lj
Jul. 6th, 2012 06:25 amso, when I try to ssh to a certain host, it fails with the message "Permission denied (,password)." Here's the tail end of the ssh -v of the connection:
How do I force ssh to use password authentication and to not try to use my ssh keys?
debug1: Found key in /home/regis/.ssh/known_hosts:156 debug1: ssh_dss_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: ,password debug1: No more authentication methods to try.
How do I force ssh to use password authentication and to not try to use my ssh keys?
no subject
Date: 2012-07-06 11:20 am (UTC)debug1: Authentications that can continue: ,password
I don't think the comma should be there.
Preliminary googling comes up with pointers to this bug (http://thr3ads.net/openssh-bugs/2007/09/1164454-Bug-1361-New-ssh-should-handle-leading-comma-in-authentication-method-list), which seems rather old, but maybe you're hitting something similar.
Or maybe you just need to tweak the sshd config files on the server you're trying to connect to.
Good luck!
no subject
Date: 2012-07-06 01:29 pm (UTC)no subject
Date: 2012-07-06 01:35 pm (UTC)I'm thinking that's still your problem: the reply ",password" is not valid. And since that's coming *from* the appliance, you can't change that.
So you need to make sure the client you're using to connect can deal with that non-standard list in a sane way.
no subject
Date: 2012-07-06 01:47 pm (UTC)no subject
Date: 2012-07-07 02:06 am (UTC)I blame the host passing back ",password" until proven otherwise, which means you can "fix" it by hacking your client if you're so inclined.
no subject
Date: 2012-07-09 09:13 pm (UTC)Bah. Frickin computers.
no subject
Date: 2012-07-07 01:23 am (UTC)no subject
Date: 2012-07-07 01:25 am (UTC)Note there's no prompt for a password. The problem is that the
appliance is sending a leading comma in the list of authentication
method names in the userauth response, and ssh isn't recognising the
"password" method.
That is, the sshd is (somewhat incorrectly) putting a comma at the beginning of the auth methods list, and the ssh is then not parsing it as allowing "password".
Since you can't update the appliance, you've got to get an ssh that you can log in from that handles this particular problem.
no subject
Date: 2012-07-06 12:40 pm (UTC)?
C
no subject
Date: 2012-07-06 12:51 pm (UTC)no subject
Date: 2012-07-06 01:41 pm (UTC)Can you use this client to any other ssh servers with password auth?
C
no subject
Date: 2012-07-06 01:47 pm (UTC)a long shot
Date: 2012-07-06 01:21 pm (UTC)Do you have the ability to originate your SSH connection from more than one source machine? That might let you see if the problem is at the source or the target.
no subject
Date: 2012-07-06 01:25 pm (UTC)> A debug1: No more authentication methods to try.
This might imply that it's not going to take password authentication in any case -- the client is saying that it could still try 'password', but the server doesn't want to accept that.
That said, 'ssh -o PreferredAuthentications=password ' will force the client to try. But if the server is configured with 'PasswordAuthentication no' in sshd_config, then you're outta luck no matter what you tell the client to do.
no subject
Date: 2012-07-07 01:21 am (UTC)But I'm not sure you're interpreting the situation correctly. When I do "ssh -v", the messages suggest that "Authentications that can continue:" is a message from the sshd end saying what it is willing to accept, then the ssh end picks an auth mechanism from the list that it is willing to do and tries that. Which suggests that either your ssh is choking on ",password" itself, or it doesn't think it can present a password.