Topic "server unexpectedly closed network connection"

Author Message
johnchicago99
[View user's profile]

Joined: 2010-10-28
Posts: 1
Location: Chicago
server unexpectedly closed network connection

Hello, We are trying to transmit a file from us to the bank. Most of the time the transmission works. According to the bank's review of our log, they say we sometimes don't get past the usersname/password. Here are the sections of the log that shows when WinSCP works and when it fails. I also included the WinSCP script. We plan to put WireShark on the server transmitting from us to the bank. Aslo, we see no issues with the firewall. We're using SFTP (FTP over SSH). The bank is using Maverick SSHD.

-----------------------
-- ERROR FROM LAST LINE
-----------------------
server unexpectedly closed network connection winscp


---------------------------
-- LOG FOR FAILUE
---------------------------
. 2010-10-13 02:24:45.250 --------------------------------------------------------------------------
. 2010-10-13 02:24:45.250 WinSCP Version 4.2.8 (Build 818) (OS 5.2.3790 Service Pack 2)
. 2010-10-13 02:24:45.250 Login time: Wednesday, October 13, 2010 2:24:45 AM
. 2010-10-13 02:24:45.250 --------------------------------------------------------------------------
. 2010-10-13 02:24:45.250 Session name: ABC123-SEND@sftp.abc123xyz.pdq.com
. 2010-10-13 02:24:45.250 Host name: sftp.tradinggrid.gxs.com (Port: 22)
. 2010-10-13 02:24:45.250 User name: ABC123-SEND (Password: Yes, Key file: No)
. 2010-10-13 02:24:45.250 Tunnel: No
. 2010-10-13 02:24:45.250 Transfer Protocol: SFTP (SCP)
. 2010-10-13 02:24:45.250 Ping type: -, Ping interval: 30 sec; Timeout: 15 sec
. 2010-10-13 02:24:45.250 Proxy: none
. 2010-10-13 02:24:45.250 SSH protocol version: 2; Compression: No
. 2010-10-13 02:24:45.250 Bypass authentication: No
. 2010-10-13 02:24:45.250 Try agent: Yes; Agent forwarding: No; TIS/CryptoCard: No; KI: Yes; GSSAPI: No
. 2010-10-13 02:24:45.250 Ciphers: aes,blowfish,3des,WARN,arcfour,des; Ssh2DES: No
. 2010-10-13 02:24:45.250 SSH Bugs: -,-,-,-,-,-,-,-,-
. 2010-10-13 02:24:45.250 SFTP Bugs: -,-
. 2010-10-13 02:24:45.250 Return code variable: Autodetect; Lookup user groups: Yes
. 2010-10-13 02:24:45.250 Shell: default
. 2010-10-13 02:24:45.250 EOL: 0, UTF: 2
. 2010-10-13 02:24:45.250 Clear aliases: Yes, Unset nat.vars: Yes, Resolve symlinks: Yes
. 2010-10-13 02:24:45.250 LS: ls -la, Ign LS warn: Yes, Scp1 Comp: No
. 2010-10-13 02:24:45.250 Local directory: default, Remote directory: home, Update: No, Cache: Yes
. 2010-10-13 02:24:45.250 Cache directory changes: Yes, Permanent: Yes
. 2010-10-13 02:24:45.250 DST mode: 1
. 2010-10-13 02:24:45.250 --------------------------------------------------------------------------
. 2010-10-13 02:24:45.250 Looking up host "sftp.abc123xyz.pdq.com"
. 2010-10-13 02:24:45.468 Connecting to 123.456.789.12 port 22
. 2010-10-13 02:24:45.500 Server version: SSH-2.0-GXSSSHD_Comments
. 2010-10-13 02:24:45.500 We believe remote version has SSH-2 ignore bug
. 2010-10-13 02:24:45.500 Using SSH protocol version 2
. 2010-10-13 02:24:45.500 We claim version: SSH-2.0-WinSCP_release_4.2.8
. 2010-10-13 02:24:45.515 Using Diffie-Hellman with standard group "group14"
. 2010-10-13 02:24:45.515 Doing Diffie-Hellman key exchange with hash SHA-1
. 2010-10-13 02:24:45.593 Server unexpectedly closed network connection


------------------------
-- LOG FOR SUCCESS
-------------------------






. 2010-10-13 11:38:33.265 --------------------------------------------------------------------------
. 2010-10-13 11:38:33.265 WinSCP Version 4.2.8 (Build 818) (OS 5.2.3790 Service Pack 2)
. 2010-10-13 11:38:33.265 Login time: Wednesday, October 13, 2010 11:38:33 AM
. 2010-10-13 11:38:33.265 --------------------------------------------------------------------------
. 2010-10-13 11:38:33.265 Session name: ABC123-SEND@sftp.abc123xyz.pdq.com
. 2010-10-13 11:38:33.265 Host name: sftp.abc123xyz.pdq.com (Port: 22)
. 2010-10-13 11:38:33.265 User name: ABC123-SEND (Password: Yes, Key file: No)
. 2010-10-13 11:38:33.265 Tunnel: No
. 2010-10-13 11:38:33.265 Transfer Protocol: SFTP (SCP)
. 2010-10-13 11:38:33.265 Ping type: -, Ping interval: 30 sec; Timeout: 15 sec
. 2010-10-13 11:38:33.265 Proxy: none
. 2010-10-13 11:38:33.265 SSH protocol version: 2; Compression: No
. 2010-10-13 11:38:33.265 Bypass authentication: No
. 2010-10-13 11:38:33.265 Try agent: Yes; Agent forwarding: No; TIS/CryptoCard: No; KI: Yes; GSSAPI: No
. 2010-10-13 11:38:33.265 Ciphers: aes,blowfish,3des,WARN,arcfour,des; Ssh2DES: No
. 2010-10-13 11:38:33.265 SSH Bugs: -,-,-,-,-,-,-,-,-
. 2010-10-13 11:38:33.265 SFTP Bugs: -,-
. 2010-10-13 11:38:33.265 Return code variable: Autodetect; Lookup user groups: Yes
. 2010-10-13 11:38:33.265 Shell: default
. 2010-10-13 11:38:33.265 EOL: 0, UTF: 2
. 2010-10-13 11:38:33.265 Clear aliases: Yes, Unset nat.vars: Yes, Resolve symlinks: Yes
. 2010-10-13 11:38:33.265 LS: ls -la, Ign LS warn: Yes, Scp1 Comp: No
. 2010-10-13 11:38:33.265 Local directory: default, Remote directory: home, Update: No, Cache: Yes
. 2010-10-13 11:38:33.265 Cache directory changes: Yes, Permanent: Yes
. 2010-10-13 11:38:33.265 DST mode: 1
. 2010-10-13 11:38:33.265 --------------------------------------------------------------------------
. 2010-10-13 11:38:33.265 Looking up host "sftp.abc123xyz.pdq.com"
. 2010-10-13 11:38:33.359 Connecting to 123.456.789.12 port 22
. 2010-10-13 11:38:33.390 Server version: SSH-2.0-GXSSSHD_Comments
. 2010-10-13 11:38:33.390 We believe remote version has SSH-2 ignore bug
. 2010-10-13 11:38:33.390 Using SSH protocol version 2
. 2010-10-13 11:38:33.390 We claim version: SSH-2.0-WinSCP_release_4.2.8
. 2010-10-13 11:38:33.406 Using Diffie-Hellman with standard group "group14"
. 2010-10-13 11:38:33.406 Doing Diffie-Hellman key exchange with hash SHA-1
. 2010-10-13 11:38:33.703 Host key fingerprint is:
. 2010-10-13 11:38:33.703 ssh-rsa 1024 3123e:5313213:d1:4234258:1:53453456db:36346346346634f:e63464681:a9
. 2010-10-13 11:38:33.703 Initialised AES-256 CBC client->server encryption
. 2010-10-13 11:38:33.703 Initialised HMAC-SHA1 client->server MAC algorithm
. 2010-10-13 11:38:33.703 Initialised AES-256 CBC server->client encryption
. 2010-10-13 11:38:33.703 Initialised HMAC-SHA1 server->client MAC algorithm
! 2010-10-13 11:38:33.890 Using username "ABC123-SEND".
. 2010-10-13 11:38:33.906 Prompt (6, SSH password, , &Password: )
. 2010-10-13 11:38:33.906 Using stored password.
. 2010-10-13 11:38:33.906 Sent password
. 2010-10-13 11:38:34.234 Access granted
. 2010-10-13 11:38:34.250 Opened channel for session
. 2010-10-13 11:38:34.671 Started a shell/command
. 2010-10-13 11:38:34.671 --------------------------------------------------------------------------
. 2010-10-13 11:38:34.671 Using SFTP protocol.
. 2010-10-13 11:38:34.671 Doing startup conversation with host.
> 2010-10-13 11:38:34.671 Type: SSH_FXP_INIT, Size: 5, Number: -1
< 2010-10-13 11:38:34.687 Type: SSH_FXP_VERSION, Size: 5, Number: -1
. 2010-10-13 11:38:34.687 SFTP version 3 negotiated.
. 2010-10-13 11:38:34.687 We believe the server has signed timestamps bug
. 2010-10-13 11:38:34.687 We will use UTF-8 strings for status messages only
. 2010-10-13 11:38:34.687 Getting current directory name.
. 2010-10-13 11:38:34.687 Getting real path for '.'
> 2010-10-13 11:38:34.687 Type: SSH_FXP_REALPATH, Size: 10, Number: 16
< 2010-10-13 11:38:34.703 Type: SSH_FXP_NAME, Size: 61, Number: 16
. 2010-10-13 11:38:34.703 Real path is '/ABC123-SEND'
. 2010-10-13 11:38:34.703 Startup conversation with host finished.
< 2010-10-13 11:38:34.703 Script: Active session: [1] ABC123-SEND@sftp.abc123xyz.pdq.com
> 2010-10-13 11:38:34.703 Script: CD ACCTRECON-AR3-A:/*BIN
. 2010-10-13 11:38:34.703 Cached directory change via "ACCTRECON-AR3-A:/*BIN" to "/ABC123-SEND/ACCTRECON-AR3-A:/*BIN".
. 2010-10-13 11:38:34.703 Getting current directory name.
< 2010-10-13 11:38:34.703 Script: /ABC123-SEND/ACCTRECON-AR3-A:/*BIN
> 2010-10-13 11:38:34.703 Script: option transfer binary
< 2010-10-13 11:38:34.703 Script: transfer binary
> 2010-10-13 11:38:34.703 Script: put D:\PSOFT\PSPRD\interfac\APPosPay\HOWDY-APPOSPAY-2010-10-13T02-24-43.txt
. 2010-10-13 11:38:34.703 Copying 1 files/directories to remote directory "/ABC123-SEND/ACCTRECON-AR3-A:/*BIN"
. 2010-10-13 11:38:34.703 PrTime: Yes; PrRO: No; Rght: rw-r--r--; PrR: No (No); FnCs: N; RIC: 01; Resume: S (102400); CalcS: No; Mask:
. 2010-10-13 11:38:34.703 TM: B; ClAr: No; CPS: 0; ExclM(No):
. 2010-10-13 11:38:34.703 AscM: *.*html; *.htm; *.txt; *.php; *.php3; *.cgi; *.c; *.cpp; *.h; *.pas; *.bas; *.tex; *.pl; .htaccess; *.xtml; *.css; *.cfg; *.ini; *.sh; *.xml
. 2010-10-13 11:38:34.703 File: "D:\PSOFT\PSPRD\interfac\APPosPay\HOWDY-APPOSPAY-2010-10-13T02-24-43.txt"
. 2010-10-13 11:38:34.718 Copying "D:\PSOFT\PSPRD\interfac\APPosPay\HOWDY-APPOSPAY-2010-10-13T02-24-43.txt" to remote directory started.
. 2010-10-13 11:38:34.718 Binary transfer mode selected.
. 2010-10-13 11:38:34.718 Opening remote file.
> 2010-10-13 11:38:34.718 Type: SSH_FXP_OPEN, Size: 100, Number: 259
< 2010-10-13 11:38:34.843 Type: SSH_FXP_HANDLE, Size: 33, Number: 259
> 2010-10-13 11:38:34.843 Type: SSH_FXP_WRITE, Size: 3705, Number: 774
> 2010-10-13 11:38:34.843 Type: SSH_FXP_CLOSE, Size: 33, Number: 1028
> 2010-10-13 11:38:34.843 Type: SSH_FXP_SETSTAT, Size: 96, Number: 521
< 2010-10-13 11:38:34.859 Type: SSH_FXP_STATUS, Size: 49, Number: 774
< 2010-10-13 11:38:34.859 Type: SSH_FXP_STATUS, Size: 40, Number: 1028
< 2010-10-13 11:38:34.859 Status code: 0
< 2010-10-13 11:38:34.859 Type: SSH_FXP_STATUS, Size: 40, Number: 521
< 2010-10-13 11:38:34.859 Status code: 0
> 2010-10-13 11:38:34.859 Script: close
. 2010-10-13 11:38:34.859 Closing connection.
. 2010-10-13 11:38:34.859 Sending special code: 12
. 2010-10-13 11:38:34.859 Sent EOF message

----------------------------------------
--This is the sample SFTP script. Username/p&szw*rds changed
-----------------------------------------

# Automatically answer all prompts negatively not to stall
# the script on errors
option batch on
# Disable overwrite confirmations that conflict with the previous
option confirm off
# Connect using a password
#
# Connect
open ABC123-SEND:I213213433HN@sftp.abc123xyz.pdq.com -hostkey="ssh-rsa 1024 321321:b8:154235345f:e4:55:53453481:345349"
# Change remote directory
CD ACCTRECON-AR3-A:/*BIN
# Force binary mode transfer
option transfer binary
# Upload the file to current working directory
put D:\PSOFT\PSPRD\interfac\APPosPay\HOWDY-APPOSPAY-2010-10-28T02-25-02.txt
# Disconnect
close
# Exit WinSCP
exit
Advertisements

You can post new topics in this forum






Search Site

What is WinSCP?

It is award-winning SFTP client, SCP client, FTPS client and FTP client integrated into one software program for file transfer to FTP server or secure SFTP server. [More]

And it's free!

Donate

About donations

$9   $19   $49   $99

About donations

Recommend

WinSCP Privacy Policy

WinSCP License