Issue connecting via SFTP to dropbox using Powershell
I'm successfil using the standard winSCP app in connecting and uploading files, but have issues connecting with the following code:
Log file attached
# Load WinSCP .NET assembly Add-Type -Path "c:\Program Files (x86)\WinSCP\WinSCPnet.dll" # Set up session options $sessionOptions = New-Object WinSCP.SessionOptions -Property @{ Protocol = [WinSCP.Protocol]::Sftp HostName = "dropbox.xxxx.com" UserName = "xxxxxx" Password = "xxxxxxx" SshHostKeyFingerprint = "xxxxxxxxxxx" } $sessionOptions.AddRawSettings("TryAgent", "0") $sessionOptions.AddRawSettings("FSProtocol", "2") $session = New-Object WinSCP.Session
Log file attached