Giter Site home page Giter Site logo

transferetto's Introduction

Transferetto - PowerShell Module

Transferetto is a PowerShell module that aims to provide FTP, FTPS, and SFTP functionality. To find out more about it I've created a blog post Easy way to connect to FTPS and SFTP using PowerShell](https://evotec.xyz/easy-way-to-connect-to-ftps-and-sftp-using-powershell/). It uses the following .NET libraries to deliver this functionality:

Both libraries are MIT licenses.

Features

  • FTPS/SFTP functionality
    • Connect to FTP, FTPS, SFTP
    • Upload/Download files from FTP/FTPS/SFTP
    • Rename SFTP files
    • Remove FTP/FTPS files
    • And some more

Please make sure to read blog post or check examples to see how to use it.

To install

Install-Module -Name Transferetto -AllowClobber -Force

Force and AllowClobber aren't necessary, but they do skip errors in case some appear.

And to update

Update-Module -Name Transferetto

That's it. Whenever there's a new version, you run the command, and you can enjoy it. Remember that you may need to close, reopen PowerShell session if you have already used module before updating it.

The essential thing is if something works for you on production, keep using it till you test the new version on a test computer. I do changes that may not be big, but big enough that auto-update may break your code. For example, a small rename to a parameter, and your code stops working! Be responsible!

transferetto's People

Contributors

mundayn avatar przemyslawklys avatar sidewinder53 avatar szeraax avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

transferetto's Issues

Unchanged files are always overwritten when loading a directory

Hi,

I noticed that when using the Send-FTPDirectory function, the files inside the chosen directory as always uploaded, whether they are already on the server or not.

Actually, it appears that the RemoteExists, VerifyOptions and Rules parameters are never used, cf :

$Client.UploadDirectory($LocalPath, $RemotePath, $FolderSyncMode) #, $RemoteExists, $VerifyOptions, @($Rules))

The Receive-FTPDirectory function also ignores these parameters.

I tried to modify my local Transferetto.psm1 file (downloaded from PowershellGallery) to add this parameters to the call of the UploadDirectory method, but it raises an MethodCountCouldNotFindBest error.

I'm a little bit confused, as this method seems to accept all the parameters :

$client = [FluentFTP.FtpClient]::new()
($client | Get-Member -Name 'UploadDirectory').Definition
System.Collections.Generic.List[FluentFTP.FtpResult] UploadDirectory(
    string localFolder,
    string remoteFolder,
    FluentFTP.FtpFolderSyncMode mode,
    FluentFTP.FtpRemoteExists existsMode,
    FluentFTP.FtpVerify verifyOptions,
    System.Collections.Generic.List[FluentFTP.Rules.FtpRule] rules,
    System.Action[FluentFTP.FtpProgress] progress
)

As there are commented lines, i imagine there is a good reason why these parameters are ignored, but I can't figure out what I'm missing.
Is there any way to handle these parameters, and by so, to prevent the files existing on the destination from being transferred (by using [Local | Remote]Exists -Skip) ?

Thanks in advance !

Implement PrivateKeyfile authentication method for SSH and SFTP connections

This issue relates to Connect-SFTP.ps1 and Connect-SSH.ps1.

Currently, you can only use Credential or cleartext for connecting to an SFTP server. The SftpClient ctor contains two methods for creating a new connection with key files. The one I think you will like the most is this:

Renci.SshNet.SftpClient new(string host, string username, Params Renci.SshNet.PrivateKeyFile[] keyFiles)

PrivateKeyFile can be created directly from a string and errors nicely if the path is not found or if the file listed in the path is not a valid keyfile (no contents, damaged keyfile, putty ppk, etc.)

The SFTP client can be constructed via this method:

[Renci.SshNet.SftpClient]::new($Server,$Username,[Renci.SshNet.PrivateKeyFile]".\private.key")

Note that we can also add support for (multiple keys) or (password AND private key) via multiple authentication methods as outlined here:

Renci.SshNet.SftpClient new(Renci.SshNet.ConnectionInfo connectionInfo)
Renci.SshNet.ConnectionInfo new(string host, string username, Params Renci.SshNet.AuthenticationMethod[] authenticationMethods)

