WinSCP 5.8.1 beta | Proxy not working

Advertisement

Guest111111
Guest

WinSCP 5.8.1 beta | Proxy not working

With WinSCP 5.8.1 beta i cant connect to any SSH site.
Only when using a Socks or http proxy.

The following error occurs imediatly after connecting:

"Server sent command exit status 2147483647"

Reply with quote

Advertisement

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

Re: WinSCP 5.8.1 beta | Proxy not working

I'm not sure I understand. Do you have the problem when connecting over proxy or when connecting directly?

Can you connect correctly with any other SSH client or older version of WinSCP?

Reply with quote

Guest

Yes with an older version of winscp it works also fine.
Just when i replace to the new beta binary this happens.
Also tried with a fresh empty config file, same problem always only when using a socks proxy

Reply with quote

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

Anonymous wrote:

Yes with an older version of winscp it works also fine.
Just when i replace to the new beta binary this happens.
Also tried with a fresh empty config file, same problem always only when using a socks proxy
Please attach a full log file from both versions for a comparison.

To generate log file, enable logging, log in to your server and do the operation and only the operation that causes the error. Submit the log with your post as an attachment. Note that passwords and passphrases not stored in the log. You may want to remove other data you consider sensitive though, such as host names, IP addresses, account names or file names (unless they are relevant to the problem). If you do not want to post the log publicly, you can mark the attachment as private.

Reply with quote

Advertisement

Guest

working version:



