[Discuss] 'nother question

Rich Pieri richard.pieri at gmail.com
Tue Aug 7 19:27:29 EDT 2012


On Tue, 7 Aug 2012 19:10:44 -0400
dan moylan <jdm at moylan.us> wrote:
>   debug1: connect to address 192.168.0.103 port 22: Connection refused
>   ssh: connect to host 192.168.0.103 port 22: Connection refused
>   lost connection

"Connection refused" typically means one of three things:

1. No daemon listening on that port.  Solution: confirm that sshd is
actually running on the remote host.  Also check sshd_config to ensure
that it is listening on port 22.

2. TCP wrappers rejecting connections on that port.  Solution: check
hosts.deny on the remote host.  If you are running denyhosts then you
may need to add an exception in hosts.allow to permit local traffic.

3. A firewall rule blocking connections on that port.  Solution: fix
your iptables configuration file.

-- 
Rich P.



More information about the Discuss mailing list