As usual, the ps module thingy with [Environment]::CurrentDirectory vs working directory always applies.

How to download all child items?

I have an FTP site with a folder that has many sub folders, and some of those have sub folders and files. Is there an easy to way download all items and its child items, regardless if they're files or folders or both?

Connect-FTP -EncryptionMode

Hello,
First, thanks for your awesome work! (again)

I have a little issue with Connect FTPS Connect-FTP -EncryptionMode xxx
The property EncryptionMode can't be found in the FluentFTP.FtpClient $Client:

C:\Program Files\WindowsPowerShell\Modules\Transferetto\0.0.15\Transferetto.psm1:233 : 28
+     if ($EncryptionMode) { $Client.EncryptionMode = $EncryptionMode }

Connect-FTP -Autoconnect works.

EncryptionMode must be part of config I suppose?

$ftpSession = Connect-FTP -Server 'xxx' -Username 'yyyyy' -Password 'zzz' -AutoConnect

$ftpSession.Config.EncryptionMode
Implicit

SFTP - Download all files and folders

I wish to download all files, folders, sub directories etc via SFTP. Is there an easy way to download everything similar to the Get-ftpdirectory command?

Many thanks

Locked file causes unhandled exception

Found this particular issue regarding line 781 in Transferetto.psm1:

$FileStream = [System.IO.FileStream]::new($LocalPath, [System.IO.FileMode]::OpenOrCreate)

When this line executes and the respective file happens to be opened/locked then it throws an error as it should. However, in the Finally block when it attempts to execute $FileStream.Close(), it returns the error as "You cannot call a method on a null-valued expression." because $FileStream doesn't actually exist since it couldn't be created.

I was able to modify the code locally to return the true error by modifying the Finally block to:

If ($FileStream){$FileStream.Close()}

Fero

Dear all,
I am trying to send more files to FTP server using Transferetto module and next part of script:

foreach ($RemoteFile in $ListFiles) {
Send-FTPFile -Client $Client -LocalPath $ListFiles.FullName -RemotePath "/TEMP/$($RemoteFile.Name)" -RemoteExists OverWrite
}

But I am getting an error: "Remove-EmptyValue : The term 'Remove-EmptyValue' is not recognized as the name of a cmdlet, function, script file, or operable program."

I could not find "Remove-EmptyValue" in the PowerShell commands.
Have you please any idea, how to solve it?
Thanks
Fero

v0.0.19-Alpha1 : untrusted publisher

Running a script using the v0.0.19-Alpha1:

Do you want to run software from this untrusted publisher?
File \modules\Transferetto\Transferetto.psm1 is published by CN=Przemysław Kłys EVOTEC, O=Przemysław Kłys EVOTEC, L=Mikołów, C=PL and is not trusted on your system. Only run scripts from trusted publishers.
[V] Never run [D] Do not run [R] Run once [A] Always run [?] Help (default is "D"):

