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

Deano82

Hi, i managed to resolve the issue. We were using brackets in our script argument [], when i removed these it worked fine
Deano82

SFTP connection working in GUI but not via command prompt

Hello there,
We have an issue trying to connect to a remote server via SFTP using the WinSCP command prompt. Using the GUI interface with the same login credentials it works fine but when trying to automate this via a script it fails with the following error:
Authenticating...

Using username "[USERNAME]".
No supported authentication methods available (server sent: publickey,gssapi-keyex,gssapi-with-mic)
Authentication log (see session log for details):
Using username "[USERNAME]".

Also the session log shows the following error:
Trying gssapi-with-mic...

. Attempting GSSAPI authentication
. GSSAPI authentication request refused
. Server offered these authentication methods: publickey,gssapi-keyex,gssapi-with-mic
. No supported authentication methods available (server sent: publickey,gssapi-keyex,gssapi-with-mic)
. Attempt to close connection due to fatal exception:
* No supported authentication methods available (server sent: publickey,gssapi-keyex,gssapi-with-mic)
. Closing connection.
< Script: No supported authentication methods available (server sent: publickey,gssapi-keyex,gssapi-with-mic)
< Authentication log (see session log for details):

We have cached the host key fingerprint which works fine in the GUI but not via the WinSCP cmd prompt

On speaking to another company who have this working their log shows the following which ours is missing:
Prompt (password, "SSH password", <no instructions>, "&Password: ")                                                

Using stored password.                                                                                             
Script: Authenticating with pre-entered password.                                                                 
Sent password                                                                                                     
Access granted

Any ideas on this?
Thanks in advance