. 2016-02-20 22:17:19.007 WinSCP Version 5.5.0 (Build 3839) (OS 6.3.9600 - Windows 10 Pro)
. 2016-02-20 22:17:19.008 Configuration: C:\Users\xxx\Desktop\WinSCP.ini
. 2016-02-20 22:17:19.008 Local account: LOCAL\xxx
. 2016-02-20 22:17:19.008 Working directory: C:\Users\xxx\Desktop
. 2016-02-20 22:17:19.008 Process ID: 2952
. 2016-02-20 22:17:19.008 Command-line: "C:\Users\xxx\Desktop\WinSCP.exe"
. 2016-02-20 22:17:19.008 Time zone: Current: GMT+1, Standard: GMT+1, DST: GMT+2, DST Start: 27.03.2016, DST End: 30.10.2016
. 2016-02-20 22:17:19.008 Login time: Samstag, 20. Februar 2016 22:17:19
. 2016-02-20 22:17:19.009 --------------------------------------------------------------------------
. 2016-02-20 22:17:19.009 Session name: root@xxx (Site)
. 2016-02-20 22:17:19.009 Host name: xxx (Port: 22)
. 2016-02-20 22:17:19.009 User name: root (Password: Yes, Key file: No)
. 2016-02-20 22:17:19.009 Tunnel: No
. 2016-02-20 22:17:19.009 Transfer Protocol: SFTP (SCP)
. 2016-02-20 22:17:19.009 Ping type: -, Ping interval: 30 sec; Timeout: 15 sec
. 2016-02-20 22:17:19.009 Proxy: SOCKS5
. 2016-02-20 22:17:19.009 HostName: localhost (Port: 9150); Username: ; Passwd: No
. 2016-02-20 22:17:19.009 Send buffer: 262144
. 2016-02-20 22:17:19.009 SSH protocol version: 2; Compression: No
. 2016-02-20 22:17:19.009 Bypass authentication: No
. 2016-02-20 22:17:19.009 Try agent: Yes; Agent forwarding: No; TIS/CryptoCard: No; KI: Yes; GSSAPI: No
. 2016-02-20 22:17:19.009 Ciphers: aes,blowfish,3des,WARN,arcfour,des; Ssh2DES: No
. 2016-02-20 22:17:19.009 SSH Bugs: A,A,A,A,A,A,A,A,A,A
. 2016-02-20 22:17:19.009 Simple channel: Yes
. 2016-02-20 22:17:19.009 Return code variable: Autodetect; Lookup user groups: A
. 2016-02-20 22:17:19.009 Shell: default
. 2016-02-20 22:17:19.009 EOL: 0, UTF: 2
. 2016-02-20 22:17:19.009 Clear aliases: Yes, Unset nat.vars: Yes, Resolve symlinks: Yes
. 2016-02-20 22:17:19.009 LS: ls -la, Ign LS warn: Yes, Scp1 Comp: No
. 2016-02-20 22:17:19.009 SFTP Bugs: A,A
. 2016-02-20 22:17:19.009 SFTP Server: default
. 2016-02-20 22:17:19.009 Local directory: C:\Users\xxx\Documents, Remote directory: /root, Update: Yes, Cache: Yes
. 2016-02-20 22:17:19.009 Cache directory changes: Yes, Permanent: Yes
. 2016-02-20 22:17:19.009 DST mode: 1; Timezone offset: 0h 0m
. 2016-02-20 22:17:19.009 --------------------------------------------------------------------------
. 2016-02-20 22:17:19.078 Looking up host "xxx"
. 2016-02-20 22:17:19.084 Connecting to ::1 port 9150
. 2016-02-20 22:17:20.112 Failed to connect to ::1: Network error: Connection refused
. 2016-02-20 22:17:20.112 Connecting to ::1 port 9150
. 2016-02-20 22:17:20.143 Waiting for the server to continue with the initialization
. 2016-02-20 22:17:20.143 Detected network event
. 2016-02-20 22:17:20.143 Waiting for the server to continue with the initialization
. 2016-02-20 22:17:20.253 Detected network event
. 2016-02-20 22:17:20.253 Waiting for the server to continue with the initialization
. 2016-02-20 22:17:20.346 Detected network event
. 2016-02-20 22:17:20.346 Server version: SSH-2.0-OpenSSH_6.0p1 Debian-4+deb7u2
. 2016-02-20 22:17:20.346 Using SSH protocol version 2
. 2016-02-20 22:17:20.346 We claim version: SSH-2.0-WinSCP_release_5.5
. 2016-02-20 22:17:20.346 Waiting for the server to continue with the initialization
. 2016-02-20 22:17:20.456 Detected network event
. 2016-02-20 22:17:20.456 Waiting for the server to continue with the initialization
. 2016-02-20 22:17:20.549 Detected network event
. 2016-02-20 22:17:20.549 Doing Diffie-Hellman group exchange
. 2016-02-20 22:17:20.549 Waiting for the server to continue with the initialization
. 2016-02-20 22:17:20.659 Detected network event
. 2016-02-20 22:17:20.659 Waiting for the server to continue with the initialization
. 2016-02-20 22:17:20.752 Detected network event
. 2016-02-20 22:17:20.752 Doing Diffie-Hellman key exchange with hash SHA-256
. 2016-02-20 22:17:21.065 Waiting for the server to continue with the initialization
. 2016-02-20 22:17:21.190 Detected network event
. 2016-02-20 22:17:21.190 Waiting for the server to continue with the initialization
. 2016-02-20 22:17:21.284 Detected network event
. 2016-02-20 22:17:21.612 Verifying host key rsa2 0x10001,0xca9541c0ec6f7374....xxx
. 2016-02-20 22:17:21.643 Host key matches cached key
. 2016-02-20 22:17:21.643 Host key fingerprint is:
. 2016-02-20 22:17:21.643 ssh-rsa 2048 xxx
. 2016-02-20 22:17:21.643 Initialised AES-256 SDCTR client->server encryption
. 2016-02-20 22:17:21.643 Initialised HMAC-SHA-256 client->server MAC algorithm
. 2016-02-20 22:17:21.643 Initialised AES-256 SDCTR server->client encryption
. 2016-02-20 22:17:21.643 Initialised HMAC-SHA-256 server->client MAC algorithm
. 2016-02-20 22:17:21.643 Waiting for the server to continue with the initialization
. 2016-02-20 22:17:21.831 Detected network event
! 2016-02-20 22:17:21.831 Using username "root".
. 2016-02-20 22:17:21.893 Waiting for the server to continue with the initialization
. 2016-02-20 22:17:22.096 Detected network event
. 2016-02-20 22:17:22.096 Prompt (7, SSH password, , &Password: )
. 2016-02-20 22:17:22.096 Using stored password.
. 2016-02-20 22:17:22.159 Sent password
. 2016-02-20 22:17:22.159 Waiting for the server to continue with the initialization
. 2016-02-20 22:17:22.268 Detected network event
. 2016-02-20 22:17:22.268 Access granted
. 2016-02-20 22:17:22.268 Opening session as main channel
. 2016-02-20 22:17:22.268 Waiting for the server to continue with the initialization
. 2016-02-20 22:17:22.377 Detected network event
. 2016-02-20 22:17:22.377 Opened main channel
. 2016-02-20 22:17:22.377 Waiting for the server to continue with the initialization
. 2016-02-20 22:17:22.471 Detected network event
. 2016-02-20 22:17:22.471 Started a shell/command
. 2016-02-20 22:17:22.534 --------------------------------------------------------------------------
. 2016-02-20 22:17:22.534 Using SFTP protocol.
. 2016-02-20 22:17:22.534 Doing startup conversation with host.
. 2016-02-20 22:17:22.534 Session upkeep
> 2016-02-20 22:17:22.596 Type: SSH_FXP_INIT, Size: 5, Number: -1
. 2016-02-20 22:17:22.596 Sent 9 bytes
. 2016-02-20 22:17:22.596 There are 0 bytes remaining in the send buffer
. 2016-02-20 22:17:22.596 Waiting for another 4 bytes
. 2016-02-20 22:17:22.705 Detected network event
. 2016-02-20 22:17:22.705 Received 128 bytes (0)
. 2016-02-20 22:17:22.705 Read 4 bytes (124 pending)
. 2016-02-20 22:17:22.705 Read 124 bytes (0 pending)
< 2016-02-20 22:17:22.705 Type: SSH_FXP_VERSION, Size: 124, Number: -1
. 2016-02-20 22:17:22.705 SFTP version 3 negotiated.
. 2016-02-20 22:17:22.705 Unknown server extension posix-rename@openssh.com="1"
. 2016-02-20 22:17:22.705 Supports statvfs@openssh.com extension version "2"
. 2016-02-20 22:17:22.705 Unknown server extension fstatvfs@openssh.com="2"
. 2016-02-20 22:17:22.705 Unknown server extension hardlink@openssh.com="1"
. 2016-02-20 22:17:22.705 We believe the server has signed timestamps bug
. 2016-02-20 22:17:22.705 We will use UTF-8 strings when appropriate
. 2016-02-20 22:17:22.705 Limiting packet size to OpenSSH sftp-server limit of 262148 bytes
. 2016-02-20 22:17:22.721 Changing directory to "/root".
. 2016-02-20 22:17:22.721 Getting real path for '/root'
> 2016-02-20 22:17:22.721 Type: SSH_FXP_REALPATH, Size: 14, Number: 16
. 2016-02-20 22:17:22.721 Sent 18 bytes
. 2016-02-20 22:17:22.721 There are 0 bytes remaining in the send buffer
. 2016-02-20 22:17:22.721 Waiting for another 4 bytes
. 2016-02-20 22:17:22.815 Detected network event
. 2016-02-20 22:17:22.830 Received 35 bytes (0)
. 2016-02-20 22:17:22.830 Read 4 bytes (31 pending)
. 2016-02-20 22:17:22.830 Read 31 bytes (0 pending)
< 2016-02-20 22:17:22.830 Type: SSH_FXP_NAME, Size: 31, Number: 16
. 2016-02-20 22:17:22.830 Real path is '/root'
. 2016-02-20 22:17:22.830 Trying to open directory "/root".
> 2016-02-20 22:17:22.830 Type: SSH_FXP_LSTAT, Size: 14, Number: 263
. 2016-02-20 22:17:22.830 Sent 18 bytes
. 2016-02-20 22:17:22.830 There are 0 bytes remaining in the send buffer
. 2016-02-20 22:17:22.830 Waiting for another 4 bytes
. 2016-02-20 22:17:22.924 Detected network event
. 2016-02-20 22:17:22.924 Received 41 bytes (0)
. 2016-02-20 22:17:22.924 Read 4 bytes (37 pending)
. 2016-02-20 22:17:22.924 Read 37 bytes (0 pending)
< 2016-02-20 22:17:22.924 Type: SSH_FXP_ATTRS, Size: 37, Number: 263
. 2016-02-20 22:17:22.924 Getting current directory name.
. 2016-02-20 22:17:23.096 Listing directory "/root".
> 2016-02-20 22:17:23.096 Type: SSH_FXP_OPENDIR, Size: 14, Number: 523
. 2016-02-20 22:17:23.096 Sent 18 bytes
. 2016-02-20 22:17:23.096 There are 0 bytes remaining in the send buffer
. 2016-02-20 22:17:23.096 Waiting for another 4 bytes
. 2016-02-20 22:17:23.190 Detected network event
. 2016-02-20 22:17:23.190 Received 17 bytes (0)
. 2016-02-20 22:17:23.190 Read 4 bytes (13 pending)
. 2016-02-20 22:17:23.190 Read 13 bytes (0 pending)
< 2016-02-20 22:17:23.190 Type: SSH_FXP_HANDLE, Size: 13, Number: 523
> 2016-02-20 22:17:23.190 Type: SSH_FXP_READDIR, Size: 13, Number: 780
. 2016-02-20 22:17:23.190 Sent 17 bytes
. 2016-02-20 22:17:23.190 There are 0 bytes remaining in the send buffer
. 2016-02-20 22:17:23.190 Waiting for another 4 bytes
. 2016-02-20 22:17:23.299 Detected network event
. 2016-02-20 22:17:23.299 Waiting for another 4 bytes
. 2016-02-20 22:17:23.393 Detected network event
. 2016-02-20 22:17:23.393 Received 1415 bytes (0)
. 2016-02-20 22:17:23.393 Read 4 bytes (1411 pending)
. 2016-02-20 22:17:23.393 Read 1411 bytes (0 pending)
< 2016-02-20 22:17:23.393 Type: SSH_FXP_NAME, Size: 1411, Number: 780
> 2016-02-20 22:17:23.393 Type: SSH_FXP_READDIR, Size: 13, Number: 1036
. 2016-02-20 22:17:23.393 Sent 17 bytes
. 2016-02-20 22:17:23.393 There are 0 bytes remaining in the send buffer
. 2016-02-20 22:17:23.393 Read file '.bash_history' from listing
. 2016-02-20 22:17:23.393 Read file '.profile' from listing
. 2016-02-20 22:17:23.393 Read file '.aptitude' from listing
. 2016-02-20 22:17:23.393 Read file 'etherwake_1.08-1_arm.deb' from listing
. 2016-02-20 22:17:23.393 Read file '.' from listing
. 2016-02-20 22:17:23.393 Read file '.config' from listing
. 2016-02-20 22:17:23.393 Read file '.bashrc' from listing
. 2016-02-20 22:17:23.393 Read file 'debian.update' from listing
. 2016-02-20 22:17:23.393 Read file '..' from listing
. 2016-02-20 22:17:23.393 Read file 'mail' from listing
. 2016-02-20 22:17:23.409 Read file '.ssh' from listing
. 2016-02-20 22:17:23.409 Read file 'debian.update.log.20141124-120519' from listing
. 2016-02-20 22:17:23.409 Waiting for another 4 bytes
. 2016-02-20 22:17:23.502 Detected network event
. 2016-02-20 22:17:23.502 Received 32 bytes (0)
. 2016-02-20 22:17:23.502 Read 4 bytes (28 pending)
. 2016-02-20 22:17:23.502 Read 28 bytes (0 pending)
< 2016-02-20 22:17:23.502 Type: SSH_FXP_STATUS, Size: 28, Number: 1036
< 2016-02-20 22:17:23.502 Status code: 1
> 2016-02-20 22:17:23.502 Type: SSH_FXP_CLOSE, Size: 13, Number: 1284
. 2016-02-20 22:17:23.502 Sent 17 bytes
. 2016-02-20 22:17:23.502 There are 0 bytes remaining in the send buffer
xxx
. 2016-02-20 22:17:23.502 debian.update.log.20141124-120519;-;15849;2014-11-24T11:06:01.000Z;"root" [0];"root" [0];rw-r--r--;0
. 2016-02-20 22:17:23.596 Startup conversation with host finished.
. 2016-02-20 22:17:24.496 Session upkeep
. 2016-02-20 22:17:24.496 Detected network event
. 2016-02-20 22:17:24.496 Received 28 bytes (0)










