Download Rebex Tiny Sftp Server

0 views
Skip to first unread message

Niobe Hennigan

unread,
Aug 3, 2024, 4:28:09 PM8/3/24
to chrisarineth

I'm wondering if it is possible to authenticate a user using either Public Key Authentification OR Password Authentification. From what I've seen in the documentation it seems like I can only allow one method or allow ALL methods which I don't want.

Caution:The meaning of the arguments argument is not defined by RFC and varies from server to server. Some servers interpret it as parameters to dir command, some as a filename, some ignore it and some report an error. Calling this method with arguments other than null is not recommended and will make your code incompatible with many FTP servers.

However, if this doesn't work, that would mean the server does not support wildcard-based file name arguments (it might interpret the argument as a directory path instead), and that you would have to retrieve the whole list and filter it at the client side:

After using SFTP service for file download when I use File.OpenRead() I get the exception "File in use in another process".
Is there a way to flush the stream and close the file that gets downloaded?

Hello,
I use SshChannel.RequestExec for command execution and I have a question regarding the ExtendedDataReceived event synchronization.
Is there any way to ensure that stdErr is empty?
In the example below we synchronized 'ExtendedDataReceived' and 'return' via extDataLock, but, in my opinion, it is possible that return part will capture the lock first.

So if your application references a specific version of Rebex assemblies, customers writing modules for it that also use Rebex assemblies should use that same version. (Although there are various workarounds for this limitation, for example merging Rebex assemblies with other application's assemblies into an independent new DLL.)

Hi, continuation to my above query, I am currently downloading the PDF files from an SFTP location to an FTP location, files to download may range from 100-5000.
But the logic below doesn't seem to work faster, it takes almost 2hrs for 3000 files to download.

Hi there, I'm very new to Rebex and am currently evaluating the HTTPS WebClient as a drop-in replacement for the dotNET classes. The main reason is to get away from system dependencies in the crypto stack that result in unfortunate compatibility issues (e.g. no common cipher suites, even on TLS1.2) with some hosts on some platforms. So I'm very excited to see that Rebex may offer this and so I need to test it out.

Anyway, what I've done is take the standard example code and perform a POST like so (uri is just a string holding the target URI, which in these examples uses HTTPS, and the "data" parameter is a NameValueCollection object from the System.Collections.Specialized namespace):

What I have found is that this very basic code is quite unreliable. The debugger (VS2019) throws: System.NullReferenceException: 'Object reference not set to an instance of an object.' on the line above where "UploadValues" is called.

at Rebex.Net.HttpClientResponse.qrsp() at Rebex.Net.HttpResponse.GetResponseStream() at Rebex.Net.WebClient.fpon(HttpRequest fz) at Rebex.Net.WebClient.pihi.qcus(HttpRequest gy) at Rebex.Net.WebClient.fpor[e](Uri gh, String gi, Boolean gj, Func`2 gk) at Rebex.Net.WebClient.fpok(Uri ft, String fu, NameValueCollection fv) at Rebex.Net.WebClient.UploadValues(Uri uri, String method, NameValueCollection values) at Rebex.Net.WebClient.UploadValues(String uri, NameValueCollection values) at MyMethodInMyClass(...)

I'm completely stumped by this since there are no null references in the parameters I am passing, and this seems to be host-specific in some way, though so far during preliminary testing it seems to be random.

This was a complete outage, with the total inability of the entire cluster to initiate SFTP transfers to any destination - local or remote. It lasted from 8:50am to 2:50pm PT or about 6 hours total, and went away without any action on our side.

The errors appeared to come from Rebex SFTP .Net library that the application is using. Telestream Support suggested the firewall or an issue with the endpoint however none of those were the culprits:

"An error occurred while establishing a connection to the SFTP server [some.sftp.server.net]: The source was not found, but some or all event logs could not be searched. To create the source, you need permission to read all event logs to make sure that the new source name is unique. Inaccessible logs: Security: The source was not found, but some or all event logs could not be searched. To create the s..."

P.S. It'd be understandable if you tell me to contact my application support - already have, with zero effect: "Check your firewall" What firewall if Filezilla is working from the same server? "Change the password", etc. This is why I am hoping to get some clarity here.

I think im headed in the right direction, but would like anyones input.I am working on a console app that is supposed to look for files in multiple folders, and then upload any files found to each corresponding folder on the FTP server (which is mirrored to match my local directory). Im new to using Rebex and FTP uploads in general. So far my code looks like this:

My question is: Will this code read through each folder in my local directory and upload them to the sftpTargetFolder? (sourceFilePath and sftpTargetFolder are currently defined in App.Config). Is this even the best method to do this? How do I go about catching errors during the upload? ANY input is appreciated greatly!!! Thank you.

I would recommend moving your try statement just above your #Set up session options due to that section being rather important. After that I would recommend to add a catch statement that spits out any warnings / errors encountered in the execution.

As these will write the errors / warnings that are currently piped into the catch statement. It will at least give you some form of an idea as to what you are dealing with and what might be going wrong.

I also had no issues with your script using my test server ( Rebex Tiny SFTP Server (free) - Rebex.NET ) and downloading multiple times. I only made the changes as mentioned above and also used a local target path (C:\temp\sftpout) instead of your UNC path.

Enterprises need secure FTP servers. According to our research, the best enterprise FTP servers are:\n

    \n
  • SolarWinds SFTP\/SCP Server (includes SFTP, SCP, and FTP servers)\n
  • Couchdrop (includes SFTP, SCP, and FTP servers)\n
  • SolarWinds FTP Voyager (includes SFTP, SCP, and FTP servers)\n
  • FileZilla FTP tool (includes SFTP, FTPS, and FTP servers)\n
  • IIS FTPS Server (includes FTPS and FTP servers)\n
  • Syncplify Server (includes SFTP, FTPS, and FTP servers)\n
  • CrushFTP (includes SFTP, FTPS, SCP, and FTP servers)\n
  • Rebex Tiny SFTP Server (includes SFTP and FTP servers)\n
  • Titan FTP Server (includes SFTP, FTPS, and FTP servers)\n
  • OpenSSH (includes SFTP and FTP servers)\n\n","author":"@type":"Person","name":"Jon Watson","description":"Jon is a senior Linux systems administrator currently working in the Internet security field. Most of his time is spent reviewing security related issues and developing ways to mitigate damage or prevent them from happening in the first place. He has articles published in Linux Journal and Linux Magazines and was previously the Tech Channel editor for b5 Media.\n","url":"https:\/\/www.comparitech.com\/author\/"}},"@type":"Question","name":"Does Microsoft IIS support SFTP server?","answerCount":1,"acceptedAnswer":"@type":"Answer","text":"No. Microsoft IIS server doesn\u2019t support SFTP. Nor does IIS support SSH in general. Instead of SFTP, the secure file transfer protocol that IIS supports is FTP Secure (FTPS, aka FTP-SSL, FTP over TLS, and FTP over SSL). FTPS and SFTP are not the same, but both are equally secure. The IIS FTPS server can be found in Windows Server.\n","author":"@type":"Person","name":"Jon Watson","description":"Jon is a senior Linux systems administrator currently working in the Internet security field. Most of his time is spent reviewing security related issues and developing ways to mitigate damage or prevent them from happening in the first place. He has articles published in Linux Journal and Linux Magazines and was previously the Tech Channel editor for b5 Media.\n","url":"https:\/\/www.comparitech.com\/author\/","@type":"Question","name":"How do I run a SFTP server on Windows?","answerCount":1,"acceptedAnswer":"@type":"Answer","text":"The access to SFTP server on Windows depends on which Windows-based SFTP server you choose to install. Most Windows SFTP server tools are self-installing. Once you have that SFTP server software, you just need to run it by open the service and Select SFTP server functions from the menu of your tool.\nSee our recommendations for SFTP servers for Windows.\n","author":"@type":"Person","name":"Jon Watson","description":"Jon is a senior Linux systems administrator currently working in the Internet security field. Most of his time is spent reviewing security related issues and developing ways to mitigate damage or prevent them from happening in the first place. He has articles published in Linux Journal and Linux Magazines and was previously the Tech Channel editor for b5 Media.\n","url":"https:\/\/www.comparitech.com\/author\/","@type":"Question","name":"How do I connect to SFTP server with Linux?","answerCount":1,"acceptedAnswer":"@type":"Answer","text":"SFTP on Linux has its own command environment. There are two ways to connect to SFTP server in Linux. If you want to include an SFTP session in an automated process through a script, it is better to set up a passwordless SFTP connection system. Manually, you connect to SFTP server in Linux by typing in sftp remote_username@IP_or_hostname and hitting return. You will be prompted for the password for that user account. After successful login, you will see the sftp> prompt, which shows that the SFTP connection has been established. Check out the best FTP servers for Linux.\n","author":"@type":"Person","name":"Jon Watson","description":"Jon is a senior Linux systems administrator currently working in the Internet security field. Most of his time is spent reviewing security related issues and developing ways to mitigate damage or prevent them from happening in the first place. He has articles published in Linux Journal and Linux Magazines and was previously the Tech Channel editor for b5 Media.\n","url":"https:\/\/www.comparitech.com\/author\/","@type":"Question","name":"How do I host a SFTP server?","answerCount":1,"acceptedAnswer":"@type":"Answer","text":"The method of hosting an SFTP server depends on your operating system and which SFTP server tool you chose to install. For example, the SFTP servers in this guide will set up an SFTP server automatically. So, the easiest way to host an SFTP server is to choose an appropriate SFTP server tool for your host operating system.\n","author":"@type":"Person","name":"Jon Watson","description":"Jon is a senior Linux systems administrator currently working in the Internet security field. Most of his time is spent reviewing security related issues and developing ways to mitigate damage or prevent them from happening in the first place. He has articles published in Linux Journal and Linux Magazines and was previously the Tech Channel editor for b5 Media.\n","url":"https:\/\/www.comparitech.com\/author\/","@type":"Question","name":"How do I make my FTP server secure?","answerCount":1,"acceptedAnswer":"@type":"Answer","text":"Choose a secure FTP protocol such as FTPS or SFTP in order to get security on all of your FTP server connections. Do not rely on FTP alone for connections over the internet. Although TFTP is widely used on networks for small data transfers, only use this FTP server internally and as little as possible because it is not secure.\n","author":"@type":"Person","name":"Jon Watson","description":"Jon is a senior Linux systems administrator currently working in the Internet security field. Most of his time is spent reviewing security related issues and developing ways to mitigate damage or prevent them from happening in the first place. He has articles published in Linux Journal and Linux Magazines and was previously the Tech Channel editor for b5 Media.\n","url":"https:\/\/www.comparitech.com\/author\/","@type":"Question","name":"Which is better, SFTP or FTPS?","answerCount":1,"acceptedAnswer":"@type":"Answer","text":"Both SFTP and FTPS secure transmissions with encryption. However, the two systems are completely different. FTPS is FTP with added security, whereas SFTP is a variation of a different protocol \u2013 SSH. SFTP creates a tunnel that protects all processes, including authentication procedures, however SFTP does not protect its authentication channel. As FTPS requires two connections and SFTP uses only one, SFTP is easier to manage and quicker\n","author":"@type":"Person","name":"Jon Watson","description":"Jon is a senior Linux systems administrator currently working in the Internet security field. Most of his time is spent reviewing security related issues and developing ways to mitigate damage or prevent them from happening in the first place. He has articles published in Linux Journal and Linux Magazines and was previously the Tech Channel editor for b5 Media.\n","url":"https:\/\/www.comparitech.com\/author\/","@type":"Question","name":"Is SFTP HIPAA compliant?","answerCount":1,"acceptedAnswer":"@type":"Answer","text":"SFTP is a flexible protocol with room for variation in the strength of security applied to it. Therefore, the issue of HIPAA compliance depends on the way the protocol has been implemented in a particular software package. Some SFTP implementations are HIPAA compliant while others are not.\n","author":"@type":"Person","name":"Jon Watson","description":"Jon is a senior Linux systems administrator currently working in the Internet security field. Most of his time is spent reviewing security related issues and developing ways to mitigate damage or prevent them from happening in the first place. He has articles published in Linux Journal and Linux Magazines and was previously the Tech Channel editor for b5 Media.\n","url":"https:\/\/www.comparitech.com\/author\/","@type":"Question","name":"Is SFTP GDPR compliant?","answerCount":1,"acceptedAnswer":"@type":"Answer","text":"SFTP is not automatically GDPR compliant. The strength of security is reliant on the way the protocol has been implemented in a client and server system. Therefore, some SFTP packages are fully GDPR compliant while others are not.\n","author":"@type":"Person","name":"Jon Watson","description":"Jon is a senior Linux systems administrator currently working in the Internet security field. Most of his time is spent reviewing security related issues and developing ways to mitigate damage or prevent them from happening in the first place. He has articles published in Linux Journal and Linux Magazines and was previously the Tech Channel editor for b5 Media.\n","url":"https:\/\/www.comparitech.com\/author\/"]} "@context":"http:\/\/schema.org","@type":"BreadcrumbList","itemListElement":["@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.comparitech.com\/","@type":"ListItem","position":2,"name":"Net Admin","item":"https:\/\/www.comparitech.com\/net-admin\/","@type":"ListItem","position":3,"name":"The Best SFTP and FTPS Servers Reviewed 2024","item":"https:\/\/www.comparitech.com\/net-admin\/best-free-sftp-ftps-servers\/"]Net Admin
  • The Best SFTP and FTPS Servers Reviewed 2024 We are funded by our readers and may receive a commission when you buy using links on our site. The Best SFTP and FTPS Servers Reviewed 2024 Do you need to send large amounts of data around your network reliably and securely? You need an SFTP server. There are several options, and in this guide we identify the best free SFTP and FTPS server tools on the market. Writer: Jon Watson Linux and Internet Security Expert Updated: April 26, 2024 body.single .section.main-content.sidebar-active .col.grid-item.sidebar.span_1_of_3 float: right; body.single .section.main-content.sidebar-active .col.grid-item.content.span_2_of_3 margin-left: 0;

c80f0f1006
Reply all
Reply to author
Forward
0 new messages