Sunday, 25 August 2013

Cannot run remote ssh command

Cannot run remote ssh command

Consider the following command:
ssh -o UserKnownHostsFile=Files/known_hosts -i Files/id_rsa 172.16.0.2 foo
This works perfectly on my development box; it does exactly what I want.
However, on the production server where this actually needs to run, it
fails miserably. SSH insists that the host key cannot be verified with
this error message:
Host key verification failed
I spent literally 3 hours straight trying to force this error message to
go away so I can get on with my job; I am now extremely frustrated, to say
the least.
Two machines, same command, same files, same permissions and owner,
different outcomes. What is causing this?

No comments:

Post a Comment