Network error: Connection refused
Hello,
I've taken the time to review the results of a search for this but most of the issues were either unresolved due to lack of quality information on the part of the users or the suggestions were successful but do not apply to my case.
To begin, I have a laptop running WinXP SP2 (no firewall) connected via WiFi to an access point running OpenWRT, facilitating NAT, connected to PPPoE DSL modem. The destination server is running on a public IP, with no firewall and no filtering rules on port 22 where the sshd is bound.
Versions are as follows:
A log of a connection attempt follows, using debug level 2. I've removed the last 2 octets of the IP address and replaced them with 1's.
----
. 2007-07-21 22:33:54.812 --------------------------------------------------------------------------
. 2007-07-21 22:33:54.812 WinSCP Version 4.0.3 (Build 345) (OS 5.1.2600 Service Pack 2)
. 2007-07-21 22:33:54.812 Login time: Saturday, July 21, 2007 10:33:54 PM
. 2007-07-21 22:33:54.812 --------------------------------------------------------------------------
. 2007-07-21 22:33:54.812 Session name: blink@blink.domain.tld
. 2007-07-21 22:33:54.812 Host name: blink.domain.tld (Port: 22)
. 2007-07-21 22:33:54.812 User name: blink (Password: No, Key file: Yes)
. 2007-07-21 22:33:54.812 Tunnel: No
. 2007-07-21 22:33:54.812 Transfer Protocol: SFTP (SCP)
. 2007-07-21 22:33:54.812 Ping type: N, Ping interval: 30 sec; Timeout: 15 sec
. 2007-07-21 22:33:54.812 Proxy: none
. 2007-07-21 22:33:54.812 SSH protocol version: 2; Compression: No
. 2007-07-21 22:33:54.812 Agent forwarding: No; TIS/CryptoCard: No; KI: No; GSSAPI: No
. 2007-07-21 22:33:54.812 Ciphers: aes,blowfish,3des,WARN,des; Ssh2DES: No
. 2007-07-21 22:33:54.812 SSH Bugs: -,-,-,-,-,-,-,-
. 2007-07-21 22:33:54.812 SFTP Bugs: -,-,-
. 2007-07-21 22:33:54.812 Return code variable: Autodetect; Lookup user groups: Yes
. 2007-07-21 22:33:54.812 Shell: /bin/bash, EOL: 0
. 2007-07-21 22:33:54.812 Clear aliases: Yes, Unset nat.vars: Yes, Resolve symlinks: Yes
. 2007-07-21 22:33:54.812 Alias LS: No, Ign LS warn: Yes, Scp1 Comp: No
. 2007-07-21 22:33:54.812 Local directory: default, Remote directory: home, Update: No, Cache: Yes
. 2007-07-21 22:33:54.812 Cache directory changes: Yes, Permanent: Yes
. 2007-07-21 22:33:54.812 DST mode: 1
. 2007-07-21 22:33:54.812 --------------------------------------------------------------------------
. 2007-07-21 22:33:54.843 Looking up host "blink.domain.tld"
. 2007-07-21 22:33:54.921 Connecting to 72.39.1.1 port 22
. 2007-07-21 22:33:54.921 Failed to connect to 72.39.1.1: Network error: Connection refused
* 2007-07-21 22:33:54.937 (ESshFatal) Network error: Connection refused.
----
I'm confused as to what's wrong; the output of tail -f /var/log/auth.log shows NO activity at all during these connection attemps, neither does any packet even reach the server as shown with tcpdump.
I'm able to use WinSCP from other locations successfully to the server so I fully admit that the issue is almost certainly on my end of things.
The strangest part of this issue is that I can use the same keyfile (RSA, 4096bit) to log in using putty. auth.log shows the following:
----
Jul 21 12:09:27 localhost sshd[7951]: Accepted publickey for blink from 74.107.1.1 port 45519 ssh2
----
Any help, comments or suggestion are welcome! I'll try to respond back with results within a week but can't promise to check in any sooner due to work.
Kind Regards,
blink :wink:
I've taken the time to review the results of a search for this but most of the issues were either unresolved due to lack of quality information on the part of the users or the suggestions were successful but do not apply to my case.
To begin, I have a laptop running WinXP SP2 (no firewall) connected via WiFi to an access point running OpenWRT, facilitating NAT, connected to PPPoE DSL modem. The destination server is running on a public IP, with no firewall and no filtering rules on port 22 where the sshd is bound.
Versions are as follows:
- Laptop - WinSCP Version 4.0.3 (Build 345) (OS 5.1.2600 Service Pack 2)
OpenWRT - White Russian 0.9
Server - Linux 2.6.20-gentoo-r8 #2 SMP Tue Jun 12 11:35:41 EDT 2007 x86_64 AMD Athlon(tm) 64 X2 Dual Core Processor 4400+ AuthenticAMD GNU/Linux
OpenSSH_4.5p1, OpenSSL 0.9.8d 28 Sep 2006
A log of a connection attempt follows, using debug level 2. I've removed the last 2 octets of the IP address and replaced them with 1's.
----
. 2007-07-21 22:33:54.812 --------------------------------------------------------------------------
. 2007-07-21 22:33:54.812 WinSCP Version 4.0.3 (Build 345) (OS 5.1.2600 Service Pack 2)
. 2007-07-21 22:33:54.812 Login time: Saturday, July 21, 2007 10:33:54 PM
. 2007-07-21 22:33:54.812 --------------------------------------------------------------------------
. 2007-07-21 22:33:54.812 Session name: blink@blink.domain.tld
. 2007-07-21 22:33:54.812 Host name: blink.domain.tld (Port: 22)
. 2007-07-21 22:33:54.812 User name: blink (Password: No, Key file: Yes)
. 2007-07-21 22:33:54.812 Tunnel: No
. 2007-07-21 22:33:54.812 Transfer Protocol: SFTP (SCP)
. 2007-07-21 22:33:54.812 Ping type: N, Ping interval: 30 sec; Timeout: 15 sec
. 2007-07-21 22:33:54.812 Proxy: none
. 2007-07-21 22:33:54.812 SSH protocol version: 2; Compression: No
. 2007-07-21 22:33:54.812 Agent forwarding: No; TIS/CryptoCard: No; KI: No; GSSAPI: No
. 2007-07-21 22:33:54.812 Ciphers: aes,blowfish,3des,WARN,des; Ssh2DES: No
. 2007-07-21 22:33:54.812 SSH Bugs: -,-,-,-,-,-,-,-
. 2007-07-21 22:33:54.812 SFTP Bugs: -,-,-
. 2007-07-21 22:33:54.812 Return code variable: Autodetect; Lookup user groups: Yes
. 2007-07-21 22:33:54.812 Shell: /bin/bash, EOL: 0
. 2007-07-21 22:33:54.812 Clear aliases: Yes, Unset nat.vars: Yes, Resolve symlinks: Yes
. 2007-07-21 22:33:54.812 Alias LS: No, Ign LS warn: Yes, Scp1 Comp: No
. 2007-07-21 22:33:54.812 Local directory: default, Remote directory: home, Update: No, Cache: Yes
. 2007-07-21 22:33:54.812 Cache directory changes: Yes, Permanent: Yes
. 2007-07-21 22:33:54.812 DST mode: 1
. 2007-07-21 22:33:54.812 --------------------------------------------------------------------------
. 2007-07-21 22:33:54.843 Looking up host "blink.domain.tld"
. 2007-07-21 22:33:54.921 Connecting to 72.39.1.1 port 22
. 2007-07-21 22:33:54.921 Failed to connect to 72.39.1.1: Network error: Connection refused
* 2007-07-21 22:33:54.937 (ESshFatal) Network error: Connection refused.
----
I'm confused as to what's wrong; the output of tail -f /var/log/auth.log shows NO activity at all during these connection attemps, neither does any packet even reach the server as shown with tcpdump.
I'm able to use WinSCP from other locations successfully to the server so I fully admit that the issue is almost certainly on my end of things.
The strangest part of this issue is that I can use the same keyfile (RSA, 4096bit) to log in using putty. auth.log shows the following:
----
Jul 21 12:09:27 localhost sshd[7951]: Accepted publickey for blink from 74.107.1.1 port 45519 ssh2
----
Any help, comments or suggestion are welcome! I'll try to respond back with results within a week but can't promise to check in any sooner due to work.
Kind Regards,
blink :wink: