Hey Folks,
I want to allow sshd on my new server only to myself and to my other server (so I could use it to ssh my server whenever i'm not on my home computer), but the server can't verify host name of my other server..
The error is:
Code:
May 3 23:56:39 air362 sshd[30833]: warning: /etc/hosts.allow, line 7: can't verify hostname: getaddrinfo(72-29-76-97.dimenoc.com, AF_INET) failed
May 3 23:56:39 air362 sshd[30833]: refused connect from ::ffff:72.29.76.97 (::ffff:72.29.76.97)
Here my hosts.deny and hosts.allow files:
/etc/hosts.deny
Code:
#
# hosts.deny This file describes the names of the hosts which are
# *not* allowed to use the local INET services, as decided
# by the '/usr/sbin/tcpd' server.
#
# The portmap line is redundant, but it is left to remind you that
# the new secure portmap uses hosts.deny and hosts.allow. In particular
# you should know that NFS uses portmap!
sshd : ALL
[/b]/etc/hosts.allow[/b]
Code:
#
# hosts.allow This file describes the names of the hosts which are
# allowed to use the local INET services, as decided
# by the '/usr/sbin/tcpd' server.
#
sshd : .bezeqint.net
sshd : .server4you.net
sshd : 88.152.180.70/255.255.255.0
sshd : .dimenoc.com
sshd : 72.29.76.97/255.255.255.0
Can anyone please let me know how can I allow my other server (72.29.76.97 or 72-29-76-97.dimenoc.com) to access the new server?
thanks,
-
Ben