Operating System - HP-UX
1821052 Members
2221 Online
109631 Solutions
New Discussion юеВ

are /etc/hosts.allow and /etc/hosts.deny used by sshd ?

 
SOLVED
Go to solution
Jdamian
Respected Contributor

are /etc/hosts.allow and /etc/hosts.deny used by sshd ?

Hi

Man pages of sshd(8) says:

/etc/hosts.allow, /etc/hosts.deny
Access controls that should be enforced by tcp-wrappers are defined here. Further details are described in hosts_access(5).

My problem is the referred manual pages in volume 5 don't exist.

Can anybody explain me something about this config files ?
2 REPLIES 2
Stefan Farrelly
Honored Contributor

Re: are /etc/hosts.allow and /etc/hosts.deny used by sshd ?

Heres the manpage for hosts_access;

http://athena.fit.qut.edu.au/cgi-bin/man/man2html?hosts_access
Im from Palmerston North, New Zealand, but somehow ended up in London...
RAC_1
Honored Contributor
Solution

Re: are /etc/hosts.allow and /etc/hosts.deny used by sshd ?

If ssh is the one provided by HP, then it has tcp wrappers build in. So file /etc/hosts.allow and /etc/hosts.deny will be checked.

For testing it create a file /etc/hosts.deny and put entry deny:ALL in it and try ssh to this server.

If you have compiled your ssh, may be open ssh, then it depends did you compile it with tcp wrapper or not.
There is no substitute to HARDWORK