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: ssh server authentication

Please attach complete session log files both from the GUI and the script.

Also note that, if you have the connection working in the GUI, you can have it generate a script template for you:
https://winscp.net/eng/docs/ui_generateurl#script
tle

SSH server authentication

I am trying to connect to a target server. Through WinSCP GUI, filling in the username, password and port number, I can log in. But when I use the WinSCP com command line, it keeps asking for password and eventually close connection. Can you tell me what I am doing wrong or point me in the right direction?

Below is what I see from my log file.
EFT Server 6.5.16.3

Server offered these authentication methods: password,keyboard-interactive
Attempting keyboard-interactive authentication
Prompt (keyboard interactive, "SSH server authentication", <no instructions>, "Enter password: ")
Using stored password.
Further authentication required
Further authentication required
Server offered these authentication methods: password,keyboard-interactive
Attempting keyboard-interactive authentication
Prompt (keyboard interactive, "SSH server authentication", <no instructions>, "Enter password: ")
User aborted during keyboard-interactive authentication
Attempt to close connection due to fatal exception:
**Connection has been unexpectedly closed.** Server sent command exit status 0.
Closing connection.