Password Failed...
I am trying to upload a file to an SFTP site using a powershell script. Each time i get an the error 'no supported authentication methods available'.
below is the code snippet and the log showing the error:
below is the code snippet and the log showing the error:
Powershell Code Snippet: $sessionOptions = New-Object WinSCP.SessionOptions $sessionOptions.Protocol = [WinSCP.Protocol]::Sftp $sessionOptions.HostName = "ftp.site.com" $sessionOptions.UserName = "username" $sessionOptions.Password = "pass" $sessionOptions.SshHostKeyFingerprint = "ssh-dss 1024 x:x:x:x:x:x:x:x:x:x:x:x:x:x:x:x"
Log Snippet: ! 2014-02-27 13:30:25.059 Using username "username". ! 2014-02-27 13:30:25.099 Further authentication required . 2014-02-27 13:30:25.099 Further authentication required . 2014-02-27 13:30:25.099 Prompt (7, SSH password, , &Password: ) . 2014-02-27 13:30:25.099 Using stored password. . 2014-02-27 13:30:25.100 Sent password . 2014-02-27 13:30:25.140 Password authentication failed ! 2014-02-27 13:30:25.140 Access denied . 2014-02-27 13:30:25.141 Disconnected: No supported authentication methods available (server sent: )