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 |
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 |
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... |
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. |