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

mcarner5

Re: Powershell module - Authentication Failure

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

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 = "ftp-xxxx.com"
    UserName = 'xxx'
    Password = "xxx"
    PortNumber = 21
    FtpSecure = [WinSCP.FtpSecure]::Explicit
}

I'm mirroring the instructions found on this page:
https://helpdesk.egnyte.com/hc/en-us/articles/201637944-WinSCP-FTP-Client-Windows-

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.