LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   SSH port 22, how open it? (https://www.linuxquestions.org/questions/linux-newbie-8/ssh-port-22-how-open-it-175211/)

dicou 04-27-2004 01:58 PM

SSH port 22, how open it?
 
Hi everyone,
i have a router modem and a mandrake distrib and i just want to know how open the ssh port (22)?
modem : Alcatel Speedtouch Pro modem.
Thanks

xatmes 04-27-2004 02:24 PM

Basically you want to have sshd running as a daemon service...it defaults to port 22. I'm assuming you have a firewall up....so you want to put a rule in it with "iptables" like:

iptables -I INPUT -i eth0 -p tcp --dport 22 -j ACCEPT


This is a fairly liberal rule so you may want to add some other conditions like "-s <IP>" and put whatever IP or IP range you want to give access to.

If your router/modem does the firewalling then you will want to create a similar rule on your modem...but you should consult the documentation for your particular modem on the right way to do that

DoubleOTeC 04-27-2004 02:25 PM

Your first step would be to ensure that the SSHD service is running. You can either check your list of running processes or run ps aux | grep sshd.

To test if the port 22 is open you can run nmap -p 22 localhost

If it is open and you can't get through to it from the outside....then your router/firewall may be blocking access...configurations may need to be tweaked.

Let i kno...

dicou 04-27-2004 04:42 PM

thanks foor your information,
i don't have any firewall, so i think it's easy but i didn't kno the command.
thanks ;-)


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