SSH Login error from script connection

Advertisement

Alan.l.rees@gmail.com
Joined:
Posts:
1
Location:
en34lu

SSH Login error from script connection

I've used WinSCP for a number of years without any issues. I've just created a new connection which works perfectly from the GUI but when I use the command line it issues an error and will not connect, error is -
Prompt (username, "SSH login name", <no instructions>, "login as: ")
The private key authenticates but it is not able to use the username for some reason. All other connections that use the same method work fine?
Logfile -
< 2021-07-05 16:36:35.764 Script: Connecting to host...
. 2021-07-05 16:36:35.764 We claim version: SSH-2.0-WinSCP_release_5.19.1
. 2021-07-05 16:36:35.779 Remote version: SSH-2.0-OpenSSH_7.4
. 2021-07-05 16:36:35.779 Using SSH protocol version 2
. 2021-07-05 16:36:35.779 Have a known host key of type ssh-ed25519
. 2021-07-05 16:36:35.795 Doing ECDH key exchange with curve Curve25519 and hash SHA-256
. 2021-07-05 16:36:35.889 Server also has ecdsa-sha2-nistp256/ssh-rsa host keys, but we don't know any of them
. 2021-07-05 16:36:35.889 Host key fingerprint is:
. 2021-07-05 16:36:35.889 ssh-ed25519 255 64:f3:6e:6e:00:70:34:77:e6:91:02:a7:c7:f2:34:65 Uig0ETOOoEywTWry0hfotDK0BvEaSoPMyJc5gGTzPZc=
< 2021-07-05 16:36:35.889 Script: Authenticating...
. 2021-07-05 16:36:35.889 Host key matches cached key
. 2021-07-05 16:36:35.889 Initialised AES-256 SDCTR (AES-NI accelerated) [aes256-ctr] outbound encryption
. 2021-07-05 16:36:35.889 Initialised HMAC-SHA-256 outbound MAC algorithm
. 2021-07-05 16:36:35.889 Initialised AES-256 SDCTR (AES-NI accelerated) [aes256-ctr] inbound encryption
. 2021-07-05 16:36:35.889 Initialised HMAC-SHA-256 inbound MAC algorithm
. 2021-07-05 16:36:35.904 Prompt (username, "SSH login name", <no instructions>, "login as: ")
. 2021-07-05 16:36:35.904 No username provided
. 2021-07-05 16:36:35.904 Attempt to close connection due to fatal exception:
* 2021-07-05 16:36:35.904 **Connection has been unexpectedly closed.** Server sent command exit status 0.
. 2021-07-05 16:36:35.904 Closing connection.
< 2021-07-05 16:36:35.904 Script: Connection has been unexpectedly closed. Server sent command exit status 0.

Reply with quote

Advertisement

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

Re: SSH Login error from script connection

Please attach a full session log file showing the problem (using the latest version of WinSCP).

Reply with quote

Advertisement

You can post new topics in this forum