Post a reply

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)


Topic review


I realized what was the issue, I replaced / with %2F

Parallel transfers


I'm trying to get this script running:

No matter what I put as fingerprint I can't get it running. I get wrong fingerprint if I use it in MD5 format which is I guess expected but in case of sha256 I'm getting Error:
Exception calling "ParseUrl" with "1" argument(s): "Root path can be specified for WebDAV and S3 protocols only.

Here are that example:
param (
    $sessionUrl = "sftp://user:pass;fingerprint=ssh-rsa-TS34ej2JO6rFNfKA4z0W+wZ7UOly5/yYKIUBr8u67XA=@",
    $remotePath = "/transfer/",
    $localPath = "C:\pb\doc",
    $batches = 3
    $assemblyFilePath = "WinSCPnet.dll"
    # Load WinSCP .NET assembly
    Add-Type -Path $assemblyFilePath
    # Setup session options
    $sessionOptions = New-Object WinSCP.SessionOptions
    $started = Get-Date
    # Plain variables cannot be modified in job threads
    $stats = @{
        count = 0
        bytes = [long]0

Can someone please assist on how to add hostkey to accept any fingerprint/host for that script? Thank you