Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Security
User Name
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.


  Search this Thread
Old 01-18-2003, 08:39 PM   #1
LQ Newbie
Registered: Jan 2003
Location: Texas
Distribution: Linux
Posts: 2

Rep: Reputation: 0
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.

Old 01-18-2003, 11:11 PM   #2
Registered: Dec 2002
Location: In front of a computer
Distribution: UPS, DHL, FedEx
Posts: 466

Rep: Reputation: 38
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.
Old 01-19-2003, 10:00 AM   #3
Registered: Jan 2003
Distribution: many win/nix/mac
Posts: 259

Rep: Reputation: 32
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.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Configuring SSH to listen on two different ports at once james penguin Linux - Software 4 11-24-2005 09:08 PM
Can I Modify The Telnet Server To Listen To Non-Standard Ports? windisch Linux - Security 7 11-16-2004 02:47 PM
SSH listen on two ports Buto Slackware 1 10-02-2004 01:15 PM
How to manage the log files to listen to specific daemons ? cartridge Linux - Software 1 11-08-2003 08:05 AM
I'm trying to setup my ssh to listen to port 5200 francisjk Linux - Networking 1 09-26-2002 09:08 PM > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 04:26 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration