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.