Post a reply

Before posting, please read how to report bug or request support effectively.

Bug reports without an attached log file are usually useless.

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

pratikshah1

Unable to Authenticate

I am trying to log in using powershell script.
Below is what I am using

$sessionOptions = New-Object WinSCP.SessionOptions -Property @{
Protocol = [WinSCP.Protocol]::Sftp
HostName = "abc.net"
UserName = "username"
Password = '' -- i do not have a password hence keeping it blank
SshHostKeyFingerprint = "ssh-rsa 2048 xx:xx:xx:....."

as mentioned above I do not have the password and so keeping it blank. in my log I get the following message
. 2018-01-23 15:41:05.171 Prompt (keyboard interactive, "SSH server authentication", "Using keyboard-interactive authentication.", "username's Password: ")
. 2018-01-23 15:41:05.171 Disconnected: Unable to authenticate

When I log in from the UI I do not provide a password. Just username and the key.

can you please help and let me know what am I missing