Operating System - HP-UX
1830071 Members
14247 Online
109998 Solutions
New Discussion

openssh2 host restriction

 
Bosco Tsang
Valued Contributor

openssh2 host restriction

In ssh1, I can use AllowHosts to restrict connecting hosts. However, there is no such option in ssh2, which it's a binary distribution. Putting it under /etc/hosts.allow and /etc/hosts.deny won't work, any idea on how can I setup host restriction for ssh2?
4 REPLIES 4
S.K. Chan
Honored Contributor

Re: openssh2 host restriction

ssh2 version requires a comma between your hostnames. ssh1 works with just a space between hostnames not ssh2.
Bosco Tsang
Valued Contributor

Re: openssh2 host restriction

Sorry do you mean using AllowHosts or in /etc/hosts.* files? I have only 1 host, do I still need the comma? Anyway, have tried both but still none works.
Craig Rants
Honored Contributor

Re: openssh2 host restriction

Bosco,
ssh can be compiled to used /etc/hosts.allow, it required the inclusion of the libwrap.a file. You mentioned that you have the binary distrobution, did you buy it from ssh? You may want to get the source and compile to your liking or get support from ssh if you bought it. Also I would try to put AllowHosts in your /etc/sshd_config file and just to see what it does. ssh will need to be restarted with the kill HUP.

Hope this helps,
C
"In theory, there is no difference between theory and practice. But, in practice, there is. " Jan L.A. van de Snepscheut
Wilfred Chau_1
Respected Contributor

Re: openssh2 host restriction

Try again with option -v. See what the error message. Also make sure you identity file is in place.