why I got this error :(

error:


Action     : UploadFile
LocalPath  : u:\
RemotePath : /SFTP - Sandbox Integration/2
Status     : False
Message    : Failed


tnx
nate

Implement SynchronizeDirectories for SFTP

As per example:

OverloadDefinitions
-------------------
System.Collections.Generic.IEnumerable[System.IO.FileInfo] SynchronizeDirectories(string sourcePath, string destinationPath, string searchPattern)
System.Collections.Generic.IEnumerable[System.IO.FileInfo] ISftpClient.SynchronizeDirectories(string sourcePath, string destinationPath, string searchPattern)

Run SFTP commands

Hi, is it possible to run SFTP commands such as "cd", "ls", "pwd", etc. (with custom parameters/arguments) through this module? We have a SFTP server where we want to run some of these commands.

Code: 522 Message: SSL connection failed; session reuse required: see require_ssl_reuse option in vsftpd.conf man page

I'm doing some PowerShell testing with Transferetto against 2 public FTPS sites:

Cmdlets I use:
$Client = Connect-FTP -Server $Server -Port $Port -Credential $PSCredential -AutoConnect -ValidateAnyCertificate -ErrorAction Stop
$Files = Get-FTPList -Client $Client -Path $SourceFolder -ErrorAction Stop

With both sites the Connect-FTP is succesful (IsConnected : True, SslProtocolActive : Tls12). Rebex also returns a file list.
But Get-FTPList returns an error for dlptest:

WARNING: Get-FTPList - Error: Exception calling "GetListing" with "1" argument(s): "Code: 522 Message: SSL connection failed; session reuse required: see require_ssl_reuse option in vsftpd.conf man page"

I found the page: robinrodricks/FluentFTP#1283 which says:
Thank you so much, this worked. I installed the FluentFTP.GnuTLS package and just added this.
client.Config.CustomStream = typeof(GnuTlsStream);

Now, FluentFTP.GnuTLS.dll is included with Transferetto. So, why does this error occur? Does this imply that all sites using the default YES for require_ssl_reuse ( https://linux.die.net/man/5/vsftpd.conf ) can't be fully handled with Transferetto? Assuming rebex uses NO and dlptest uses default YES (but I don't know how to check this).

I also found the page https://github.com/robinrodricks/FluentFTP/wiki/FTPS-Connection-using-GnuTLS where GnuTLS is mentioned in combination with TLS 1.3. If the public sites don't have TLS 1.3, could that be an explanation for the error?

Connect-SFTP with Azure

Not sure if this is a bug, my own error, or something not supported.

I have an Azure storage account with SFTP enabled. I can connect to it using a WinSCP client, or even the WinSCP powershell module.

I have not been able to utilize Connect-SFTP using the same information. I've even went as far as connecting all three ways that are offered. Also confirmed each method worked in a client.

WARNING: Connect-SFTP - Error: Exception calling "Connect" with "0" argument(s):
"The connection was closed by the server:  - RequestId:SCRUBBED Time:SCRUBBED (KeyExchangeFailed)."
$dstClient = @{
    HostName = "scrubbed.blob.core.windows.net"
    UserName = "scrubbed.user"
    Password = "scrubbed.pass"
    Path = "/"
}

$dUser=$dstClient.UserName
$dPass=$dstClient.Password
$dHost=$dstClient.HostName

$sshkey = "F:\scrubbed\p.key"

#Create Destination Credentials
$dstPass = ConvertTo-SecureString $dPass -AsPlainText -Force
$dCred = New-Object System.Management.Automation.PSCredential ($dUser, $dstPass)

## Each method listed but I would only execute with one of them uncommented.
#Key Method
$dstServer = Connect-SFTP -Server $dHost -Verbose -Username $dUser -PrivateKey $sshkey
#User Pass Method
$dstServer = Connect-SFTP -Server $dHost -Verbose -Username $dUser -Password $dPass
#PS Credential Method
$dstServer = Connect-SFTP -Server $dHost -Verbose -Credential $dCred

I do have this working with my other SFTP source that is not hosted in Azure.

My goal was to use Start-FXPFileTransfer to see if I could transfer between two SFTP for my project and then provide the source for reference to the git since no examples exist.

If I could provide anything else, I am more than happy too.

Have a great day or evening!

Can't Download FTP File

Sorry I'm not sure if I'm doing something wrong but I'm getting this error when I try to download a file

Receive-FTPFile : Cannot process argument transformation on parameter 'RemoteFile'. Cannot convert the "/scdeploy/cnr.msi" value of type "System.String" to type
"FluentFTP.FtpListItem[]"

Not working behind a proxy

Hi,
seems it doesn't work behind a proxy or is there some setting/parameters that could be set to make it works ?

regards,
Eric

is it possible to preserve file/folder properties ?

Hello,

I'm using Receive-FTPDirectory ( and Receive-FTPfile) to download files/folders from FTP server. However I noticed that the file properties like created, modified, owner are getting updated. Is there a way we can preserve these properties like they are before downloading?

Thank you

Any way to connect to SFTP using key pairs?

I'm working on a project that needs an FTP solution and I'm eyeing this module as a possible viable solution. :) I've been playing with downloading files from Box FTP and so far that's gone very well. I also will need to upload to an SFTP site that uses SSH keys for authentication rather than username/password. Is this something you are considering to add in a future release of Transferetto?

Thanks!

(v0.0.18) Connect-SFTP with PrivateKey fails

I'm trying to connect to our business SFTP server using key authentication:

Connect-SFTP -Server $Server -Port $Port -Username $User -PrivateKey $KeyFilePath

With v0.0.17 and earlier this poses no problem.
But with v0.0.18 an algoritme error occurs at the server side and connection is refused:

WARNING: Connect-SFTP - Error: Exception calling "Connect" with "0" argument(s): "The connection was closed by the server: ssh disconnect host not allowed to connect (HostNotAllowedToConnect)."

Could it be that a change a needed regarding [Renci.SshNet.PrivateKeyFile]$PrivateKey in Connect-SFTP?

Because I noticed a difference in [Renci.SshNet.PrivateKeyFile]$PrivateKey:

- v0.0.18

HostKeyAlgorithms Key


{rsa-sha2-512, rsa-sha2-256, ssh-rsa} ssh-rsa

- v0.0.17

HostKey

Renci.SshNet.Security.KeyHostAlgorithm

Make functions return the status object

Heya! I'm using your Package to automate downloading SFTP Files and then sending them via E-Mail and deleting them off the external SFTP Server. When I'm done I'd like to upload it to github for others to use, with parameters, etc.

I see that in some of your functions, you create a custom Object "Status" and then print that object into the console, which is great!

Would it be possible that you return this object instead of just outputting it to the console? I'd like to run an if check on "Status = True/False" after running the func. If true, move the file to an array of downloaded files and only if it's contained in that array, delete it on the SFTP server.

And I don't want to just copy the function into my script or change your module, I'd like people to be able to use the module as-is when they use my script :) Or are you okay with me copying the function, adding a return statement and giving you credit for it in the script?

