Tuesday, November 22, 2011

Cannot determine realm for numeric host address

I could not connect today to one of our servers using password less public key ssh login. Using -vvv ssh option would show:
debug1: An invalid name was supplied 
Cannot determine realm for numeric host address 

So from the Red Hat target I inspected the secure log:
$ tail -f /var/log/secure
...
Nov 22 11:37:03 t2215179 sshd[23123]: Authentication tried for admin with correct key but not from a permitted host (host=tools, ip=xxx.xxx.xxx.xxx).
...

This was resolved by adding the server IP to /etc/hosts in the client
$ vi /etc/hosts
...
xxx.xxx.xxx.xxx tools
...

7 comments:

Unknown said...

thanks I added this to client machine, and worked just fine...

DannyStaple said...

This works great - popped an entry on the client and knocked off an off 10 second delay in ssh connections.

valerius said...

Thanks also for me it was a 10 second delay removal

Mike Hamilton said...

I was able to fix by removing GSSAPI from the /etc/ssh/sshd.conf file. Now ssh auth is really fast..

Mike Hamilton said...

I turned off GSSAPI in /etc/ssh/sshd.conf and now the problem is gone.

kamadelva said...

03.2015 your trick's still magic. Thank you!

Unknown said...

thank you very much - that helps very well !

Followers