######################

Reply with quote

Guest

beta buggy version:

. 2016-02-20 22:16:47.565 --------------------------------------------------------------------------
. 2016-02-20 22:16:47.565 WinSCP Version 5.8.1 beta (Build 6144) (OS 10.0.10240 - Windows 10 Pro)
. 2016-02-20 22:16:47.565 Configuration: C:\Users\xxx\Desktop\WinSCP.ini
. 2016-02-20 22:16:47.565 Log level: Debug 1
. 2016-02-20 22:16:47.565 Local account: LOCAL\xxx
. 2016-02-20 22:16:47.565 Working directory: C:\Users\xxx\Desktop
. 2016-02-20 22:16:47.565 Process ID: 2128
. 2016-02-20 22:16:47.565 Command-line: "C:\Users\xxx\Desktop\WinSCP.exe"
. 2016-02-20 22:16:47.565 Time zone: Current: GMT+1, Standard: GMT+1 (Mitteleuropäische Zeit), DST: GMT+2 (Mitteleuropäische Sommerzeit), DST Start: 27.03.2016, DST End: 30.10.2016
. 2016-02-20 22:16:47.565 Login time: Samstag, 20. Februar 2016 22:16:47
. 2016-02-20 22:16:47.565 --------------------------------------------------------------------------
. 2016-02-20 22:16:47.565 Session name: root@xxx (Site)
. 2016-02-20 22:16:47.565 Host name: xxx (Port: 22)
. 2016-02-20 22:16:47.565 User name: root (Password: Yes, Key file: No)
. 2016-02-20 22:16:47.565 Tunnel: No
. 2016-02-20 22:16:47.565 Transfer Protocol: SFTP (SCP)
. 2016-02-20 22:16:47.565 Ping type: Off, Ping interval: 30 sec; Timeout: 15 sec
. 2016-02-20 22:16:47.565 Disable Nagle: No
. 2016-02-20 22:16:47.565 Proxy: SOCKS5
. 2016-02-20 22:16:47.565 HostName: localhost (Port: 9150); Username: ; Passwd: No
. 2016-02-20 22:16:47.565 Send buffer: 262144
. 2016-02-20 22:16:47.565 SSH protocol version: 2 only; Compression: No
. 2016-02-20 22:16:47.565 Bypass authentication: No
. 2016-02-20 22:16:47.565 Try agent: Yes; Agent forwarding: No; TIS/CryptoCard: No; KI: Yes; GSSAPI: No
. 2016-02-20 22:16:47.565 Ciphers: aes,blowfish,chacha20,3des,WARN,arcfour,des; Ssh2DES: No
. 2016-02-20 22:16:47.565 KEX: ecdh,dh-gex-sha1,dh-group14-sha1,dh-group1-sha1,rsa,WARN
. 2016-02-20 22:16:47.565 SSH Bugs: Auto,Auto,Auto,Auto,Auto,Auto,Auto,Auto,Auto,Auto,Auto,Auto
. 2016-02-20 22:16:47.565 Simple channel: Yes
. 2016-02-20 22:16:47.565 Return code variable: Autodetect; Lookup user groups: Auto
. 2016-02-20 22:16:47.565 Shell: default
. 2016-02-20 22:16:47.565 EOL: LF, UTF: Auto
. 2016-02-20 22:16:47.565 Clear aliases: Yes, Unset nat.vars: Yes, Resolve symlinks: Yes
. 2016-02-20 22:16:47.565 LS: ls -la, Ign LS warn: Yes, Scp1 Comp: No
. 2016-02-20 22:16:47.565 SFTP Bugs: Auto,Auto
. 2016-02-20 22:16:47.565 SFTP Server: default
. 2016-02-20 22:16:47.565 Local directory: C:\Users\xxx\Documents, Remote directory: /root, Update: Yes, Cache: Yes
. 2016-02-20 22:16:47.565 Cache directory changes: Yes, Permanent: Yes
. 2016-02-20 22:16:47.565 Recycle bin: Delete to: No, Overwritten to: No, Bin path:
. 2016-02-20 22:16:47.565 DST mode: Unix
. 2016-02-20 22:16:47.565 --------------------------------------------------------------------------
. 2016-02-20 22:16:47.659 Leaving host lookup to proxy of "xxx" (for SSH connection)
* 2016-02-20 22:16:47.721 (EFatal) **Connection has been unexpectedly closed.** Server sent command exit status 2147483647.
. 2016-02-20 22:17:19.007 --------------------------------------------------------------------------

Reply with quote

Advertisement

Guest

this also works

i always use the latest beta version when it comes out and have always proxy in my config
so the problem just happens with the latest beta version

Reply with quote

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

Thanks. I can reproduce this now too.

Can you send me an email, so I can send you back a development version of WinSCP for testing once I fix this? Please include link back to this topic in your email. Also note in this topic that you have sent the email. Thanks.

You will find my address (if you log in) in my forum profile.

Reply with quote

Advertisement

Advertisement

You can post new topics in this forum