SFTP connection timing out in production environment but not development environment

Advertisement

MarkD
Guest

SFTP connection timing out in production environment but not development environment

I am able to connect to the SFTP server through the WinSCP program as well as in code locally but not on the production server. I have verified the credentials and also have been able to connect to other SFTP sites with WinSCP both locally and on the production server.

The connection times out on the production server. I'm stumped here.

Development server:
. 2017-01-25 13:50:39.470 Session name: saabgear@216.249.104.81 (Site)
. 2017-01-25 13:50:39.470 Host name: 216.249.104.81 (Port: 22)
. 2017-01-25 13:50:39.470 User name: saabgear (Password: Yes, Key file: No)
. 2017-01-25 13:50:39.470 Tunnel: No
. 2017-01-25 13:50:39.470 Transfer Protocol: SFTP (SCP)
. 2017-01-25 13:50:39.470 Ping type: -, Ping interval: 30 sec; Timeout: 15 sec
. 2017-01-25 13:50:39.470 Disable Nagle: No
. 2017-01-25 13:50:39.470 Proxy: none
. 2017-01-25 13:50:39.470 Send buffer: 262144
. 2017-01-25 13:50:39.470 SSH protocol version: 2; Compression: No
. 2017-01-25 13:50:39.470 Bypass authentication: No
. 2017-01-25 13:50:39.470 Try agent: Yes; Agent forwarding: No; TIS/CryptoCard: No; KI: Yes; GSSAPI: No
. 2017-01-25 13:50:39.470 Ciphers: aes,blowfish,3des,WARN,arcfour,des; Ssh2DES: No
. 2017-01-25 13:50:39.470 KEX: dh-gex-sha1,dh-group14-sha1,dh-group1-sha1,rsa,WARN
. 2017-01-25 13:50:39.470 SSH Bugs: A,A,A,A,A,A,A,A,A,A,A
. 2017-01-25 13:50:39.470 Simple channel: Yes
. 2017-01-25 13:50:39.470 Return code variable: Autodetect; Lookup user groups: A
. 2017-01-25 13:50:39.470 Shell: default
. 2017-01-25 13:50:39.470 EOL: 0, UTF: 2
. 2017-01-25 13:50:39.470 Clear aliases: Yes, Unset nat.vars: Yes, Resolve symlinks: Yes
. 2017-01-25 13:50:39.470 LS: ls -la, Ign LS warn: Yes, Scp1 Comp: No
. 2017-01-25 13:50:39.470 SFTP Bugs: A,A
. 2017-01-25 13:50:39.470 SFTP Server: default
. 2017-01-25 13:50:39.470 Local directory: C:\Users\mark\Documents, Remote directory: /, Update: Yes, Cache: Yes
. 2017-01-25 13:50:39.470 Cache directory changes: Yes, Permanent: Yes
. 2017-01-25 13:50:39.470 DST mode: 1
. 2017-01-25 13:50:39.470 --------------------------------------------------------------------------
. 2017-01-25 13:50:39.560 Looking up host "216.249.104.81"
. 2017-01-25 13:50:39.560 Connecting to 216.249.104.81 port 22
. 2017-01-25 13:50:39.640 Server version: SSH-2.0-OpenSSH_6.5
. 2017-01-25 13:50:39.640 Using SSH protocol version 2
. 2017-01-25 13:50:39.640 We claim version: SSH-2.0-WinSCP_release_5.7.2
. 2017-01-25 13:50:39.690 Doing Diffie-Hellman group exchange
. 2017-01-25 13:50:39.830 Doing Diffie-Hellman key exchange with hash SHA-256
. 2017-01-25 13:50:40.450 Verifying host key rsa2 0x23,0xd6e5e8884aeef462 604b9fabc6072bb8 25ca91595dbf0720 15e246595d1be928 967245904196af39 7219f5916ac92b3a d8eff04ce7e87d69 b548bc8328c74ad4 f9354bbe3b0ed076 e803a664affa19b9 ba465504ad668bc4 7b4afed6a0730237 6204f4c324398b00 c17f79885245d322 785fb39d20b58422 5e4a7377a25a750f  with fingerprint ssh-rsa 1024 f4:e1:93:d3:be:76:70:0b:84:20:33:98:d3:ef:e8:52
. 2017-01-25 13:50:40.460 Host key matches cached key
. 2017-01-25 13:50:40.460 Host key fingerprint is:
. 2017-01-25 13:50:40.460 ssh-rsa 1024 f4:e1:93:d3:be:76:70:0b:84:20:33:98:d3:ef:e8:52
. 2017-01-25 13:50:40.460 Initialised AES-256 SDCTR client->server encryption
. 2017-01-25 13:50:40.460 Initialised HMAC-SHA-256 client->server MAC algorithm
. 2017-01-25 13:50:40.460 Initialised AES-256 SDCTR server->client encryption
. 2017-01-25 13:50:40.460 Initialised HMAC-SHA-256 server->client MAC algorithm
! 2017-01-25 13:50:40.550 Using username "saabgear".
. 2017-01-25 13:50:40.640 Prompt (password, "SSH password", <no instructions>, "&Password: ")
. 2017-01-25 13:50:40.640 Using stored password.
. 2017-01-25 13:50:40.670 Sent password
. 2017-01-25 13:50:40.710 Access granted
. 2017-01-25 13:50:40.710 Opening session as main channel
. 2017-01-25 13:50:40.760 Opened main channel
. 2017-01-25 13:50:40.900 Started a shell/command
. 2017-01-25 13:50:40.910 --------------------------------------------------------------------------
. 2017-01-25 13:50:40.910 Using SFTP protocol.
. 2017-01-25 13:50:40.910 Doing startup conversation with host.
> 2017-01-25 13:50:40.960 Type: SSH_FXP_INIT, Size: 5, Number: -1
< 2017-01-25 13:50:41.020 Type: SSH_FXP_VERSION, Size: 150, Number: -1
. 2017-01-25 13:50:41.020 SFTP version 3 negotiated.
. 2017-01-25 13:50:41.020 Unknown server extension posix-rename@openssh.com="1"
. 2017-01-25 13:50:41.020 Supports statvfs@openssh.com extension version "2"
. 2017-01-25 13:50:41.020 Unknown server extension fstatvfs@openssh.com="2"
. 2017-01-25 13:50:41.020 Supports hardlink@openssh.com extension version "1"
. 2017-01-25 13:50:41.020 Unknown server extension fsync@openssh.com="1"
. 2017-01-25 13:50:41.020 We believe the server has signed timestamps bug
. 2017-01-25 13:50:41.020 We will use UTF-8 strings until server sends an invalid UTF-8 string as with SFTP version 3 and older UTF-8 string are not mandatory
. 2017-01-25 13:50:41.020 Limiting packet size to OpenSSH sftp-server limit of 262148 bytes
. 2017-01-25 13:50:41.020 Changing directory to "/".
. 2017-01-25 13:50:41.020 Getting real path for '/'
> 2017-01-25 13:50:41.020 Type: SSH_FXP_REALPATH, Size: 10, Number: 16
< 2017-01-25 13:50:41.060 Type: SSH_FXP_NAME, Size: 23, Number: 16
. 2017-01-25 13:50:41.060 Real path is '/'
. 2017-01-25 13:50:41.060 Trying to open directory "/".
> 2017-01-25 13:50:41.060 Type: SSH_FXP_LSTAT, Size: 10, Number: 263
< 2017-01-25 13:50:41.110 Type: SSH_FXP_ATTRS, Size: 37, Number: 263
. 2017-01-25 13:50:41.110 Getting current directory name.
. 2017-01-25 13:50:41.310 Listing directory "/".
> 2017-01-25 13:50:41.310 Type: SSH_FXP_OPENDIR, Size: 10, Number: 523
< 2017-01-25 13:50:41.350 Type: SSH_FXP_HANDLE, Size: 13, Number: 523
> 2017-01-25 13:50:41.350 Type: SSH_FXP_READDIR, Size: 13, Number: 780
< 2017-01-25 13:50:41.400 Type: SSH_FXP_NAME, Size: 311, Number: 780
> 2017-01-25 13:50:41.400 Type: SSH_FXP_READDIR, Size: 13, Number: 1036
< 2017-01-25 13:50:41.450 Type: SSH_FXP_STATUS, Size: 28, Number: 1036
< 2017-01-25 13:50:41.450 Status code: 1
> 2017-01-25 13:50:41.450 Type: SSH_FXP_CLOSE, Size: 13, Number: 1284
. 2017-01-25 13:50:41.450 data;d;0;2017-01-25T13:10:52.000Z;"524" [524];"515" [515];rwxr-xr-x;0
. 2017-01-25 13:50:41.450 ..;d;0;2016-12-20T15:46:28.000Z;"0" [0];"0" [0];rwxr-xr-x;0
. 2017-01-25 13:50:41.510 Startup conversation with host finished.
. 2017-01-25 13:50:46.680 Closing connection.
. 2017-01-25 13:50:46.680 Sending special code: 12
. 2017-01-25 13:50:46.680 Sent EOF message
Production log file:
. 2017-01-25 13:23:35.673 --------------------------------------------------------------------------
. 2017-01-25 13:23:35.673 WinSCP Version 5.9.3 (Build 7136) (OS 5.2.3790 Service Pack 2 - Microsoft Windows Server 2003 R2)
. 2017-01-25 13:23:35.673 Configuration: HKCU\Software\Martin Prikryl\WinSCP 2\
. 2017-01-25 13:23:35.673 Log level: Normal
. 2017-01-25 13:23:35.673 Local account: THEENTERPRISE\admiral
. 2017-01-25 13:23:35.673 Working directory: D:\OrioInvoicer
. 2017-01-25 13:23:35.673 Process ID: 2820
. 2017-01-25 13:23:35.673 Command-line: "D:\OrioInvoicer\WinSCP.exe" 
. 2017-01-25 13:23:35.673 Time zone: Current: GMT-5, Standard: GMT-5 (Eastern Standard Time), DST: GMT-4 (Eastern Daylight Time), DST Start: 3/12/2017, DST End: 11/5/2017
. 2017-01-25 13:23:35.673 Login time: Wednesday, January 25, 2017 1:23:35 PM
. 2017-01-25 13:23:35.673 --------------------------------------------------------------------------
. 2017-01-25 13:23:35.673 Session name: saabgear@216.249.104.81 (Site)
. 2017-01-25 13:23:35.673 Host name: 216.249.104.81 (Port: 22)
. 2017-01-25 13:23:35.673 User name: saabgear (Password: Yes, Key file: No, Passphrase: No)
. 2017-01-25 13:23:35.673 Tunnel: No
. 2017-01-25 13:23:35.673 Transfer Protocol: SFTP (SCP)
. 2017-01-25 13:23:35.673 Ping type: Off, Ping interval: 30 sec; Timeout: 15 sec
. 2017-01-25 13:23:35.673 Disable Nagle: No
. 2017-01-25 13:23:35.673 Proxy: None
. 2017-01-25 13:23:35.673 Send buffer: 262144
. 2017-01-25 13:23:35.673 SSH protocol version: 2; Compression: No
. 2017-01-25 13:23:35.673 Bypass authentication: No
. 2017-01-25 13:23:35.673 Try agent: Yes; Agent forwarding: No; TIS/CryptoCard: No; KI: Yes; GSSAPI: No
. 2017-01-25 13:23:35.673 Ciphers: aes,chacha20,blowfish,3des,WARN,arcfour,des; Ssh2DES: No
. 2017-01-25 13:23:35.673 KEX: ecdh,dh-gex-sha1,dh-group14-sha1,rsa,WARN,dh-group1-sha1
. 2017-01-25 13:23:35.673 SSH Bugs: Auto,Auto,Auto,Auto,Auto,Auto,Auto,Auto,Auto,Auto,Auto,Auto
. 2017-01-25 13:23:35.673 Simple channel: Yes
. 2017-01-25 13:23:35.673 Return code variable: Autodetect; Lookup user groups: Auto
. 2017-01-25 13:23:35.673 Shell: default
. 2017-01-25 13:23:35.673 EOL: LF, UTF: Auto
. 2017-01-25 13:23:35.673 Clear aliases: Yes, Unset nat.vars: Yes, Resolve symlinks: Yes; Follow directory symlinks: No
. 2017-01-25 13:23:35.673 LS: ls -la, Ign LS warn: Yes, Scp1 Comp: No
. 2017-01-25 13:23:35.673 SFTP Bugs: Auto,Auto
. 2017-01-25 13:23:35.673 SFTP Server: default
. 2017-01-25 13:23:35.673 Local directory: default, Remote directory: home, Update: Yes, Cache: Yes
. 2017-01-25 13:23:35.673 Cache directory changes: Yes, Permanent: Yes
. 2017-01-25 13:23:35.673 Recycle bin: Delete to: No, Overwritten to: No, Bin path: 
. 2017-01-25 13:23:35.673 DST mode: Unix
. 2017-01-25 13:23:35.673 --------------------------------------------------------------------------
. 2017-01-25 13:23:35.892 Looking up host "216.249.104.81" for SSH connection
. 2017-01-25 13:23:35.892 Connecting to 216.249.104.81 port 22
. 2017-01-25 13:23:56.798 Failed to connect to 216.249.104.81: Network error: Connection timed out
. 2017-01-25 13:23:56.798 Knocking FTP port.
. 2017-01-25 13:23:58.798 FTP port did not open.
* 2017-01-25 13:23:58.830 (EFatal) Network error: Connection to "216.249.104.81" timed out.
. 2017-01-25 13:46:54.439 --------------------------------------------------------------------------

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
41,518
Location:
Prague, Czechia

Re: SFTP connection timing out in production environment but not development environment

Can you connect to the server from the production environment anyhow? Using any other SFTP/SSH client? Can you at least ping the server?

Reply with quote

Advertisement

You can post new topics in this forum