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 my my connection problems.

Reply with quote

Advertisement

Advertisement

You can post new topics in this forum