Post a reply

Options
Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)

Options

Topic review

martin

Re: Authentication SFTP failed, only in command-line version

UpsideDownTire wrote:

When might we be able to use version 4.2.3? The referenced "Tracker Bug 388" states "Resolution: FIXED" and "Fixed in: 4.2.3".

Few weeks.
UpsideDownTire

Re: Authentication SFTP failed, only in command-line version

martin wrote:

Thanks for your post. This issue is being tracked already.



When might we be able to use version 4.2.3? The referenced "Tracker Bug 388" states "Resolution: FIXED" and "Fixed in: 4.2.3".
martin

Re: Authentication SFTP failed, only in command-line version

Thanks for your post. This issue is being tracked already.
Nikum

Authentication SFTP failed, only in command-line version

In continuation https://winscp.net/forum/viewtopic.php?t=7034
WinSCP 4.2.2.480
I try to open stored SFTP session by GUI - it works. But, when WinSCP write in log-window "Authentication with pre-entered password", it waits, while I press "Ok" button, and only then continued to connect. (In 4.1.9.416 - it doesn't need in pressing "Ok", just connecting)
So, when I try to connect the same session by command-line version - it can't connect at all - ... unexpectedly closed. Server sent command exit status 0 ...
Log from sucessful connection (GUI):

. 2009-07-28 15:50:34.058 --------------------------------------------------------------------------
. 2009-07-28 15:50:34.058 WinSCP Version 4.2.2 (Build 480) (OS 5.1.2600 Service Pack 3)
. 2009-07-28 15:50:34.058 Login time: ...
. 2009-07-28 15:50:34.058 --------------------------------------------------------------------------
. 2009-07-28 15:50:34.058 Session name: SFTP
. 2009-07-28 15:50:34.058 Host name: ****.ru (Port: 22)
. 2009-07-28 15:50:34.058 User name: *****(Password: Yes, Key file: No)
. 2009-07-28 15:50:34.058 Tunnel: No
. 2009-07-28 15:50:34.058 Transfer Protocol: SFTP (SCP)
. 2009-07-28 15:50:34.058 Ping type: -, Ping interval: 30 sec; Timeout: 15 sec
. 2009-07-28 15:50:34.058 Proxy: none
. 2009-07-28 15:50:34.058 SSH protocol version: 2; Compression: No
. 2009-07-28 15:50:34.058 Bypass authentication: No
. 2009-07-28 15:50:34.058 Try agent: Yes; Agent forwarding: No; TIS/CryptoCard: No; KI: Yes; GSSAPI: No
. 2009-07-28 15:50:34.058 Ciphers: aes,blowfish,3des,WARN,arcfour,des; Ssh2DES: No
. 2009-07-28 15:50:34.058 SSH Bugs: -,-,-,-,-,-,-,-,-
. 2009-07-28 15:50:34.058 SFTP Bugs: -,-
. 2009-07-28 15:50:34.058 Return code variable: Autodetect; Lookup user groups: Yes
. 2009-07-28 15:50:34.058 Shell: default, EOL: 0
. 2009-07-28 15:50:34.058 Clear aliases: Yes, Unset nat.vars: Yes, Resolve symlinks: Yes
. 2009-07-28 15:50:34.058 LS: ls -la, Ign LS warn: Yes, Scp1 Comp: No
. 2009-07-28 15:50:34.058 Local directory: D:\, Remote directory: /home/public_html, Update: No, Cache: Yes
. 2009-07-28 15:50:34.058 Cache directory changes: Yes, Permanent: Yes
. 2009-07-28 15:50:34.058 DST mode: 0
. 2009-07-28 15:50:34.058 --------------------------------------------------------------------------
. 2009-07-28 15:50:34.073 Looking up host "****.ru"
. 2009-07-28 15:50:34.136 Connecting to 80.**.**.** port 22
. 2009-07-28 15:50:34.183 Server version: SSH-2.0-OpenSSH_4.5p1 FreeBSD-20061110
. 2009-07-28 15:50:34.183 Using SSH protocol version 2
. 2009-07-28 15:50:34.183 We claim version: SSH-2.0-WinSCP_release_4.2.2
. 2009-07-28 15:50:34.198 Doing Diffie-Hellman group exchange
. 2009-07-28 15:50:34.323 Doing Diffie-Hellman key exchange with hash SHA-1
. 2009-07-28 15:50:34.636 Host key fingerprint is:
. 2009-07-28 15:50:34.636 ssh-dss 1024 ************************************
. 2009-07-28 15:50:34.636 Initialised AES-256 SDCTR client->server encryption
. 2009-07-28 15:50:34.636 Initialised HMAC-SHA1 client->server MAC algorithm
. 2009-07-28 15:50:34.636 Initialised AES-256 SDCTR server->client encryption
. 2009-07-28 15:50:34.636 Initialised HMAC-SHA1 server->client MAC algorithm
! 2009-07-28 15:50:34.761 Using username "******".
. 2009-07-28 15:50:34.823 Prompt (5, SSH server authentication, Using keyboard-interactive authentication., Password:)
. 2009-07-28 15:50:34.823 Using stored password.
. 2009-07-28 15:50:34.839 Prompt (5, SSH server authentication, , <no prompt>)
. 2009-07-28 15:50:36.370 Access granted
. 2009-07-28 15:50:36.386 Opened channel for session
. 2009-07-28 15:50:36.511 Started a shell/command


Log from UNsuccessful connection (Command-line):


. 2009-07-28 15:45:41.883 --------------------------------------------------------------------------
. 2009-07-28 15:45:41.883 WinSCP Version 4.2.2 (Build 480) (OS 5.1.2600 Service Pack 3)
. 2009-07-28 15:45:41.883 Login time: ...
. 2009-07-28 15:45:41.883 --------------------------------------------------------------------------
. 2009-07-28 15:45:41.883 Session name: SFTP
. 2009-07-28 15:45:41.883 Host name: ****.ru (Port: 22)
. 2009-07-28 15:45:41.883 User name: ***** (Password: Yes, Key file: No)
. 2009-07-28 15:45:41.883 Tunnel: No
. 2009-07-28 15:45:41.883 Transfer Protocol: SFTP (SCP)
. 2009-07-28 15:45:41.883 Ping type: -, Ping interval: 30 sec; Timeout: 15 sec
. 2009-07-28 15:45:41.883 Proxy: none
. 2009-07-28 15:45:41.883 SSH protocol version: 2; Compression: No
. 2009-07-28 15:45:41.883 Bypass authentication: No
. 2009-07-28 15:45:41.883 Try agent: Yes; Agent forwarding: No; TIS/CryptoCard: No; KI: Yes; GSSAPI: No
. 2009-07-28 15:45:41.883 Ciphers: aes,blowfish,3des,WARN,arcfour,des; Ssh2DES: No
. 2009-07-28 15:45:41.883 SSH Bugs: -,-,-,-,-,-,-,-,-
. 2009-07-28 15:45:41.883 SFTP Bugs: -,-
. 2009-07-28 15:45:41.883 Return code variable: Autodetect; Lookup user groups: Yes
. 2009-07-28 15:45:41.883 Shell: default, EOL: 0
. 2009-07-28 15:45:41.883 Clear aliases: Yes, Unset nat.vars: Yes, Resolve symlinks: Yes
. 2009-07-28 15:45:41.883 LS: ls -la, Ign LS warn: Yes, Scp1 Comp: No
. 2009-07-28 15:45:41.883 Local directory: D:\, Remote directory: /home/public_html, Update: No, Cache: Yes
. 2009-07-28 15:45:41.883 Cache directory changes: Yes, Permanent: Yes
. 2009-07-28 15:45:41.883 DST mode: 0
. 2009-07-28 15:45:41.883 --------------------------------------------------------------------------
. 2009-07-28 15:45:41.883 Looking up host "****.ru"
. 2009-07-28 15:45:41.930 Connecting to 80.**.**.** port 22
. 2009-07-28 15:45:41.976 Server version: SSH-2.0-OpenSSH_4.5p1 FreeBSD-20061110
. 2009-07-28 15:45:41.976 Using SSH protocol version 2
. 2009-07-28 15:45:41.976 We claim version: SSH-2.0-WinSCP_release_4.2.2
. 2009-07-28 15:45:41.992 Doing Diffie-Hellman group exchange
. 2009-07-28 15:45:42.117 Doing Diffie-Hellman key exchange with hash SHA-1
. 2009-07-28 15:45:42.445 Host key fingerprint is:
. 2009-07-28 15:45:42.445 ssh-dss 1024 **********************************
. 2009-07-28 15:45:42.445 Initialised AES-256 SDCTR client->server encryption
. 2009-07-28 15:45:42.445 Initialised HMAC-SHA1 client->server MAC algorithm
. 2009-07-28 15:45:42.445 Initialised AES-256 SDCTR server->client encryption
. 2009-07-28 15:45:42.445 Initialised HMAC-SHA1 server->client MAC algorithm
! 2009-07-28 15:45:42.570 Using username "******".
. 2009-07-28 15:45:42.633 Prompt (5, SSH server authentication, Using keyboard-interactive authentication., Password:)
. 2009-07-28 15:45:42.633 Using stored password.
. 2009-07-28 15:45:42.648 Prompt (5, SSH server authentication, , <no prompt>)
. 2009-07-28 15:45:42.648 Disconnected: Unable to authenticate