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.
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
# 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 }
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.