Quote:
Originally Posted by H_TeXMeX_H
I believe you have to allow port 22 tcp.
Code:
iptables -A INPUT -i eth0 -p tcp --dport 22 -j ACCEPT
Just note that this leaves you open to external ssh logins, so it makes you more vulnerable.
|
If you always connect from the same network or host you can add the source -s to the string like this (assuming your local network was 192.168.1.x :
-s 192.168.1.10 for that specfic host
-s 192.168.1.0/24 for that network
iptables -A tcp_inbound -p TCP -s 192.168.1.0/24 --destination-port 22 -j ACCEPT