PowerShell module - Authentication Failure

Advertisement

mcarner5
Guest

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.

Reply with quote

Advertisement

mcarner5
Guest

Re: Powershell module - Authentication Failure

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

Reply with quote

Advertisement

You can post new topics in this forum