5

when I am trying to access the server through ssh it says:

ssh: connect to host xx.yyy.zzz.x port 22: Connection refused

and on the server in auth.log it shows following log entry:

Address xx.yyy.zzz.x maps to xx.yyy.zzz.x.static-pune-vsnl.net.in, but this does not map back to the address - POSSIBLE BREAK-IN ATTEMPT!

I have created a user account for that user and it is also in enabled status.

Requested info

  1. It is Ubuntu 11.10
  2. It is configured as SSH Server using openssh-server
  3. I am trying to connect to this server using Putty from Windows 7 i.e. My Desktop
  4. I have also asked this on AskUbuntu: https://askubuntu.com/questions/118556/unable-to-access-the-server-via-ssh
Hrish
  • 85

3 Answers3

3

Your ISP has screwed up its DNS setup. You will need to set the UseDNS option in the sshd configuration file to no.

3

The server may enable UseDNS. Run man sshd_config to find information about this.

If you have the right permissions, you can modify /etc/ssh/sshd_config and add UseDNS no to this file.

slhck
  • 235,242
Hrish
  • 85
2

The problem (at least as reported by the error log) is that your reverse IP lookup is not working properly. Reverse IP lookup means taking the IP address and looking it up in the DNS and finding the name (rather than the usual, finding an IP from a name).

The best thing to do in any case is to disable the DNS check by using the UseDNS no setting. This will also speed up your SSH logins, since no DNS will then be required upon login.

The settings file is sshd_config and is normally located in the directory /etc/ssh.

Mei
  • 389