post Category: Internet — Chris @ 8:04 pm — post

A problem i’ve been putting up with recently involves my Mac being used for VPN access to my SSH servers. I’d see this in my logs:

debug1: Local version string SSH-2.0-OpenSSH_4.5
debug1: An invalid name was supplied
Cannot determine realm for numeric host address

..but was unable to find the fix. I tried UseDNS no within sshd_config, no luck.

However, I’ve stumbled across the answer! On your client Mac, add your server to your /etc/hosts file. With that done, try connecting via SSH again - all fixed!

Horaayy..there are 2 comment(s) for me so far ;)

#1

Chris, nice work. This has been annoying me for weeks, and I had simply assumed that the problem was server side. I had tried UseDNS=no, as you had, etc.

Your solution worked a treat! Thanks!

Tim wrote on May 27, 2007 - 11:42 pm
#2

Hi Tim,

Glad to have helped! As you say, this problem had been bugging me too! Hopefully more people can learn about the fix and resolve their problem :)

All the best,
Chris

Chris wrote on May 27, 2007 - 11:44 pm
You can leave a response, or trackback from your own site.

Write Your Comment

Comment Guidelines: Basic XHTML is allowed (a href, strong, em, code). All line breaks and paragraphs will be generated automatically.

You should have a name, right? 
Your email address, I promised I won't tell it to anyone. 
If you have a web site or blog, you can type the URL right here. 
This is where you type your comments. 
Remember my information for the next time I visit.
 

This is a captcha-picture. It is used to prevent mass-access by robots. (see: www.captcha.net)

You must read and type the 4 chars within 0..9 and A..F, and submit the form.

  

Oh no, I cannot read this. Please, generate a