ask ssh lj

Jul. 6th, 2012 06:25 am
rmd: (trinity keyboard)
[personal profile] rmd
so, 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:
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?

Date: 2012-07-07 01:21 am (UTC)
From: [identity profile] achinhibitor.livejournal.com
I'm no expert but assuming you're running the ssh, it can only get the keys from your ~/.ssh/[whichever] file, or from the ssh-agent. You can cut it off from ssh-agent by undefining the SSH_* environment variables it sees. I suspect you can prevent it from seeing your key file by adding "-i /dev/null". The debug message when I try that suggest my ~/.ssh/* files aren't being looked at.

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.

Profile

rmd: (Default)
rmd

June 2025

S M T W T F S
1234567
89 1011121314
15161718192021
22232425262728
2930     

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags
Page generated Jan. 17th, 2026 09:45 am
Powered by Dreamwidth Studios