[LBo] SSH

Troy troythetechguy at gmail.com
Tue Nov 20 15:53:36 CET 2007


I tried both of the options listed below, but neither one seemed to make a
difference.

When you say make the IP of the computer you are ssh-ing FROM "resolve" on
the system you are ssh-ing TO-  I took this to mean adding the IP address of
my client(from) to the /etc/hosts file on the server(to).  Is this correct?


Here is the original contents of my /etc/hosts file:


# The following lines are desirable for IPv6 capable hosts
::1     ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff02::3 ip6-allhosts

I added the local IP address of the client(From) to the bottom of this
list.  Is there somewhere else I should have added it?

After noticing no difference from editing the /etc/hosts file, I returned
the /etc/hosts file to the original, and modified the /etc/ssh/sshd_config
file by adding UseDNS NO to the very bottom of this file, after UsePAM yes.
Is there someplace else in the file I should have added this, or does
placement in the file not matter?

This morning I used putty (in Windows) to login to the server.  Putty
established an instant connection, and prompted me for my username and
password.  Is Putty available on Linux?  How does putty and SSH differ?

Thanks,

Troy

> Nine times out of ten this is caused by DNS reverse lookups. There are 2
> ways to fix this:
>
> 1) Make the IP of the computer you are ssh-ing FROM resolve on the
> system you are ssh-ing TO. The easiest way is to add an entry into your
> /etc/hosts file.
>
> 2) add an entry like this into your sshd_config:
> UseDNS No
>


More information about the QnA mailing list