SFTP Rename syntax

This is not an issue but just wanted to find out how can a file be renamed using Rename-SFTPFile method. Any help with syntax or an example would be really appreciated.

Set-FTPTracing throws an error

Attempting to enable tracing throws an error:

PS C:\Windows\system32> set-ftptracing -enable
Unable to find type [FluentFTP.FtpTrace].
At C:\Program Files\WindowsPowerShell\Modules\Transferetto\0.0.11\Transferetto.psm1:963 char:20
+     if ($Enable) { [FluentFTP.FtpTrace]::EnableTracing = $true }
+                    ~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (FluentFTP.FtpTrace:TypeName) [], RuntimeException
    + FullyQualifiedErrorId : TypeNotFound

Unable to find type [FluentFTP.FtpTrace].
At C:\Program Files\WindowsPowerShell\Modules\Transferetto\0.0.11\Transferetto.psm1:966 char:32
+     if (-not $HideFunctions) { [FluentFTP.FtpTrace]::LogFunctions = $ ...
+                                ~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (FluentFTP.FtpTrace:TypeName) [], RuntimeException
    + FullyQualifiedErrorId : TypeNotFound

Unable to find type [FluentFTP.FtpTrace].
At C:\Program Files\WindowsPowerShell\Modules\Transferetto\0.0.11\Transferetto.psm1:970 char:25
+     if (-not $HideIP) { [FluentFTP.FtpTrace]::LogIP = $true }
+                         ~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (FluentFTP.FtpTrace:TypeName) [], RuntimeException
    + FullyQualifiedErrorId : TypeNotFound

It looks as if the namespace used to reference the FtpTrace class is wrong. According to the FluentFTP source code, the fully qualified name for the class should be FluentFTP.Helpers.FtpTrace:

https://github.com/robinrodricks/FluentFTP/blob/01131bbd99a3c4dbb0f4dbf0281c4784c9eb3406/FluentFTP/Helpers/FtpTrace.cs

Transferetto 0.0.19 : Could not load file or assembly Microsoft.Bcl.AsyncInterfaces

PS C:\Program Files\PowerShell\7> Install-Module Transferetto -Force -AllowPrerelease -SkipPublisherCheck
PS C:\Program Files\PowerShell\7> get-module -name transferetto -ListAvailable

Directory: D:\Mijn gebruikers\ACCOUNT\Documenten\PowerShell\Modules

ModuleType Version PreRelease Name PSEdition ExportedCommands


Script 0.0.19 Transferetto Core,Desk {Compare-FTPFile, Connect-FTP, Connect-SFTP, Connect-SSH…}

PS C:\Program Files\PowerShell\7> import-module -name transferetto -Force
Add-Type: D:\Mijn gebruikers\ACCOUNT\Documenten\PowerShell\Modules\transferetto\0.0.19\Transferetto.Libraries.ps1:4
Line |
4 | Add-Type -Path $PSScriptRoot\Lib\Standard\Microsoft.Bcl.AsyncInterfac …
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| Could not load file or assembly 'Microsoft.Bcl.AsyncInterfaces, Version=8.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51'.

PS C:\Program Files\PowerShell\7> GET-PACKageProvider nuget

Name Version DynamicOptions


NuGet 3.0.0.1 Destination, ExcludeVersion, Scope, SkipDependencies, Headers, FilterOnTag, Contains, AllowPrereleaseVersions, ConfigFile, SkipValidate

PS C:\Program Files\PowerShell\7> $PSVERsionTable

Name Value


PSVersion 7.4.1
PSEdition Core
GitCommitId 7.4.1
OS Microsoft Windows 10.0.19045
Platform Win32NT
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1

Get-FTPChMod command gives zero as permissions result

Hello,
Thanks for building a module dedicated to FTP. This is really helpful.
I'm using the Get-FTPChMod command to find the permissions on a folder. I'm using the below code. However, the result shows 0. Can you please fix this?

$FTPConnection = Connect-FTP -Server 'ftp.server.com' -DataConnectionType PASV -Username '[email protected]' -Password 'xyZ' -EncryptionMode Implicit -ValidateAnyCertificate -Port '123'
Test-FTPDirectory -Client $FTPConnection -RemotePath "/TestingFTPModule"
Get-FTPChmod -Client $FTPConnection -RemotePath "/TestingFTPModule"

Output:

PS C:\Users\nbp> Test-FTPDirectory -Client $FTPConnection -RemotePath "/TestingFTPModule"

DirectoryExists("/TestingFTPModule")

Command: PWD
Status: Waiting for response to: PWD
Response: 257 "/" is current directory.
Command: CWD /TestingFTPModule
Status: Waiting for response to: CWD /TestingFTPModule
Response: 250 Directory changed to /TestingFTPModule
Command: CWD /
Status: Waiting for response to: CWD /
Response: 250 Directory changed to /
True

PS C:\Users\nbp> Get-FTPChmod -Client $FTPConnection -RemotePath "/TestingFTPModule"

GetFilePermissions("/TestingFTPModule")

GetObjectInfo("/TestingFTPModule", False)

Command: MLST /TestingFTPModule
Status: Waiting for response to: MLST /TestingFTPModule
Response: 250-
Response: Size=0;Modify=20230104001337.000;Create=20230104001337.000;Type=dir; TestingFTPModule
Response: 250 Requested file action okay, completed.
0

Thank you

Example06-UploadFTPS.ps1

This is not an issue, thanks for the awesome script, is there a way to copy child items within a directory with having the same sort of validation to update or skip. Thank you so much

Support for TLS 1.3

I installed latest version:
Install-Module -Name Transferetto

The I tried to connect to filezilla server with TLS 1.2 -> works fine
Tried same script while filezilla server is configured for TLS 1.3 only -> fails

Before providing more details I am wondering if TLS 1.3 is supported by Transferetto?

FluentFtp claims support of 1.3 TLS

Send-FTPFile error

Dear Przemyslaw,
thank you for publishing version 0.0.14.
Error with not existing function Remove-EmptyValue disappeard, but after trying to send four files using function Send-FTPFile, result of the transfer is FALSE. But there is no other error message, just FALSE after sending each file.
I tried to use cmdlet Test-FTPFile, the result for 4 files is False,True,True,False,False (little bit strange five answers for 4 files).
Please, have you any Idea, why transfer fail and how to solve it?
Thank you.
Fero

FluentFTP library unavailable when executing Connect-FTP in 0.0.6

When installing Transferetto via PSGallery in a Windows or Linux container with image mcr.microsoft.com/powershell, executing Connect-FTP returns the following error:

PS C:\> Install-Module Transferetto -Force
PS C:\> Connect-FTP
InvalidOperation: C:\Users\ContainerAdministrator\Documents\PowerShell\Modules\Transferetto\0.0.6\Transferetto.psm1:183
Line |
 183 |          [FluentFTP.FtpProfile] $FtpProfile,
     |          ~~~~~~~~~~~~~~~~~~~~~~
     | Unable to find type [FluentFTP.FtpProfile].

Am I somehow doing the install/import wrong or is this an issue with this release?
Also observing same behavior on my local workstation, but referring to containerized environment as it is easier to reproduce.

For reference, local environment is Windows 20H2 with Windows PowerShell 5.1 and containerized environment is Windows Server Core 1909 with PowerShell Core 7.1.4.

Get file / directory size to create progressbar

Hello,

First of all really thanks for your work.

Not an issue ... I just discover your tool and i would like to know if there is a way to create progressbar to offer user tracking of upload / download ?

Many thanks again.

SFTP upload issue when folder name has a space

I'm using your SFTP uploading example here: https://github.com/EvotecIT/Transferetto/blob/master/Examples/Example07-UploadSFTP.ps1 and it works GREAT except when a folder to be uploaded has a space in the folder name.

Example: /uploads/folder/sub folder/* is placed at the root uploads folder, rather than under /uploads/folder/*

(I hope this made sense)

This is the script I used:

$SftpClient = Connect-SFTP -Server 'sftp.server.com' -Username "test.user" -PrivateKey "C:\Path\to\My\Private_key" -Verbose
$ListFiles = Get-ChildItem -LiteralPath "C:\BoxTesting" -Recurse -File
foreach ($File in $ListFiles) {
    $Directory = [io.path]::GetDirectoryName($File.FullName)
    if ($Directory -eq "C:\BoxTesting") {
        Send-SFTPFile -SftpClient $SftpClient -LocalPath $File.FullName -RemotePath "/dataplatform-sftp-bucket-1234567890/$($File.Name)" -AllowOverride
    } else {
        #$RemotePath = "/dataplatform-sftp-bucket-1234567890/$($Directory.Split('\')[-1])/$($File.Name)"
        $RemoteFolder = "/dataplatform-sftp-bucket-1234567890/$($Directory.Split('\')[-1])"
        $List = Get-SFTPList -SftpClient $SftpClient -Path $RemoteFolder -WarningAction SilentlyContinue
        if (-not $List) {
            $SftpClient.CreateDirectory($RemoteFolder)
        }
        Send-SFTPFile -SftpClient $SftpClient -LocalPath $File.FullName -RemotePath "$RemoteFolder/$($File.Name)" -AllowOverride
    }
}
Disconnect-SFTP -SftpClient $SftpClient

Error: Exception calling "UploadFile" with "3" argument(s): "No such file"

Hi, I am trying to run to put send files to remote server using sftp but I am facing this error. Can you please help me regarding this ? Thank you.

# Login via credentials
$SftpClient = Connect-SFTP -Server 'host address' -Username 'userName' -Password 'password'

Send-SFTPFile -SftpClient $SftpClient -LocalPath "C:\Users\gurki\Documents\Personal_Projects\Algorithms.txt" -RemotePath "C:\inetpub" -AllowOverride
Disconnect-SFTP -SftpClient $SftpClient

This error is howing up after running the command:


WARNING: Send-SFTPFile - Error: Exception calling "UploadFile" with "3" argument(s): "No such file"


Action     : UploadFile
Status     : False
LocalPath  : C:\Users\gurki\Documents\Personal_Projects\Algorithms.txt
RemotePath : C:\inetpub
Message    : Error: Exception calling "UploadFile" with "3" argument(s): "No such file"

Different port number

Trying to connect to a server that I can connect to with filezilla. It runs on a custom portnumber, and I haven't seen any examples that uses other than default portnumbers ? I'm running Request-FTPConfiguration -Server 'sitename.com:2121' and get no results.
Is it a sign that i'm using the portnumber wrong or does transferetto fail to find a way to connect ?
The server is a SFTPGo docker with very few settings, but Filezilla accepts it.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.