peter pilsl <pilsl@goldfisch.at> wrote:
I tried:
ssh -o "StrictHostKeyChecking no" -o "PasswordAuthentication yes" root@vmhost.local
but it doesnt work:
Offending key in /home/peter/.ssh/known_hosts:10
Password authentication is disabled to avoid man-in-the-middle attacks. Keyboard-interactive authentication is disabled to avoid
man-in-the-middle attacks.
Permission denied (publickey,password).
Right. Because "StrictHostKeyChecking" only affects whether keys are
added to the known_hosts file. It doesn't affect existing keys.
And my standard-rescue-disk has ssh enabled but no public key installed.
any idea?
Change the known_hosts file temporarily so there is no existing key.
ssh -o "StrictHostKeyChecking no" -o "UserKnownHostsFile /dev/null" -o"PasswordAuthentication yes"
Or put all that into a config file and use that alternate config file:
ssh -F insecure_config <temphost>
If you use a global known_hosts file rather than just the per-user one, you'll need to override it as well.
--
Darren
在 2009年6月4日星期四 UTC+8上午12:30:38,Darren Dunham写道:
peter pilsl <pilsl@goldfisch.at> wrote:
I tried:
ssh -o "StrictHostKeyChecking no" -o "PasswordAuthentication yes"
root@vmhost.local
but it doesnt work:
Offending key in /home/peter/.ssh/known_hosts:10
Password authentication is disabled to avoid man-in-the-middle attacks.
Keyboard-interactive authentication is disabled to avoid
man-in-the-middle attacks.
Permission denied (publickey,password).
Right. Because "StrictHostKeyChecking" only affects whether keys are
added to the known_hosts file. It doesn't affect existing keys.
And my standard-rescue-disk has ssh enabled but no public key installed. >> >
any idea?
Change the known_hosts file temporarily so there is no existing key.
ssh -o "StrictHostKeyChecking no" -o "UserKnownHostsFile /dev/null" -o"PasswordAuthentication yes"
Or put all that into a config file and use that alternate config file:
ssh -F insecure_config <temphost>
If you use a global known_hosts file rather than just the per-user one,
you'll need to override it as well.
--
Darren
Thanks.
This command helps me.
ssh -o "StrictHostKeyChecking no" -o "UserKnownHostsFile /dev/null" -o "PasswordAuthentication yes"
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 296 |
Nodes: | 16 (2 / 14) |
Uptime: | 66:51:24 |
Calls: | 6,654 |
Files: | 12,200 |
Messages: | 5,331,946 |