Web Hosting Talk







View Full Version : access through secure shell


Atif Munir
05-17-2002, 01:52 AM
Hi,
how can i restrict my server to be accessed via secure shell from only one ip address?
Thanks in advance
atif

StevenG
05-17-2002, 10:18 AM
Create a firewall and deny all access to shell port, except of course your trusted IP address, which would have access to all of your services.

Let me know if you need any further help,

Regards,

billyjoe
05-17-2002, 11:41 AM
Use tcp_wrappers with SSH (odds are your server is already doing this). Then properly configure your /etc/hosts.allow and /etc/hosts.deny files. Basically deny all hosts from SSHD in hosts.deny and allow your single IP address to SSHD in hosts.allow

StevenG
05-17-2002, 06:16 PM
You have got a firewall right?

Atif Munir
05-18-2002, 12:02 AM
Hi,
The files are as under
more /etc/hosts.allow
sshd: 192.168.0.2
more /etc/hosts.deny
ALL: ALL
but still i can open ssh from every machine on my lan?
atif