LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Security (https://www.linuxquestions.org/questions/linux-security-4/)
-   -   Can SSH Telnet listen for specific IP? (https://www.linuxquestions.org/questions/linux-security-4/can-ssh-telnet-listen-for-specific-ip-41978/)

tikvah 01-18-2003 08:39 PM

Can SSH Telnet listen for specific IP?
 
Is there a way to get SSH Telnet to *listen* and accept requests from a specific IP address only? this would be a great security feature. Webmin has it, but I haven't seen it in SSH Telnet for Linux.

:confused:

niknah 01-18-2003 11:11 PM

you maybe able to use tcp wrappers by editing /etc/hosts.allow /etc/hosts.deny
depending on if your computer was setup with tcpwrapper support.
If not, you can add some firewall stuff with iptables.

flashingcurser 01-19-2003 10:00 AM

Have you looked in tha ssh_config file---I'm not at a linux box right now (at work). I know I have changed the port to a nonstandard---though I cant remember if there was the option to listen for a certain IP. Take a look in the ssh_config file. Also as niknah said you could set up a IPtables rule to first DROP all incoming packets to that port then ACCEPT only the IP you want coming into it.


All times are GMT -5. The time now is 11:02 AM.