PDA

SSHD problem- cant connect to this comp from other comp.....

KaMiKaZa
2004-01-14, 06:51 AM PST
helloo,
i have a LAN [my modem connected to the LAN Card]
and i can't connect to this computer from other,
i can connect from localhost but not from the ip of the internet:

[guy@localhost guy]$ ssh localhost
guy@localhost's password:
[guy@localhost guy]$ ssh 212.199.177.165
ssh: connect to host 212.199.177.165 port 22: Connection refused
[guy@localhost guy]$
i tried:
iptables -L
iptables -F
iptables --flush
Configurations..
nothing works
i have also guarddog i did Disable for him..
what can i do..?!?!
thanks

pejcao
2004-01-16, 03:55 PM PST
Many things might be happening:

1) Your router blocks port 22

2) Your ISP blocks port 22

(can't help u at any)

3) Even flushing INPUT chain, it's policy might be DROP or REJECT
(iptables -P INPUT ACCEPT does the job)

4) U r behind a PROXY or external firewall? (applies on cases (1) & (2) )

Hope it helps!

PS: Do not flush netfilter table please! I'll recomend u firestarter (installable from a lot of yum repos), it helps u set up firewall, NAT, etc (even SSH) in an easy GUI.