Post a reply

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)


Topic review


Re: Powershell module - Authentication Failure

That is so cool! This application is the most well documented and user-friendly I have ever seen.

PowerShell module - Authentication Failure

I'm trying to use the WinSCP PowerShell module to make a connection to a remote FTP site. I keep getting "Authentication Failure" but I'm not sure what other options I need to include.
# Setup session options
$sessionOptions = New-Object WinSCP.SessionOptions -Property @{
    Protocol = [WinSCP.Protocol]::Ftp
    HostName = ""
    UserName = 'xxx'
    Password = "xxx"
    PortNumber = 21
    FtpSecure = [WinSCP.FtpSecure]::Explicit

I'm mirroring the instructions found on this page:

I'm able to connect using the GUI, so I know I've got the correct login information. I am leaving off the SshHostKeyFingerprint because it didn't seem necessary (where do I even find this information?) but it may be the source of my connection problems.