How to open the port 22 (ssh)?
hi,
i've a question, how can i open the port 22? i'm a newbie, so can you explain very slowly please... where can i do the iptables commands? i know i have to do that : iptable -I INPUT -i eth0 -p tcp --dport 22 -j ACCEPT, but i dont know how can i do it. So plizz help. I have a router modem and no firewall. thx ;-) |
Give #iptable -I INPUT -i eth0 -p tcp --dport 22 -j ACCEPT
|
if your system is secured with iptables, and you are using a DROP policy:
iptables -A INPUT -i eth0 -p tcp --dport 22 -j ACCEPT iptables -A OUTPUT -i eth0 -p tcp --sport 22 -j ACCEPT |
Quote:
But first take a look at your iptables rules. It may already be open. To do that, open a terminal window (console... command line). To create, modify or remove rules, you have to be root. Type the following command and enter the root password: Code:
su - Code:
iptables -vL |
are you sure the command is 'iptables'?
because i have this : root>iptable -vL iptable: Command not found. root>iptables -vL iptables: Command not found. so i don't understand.... :newbie: :Pengy: :Pengy: :Pengy: :Pengy: :Pengy: thx ;-) |
Maybe you don't have it installed. Or maybe you are using ipchains.
Which distro do you use? |
All times are GMT -5. The time now is 09:19 PM. |