[Ilugc] Re: ssh connection refused
- From: kapil@xxxxxxxxxxx (Kapil Hari Paranjape)
- Date: Mon Jul 7 17:50:23 2008
Hello,
On Fri, 04 Jul 2008, sriram wrote:
i cant use ssh and irc from college ,look at this
student <at> jtuxmeet:~$ time ssh unixpod.com
ssh: connect to host unixpod.com port 22: Connection refused
please suggest me some solution to make it work properly .
there is also the possibility of an intervening firewall that is
setup to putout this message (instead of the standard message), but
this is very unlikely.
While it is unlikely, it _can_ be reproduced.
On your local machine do
iptables -A OUTPUT -p tcp --dport 22 -j REJECT
This will reject all _outgoing_ port 22 connections so if you do
ssh a.b.c.d
You will get "connection refused" for any a.b.c.d
Don't forget to do
iptables -D OUTPUT -p tcp --dport 22 -j REJECT
after completing this experiment!
Note that a similar REJECT rule on the gateway for "jtuxmeet" for the
FORWARD table would have a similar effect.
Kapil.
--
Other related posts: