I'm attempting to ssh to a remote host:
ssh host.example.com
I get the following:
The authenticity of host 'host.example.com (<no hostip for proxy command>)' can't be established.
RSA key fingerprint is 62:db:31:0b:ce:e3:7b:a1:c7:0f:46:d1:7d:e5:48:10.
Are you sure you want to continue connecting (yes/no)? no
Host key verification failed.
I am using an ssh config in ~/.ssh/config
:
Host host.example.com
User deployuser
HostName host.example.com
IdentityFile ~/.ssh/deployuser_key
The host is listed in /etc/ssh/ssh_known_hosts
and the fingerprint matches. There is no entry in ~/.ssh/known_hosts
.
If I accept the key, it is added to ~/.ssh/known_hosts
. I am not sure what the no hostip for proxy command
indicates and I would like to understand what is causing the problem.
When I run the ssh command with -vvv
I can see that ssh is checking /var/lib/sss/pubconf/known_hosts
and not /etc/ssh/ssh_known_hosts
-- which I believe explains the unexpected behavior (if not the warning message). Once I added the host key to /var/lib/sss/pubconf/known_hosts
(via FreeIPA), the connection proceeded without warnings or prompts.