cannot ssh to machine on lan when it has no internet connection

J. Johnston jeremy at
Fri Aug 26 12:55:03 GMT 2005

Simon Morgan wrote:

>On 8/25/05, Ben Pratt <ben at> wrote:
>>I'm not sure if this will work or not but try setting up /etc/hosts to
>>reflect your LAN. I had a friend who had issues when, even though he was
>>connected to the Internet, he had DNS messed up on his FreeBSD system.
>>I'm thinking the SSH server is trying to do some DNS lookups and if you
>>set your hosts file to have the information about the client machine
>>that may be resolved.
>Just to let you know I tried your suggestion and unfortunately it didn't work.
>freebsd-questions at mailing list
>To unsubscribe, send any mail to "freebsd-questions-unsubscribe at"
You could set the UseDNS option in /etc/ssh/sshd_config to no. I found 
this helps when there is no available DNS servers.

Jeremy Johnston (President / Developer)
SmartServ Hosting
Email: jeremy at
Phone: 1-250-402-6634 Ext. 201
Cell: 1-250-402-9583 | 2504029583 at (150 Characters max)
Fax: 1-250-402-6634
Toll Free: 1-866-702-2904

More information about the freebsd-questions mailing list