Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Does .NET Core 2.0 have SFTP client? [closed]

Needing to use an SFTP client and looking to build it in a .NET Core 2.0 application.

I was wondering if SFTP is already part of .NET standard 2.0 or will I need to use a 3rd party library for this, e.g. SSH.NET?

like image 638
Los Morales Avatar asked Jan 24 '18 22:01

Los Morales


People also ask

Does .NET support SFTP?

NET Core doesn't support native SFTP or SCP protocols. Thus we need to borrow an external SFTP client library. Among a list of SFTP client libraries, SSH.NET is free and works fine for most use cases.

Why do we use SFTP instead of the older protocol?

SFTP is preferred for usage alongside firewalls compared to FTPS. As mentioned, SFTP uses a single connection between the client and the server. One does not need to open multiple ports, and it has a dedicated port used for connecting to a remote computer.

How do you use rebex SFTP?

Connect to the SSH server with SFTP support. Verify the server's fingerprint. Login - authenticate with user name and password. Browse directories and transfer files.

What port is SFTP on?

What Port Does SFTP Use? Unlike FTP over SSL/TLS (FTPS), SFTP only needs a single port to establish a server connection — port 22.


2 Answers

There are many SFTP clients for .net created over many years: SecureBlackbox, IPWorks SSH, WodSFTP, and Rebex SFTP. SecureBlackbox provides an sftp solution for at least 12 years. If you are looking for an open source project, SSH.NET on github (https://github.com/sshnet/SSH.NET) should match your expectations. It is compatible with .net standard which means it is compatible with .net framework and .net core. Moreover, it is a standalone solution that doesn't have third party dependency.

like image 129
Stephane Avatar answered Sep 25 '22 12:09

Stephane


There's no SFTP client in any current (nor past) version of .NET.

See also SFTP Libraries for .NET and many others.

like image 40
Martin Prikryl Avatar answered Sep 27 '22 12:09

Martin Prikryl