Questions tagged [sftp]

GENERAL SFTP SUPPORT IS OFF-TOPIC. Support questions may be asked on https://superuser.com. SSH File Transfer Protocol, a network protocol designed to provide secure file transfer and manipulation facilities over SSH (Secure Shell protocol).

The SSH File Transfer Protocol (also Secret File Transfer Protocol, Secure FTP, or SFTP) is a network protocol that provides file access, file transfer, and file management functionality over any reliable data stream. It was designed by the Internet Engineering Task Force (IETF) as an extension of the Secure Shell protocol (SSH) version 2.0 to provide secure file transfer capability, but is also intended to be usable with other protocols. The IETF of the Internet Draft states that even though this protocol is described in the context of the SSH-2 protocol, it could be used in a number of different applications, such as secure file transfer over Transport Layer Security (TLS) and transfer of management information in VPN applications.

This protocol assumes that it is run over a secure channel, such as SSH, that the server has already authenticated the client, and that the identity of the client user is available to the protocol.

This should not be confused with FTPS. For questions regarding FTPS, see the corresponding tag .

5135 questions
1
vote
1 answer

Paramiko sendcmd like in Python ftplib

I have a host system with two systems on it (HP Nonstop). With Python ftplib I can use ftp = FTP() ftp.encoding = encoding ftp.connect(host_addr, ftp_port) ftp.sendcmd('guardian') to use the Guardian system paths ($X.PATH.FILENAME) or use ftp =…
Ezak
  • 137
  • 1
  • 3
  • 14
1
vote
0 answers

C#. Security and Efficiency Loopholes When Uploading Files through a .Net Application via SFTP

I need advice from developers who have either faced or have experience dealing with a situation similar to the one described below; just to avoid reinventing the wheel. Situation: We have a C# Winform application running at multiple sites (100+)…
user391036
  • 13
  • 2
1
vote
1 answer

Cutomizing handles/requests for the CURL package

I am trying to interact with a SFTP server from inside R. The CURL package came highly recommended. Not RCURL but CURL. One of the things I am trying to do is get a list of directories/files at an address. I have the code working so far: # create a…
Sudoh
  • 313
  • 2
  • 11
1
vote
1 answer

fsspec - is there a way how we can get paginated response from sftp?

I use fsspec which uses in-built capabilities of paramiko but could not really find a way how we can paginate the response. Is there a way to have that functionality over here? The use-case is like every directory has 100000 files and listing all of…
LearnerJS
  • 298
  • 2
  • 14
1
vote
1 answer

Airflow SFTPHook transport.py Authentication (password) failed using Private Key

I am running Airflow v2.3.2 / Python 3.10 from the Docker Image below. apache/airflow:2.3.2-python3.10 The Docker Image has set paramiko==2.7.2 in order to address the authentication issues that had been seen in testing. When calling the sftp, I am…
1
vote
1 answer

Randomly getting "Error reading SSH protocol banner" in Paramiko

I am trying to transfer CSV file from one server to another using Paramiko, SSH connection. I never had any issues with all transfers, but for some random files, I have that: SSHException: Error reading SSH protocol banner This is strange because…
1
vote
1 answer

Paramiko "OSError: Failure" when trying to put large file to SFTP server

My task is to perform some action on data queried from a database and then store the output on an SFTP server. The script performing all of this is executed on a VM running Windows Server 2016 Standard through task scheduler. There are a total of 4…
andrea
  • 525
  • 1
  • 5
  • 21
1
vote
1 answer

How can I change this WinSCP script to only to download .csv files and no other files?

I would like to change this PowerShell WinSCP script which is connecting to an SFTP Server, to only download .csv files. What part of the following portion of the script would I need to change? # Connect $session.Open($sessionOptions) # Synchronize…
ecuso
  • 71
  • 4
1
vote
1 answer

GNU Parallel as alternative to JMeter SSH sampler for SFTP testing for several users in separates threads

Has anyone created a script for connection testing sftp for multi users in separate threads? I have an issue with JMeter and I'm trying to make an alternative to SSH sampler. I'm going to create a simple script to connect the SFTP and execute a "ls"…
1
vote
0 answers

Spring Integration SFTP - Problem occurred while synchronizing 'download' to local directory

I am attempting to SFTP into a remote server and in doing so I am receiving Problem occurred while synchronizing 'download' to local directory I have attempted changing the remote directory to /, /download, and just download. I have also tried…
1
vote
3 answers

How to enable SFTP for a GCS Bucket

A business partner wants to drop files for us via SFTP, and we want those files on a GCS bucket. As far as I can tell, GCS doesn't support SFTP access, but there's a pre-GA connector, described here. If I understand the doc correctly, this connector…
Yanay Lehavi
  • 166
  • 11
1
vote
2 answers

ruby sftp error password reset

I am troubleshooting a ruby script that queries a database, creates a csv, and sftps it to another server. The server the script is on is a rhel box, running ruby 1.87 I believe. Here's the code that does the sftping: Net::SFTP.start(sftp_site,…
Sean
  • 191
  • 1
  • 5
1
vote
1 answer

Sharing WinSCP .NET Session across multiple C# methods

I've written a program in C# using WinSCP .NET which recursively searches through an SFTP site looking for a specific subfolder pattern, and then recursively enumerates the contents of those directories. The program works, but the first half of…
MySide
  • 13
  • 4
1
vote
2 answers

Paramiko SFTPClient class throws "Authentication failed", but Transport class and WinSCP work

I have an issue using Paramiko and connecting to an SFTP server. The connecting work fine using same credentials in WinSCP. I am also able to use pysftp. But I would prefer to be able to use Paramiko, which gives access to better control of timeouts…
jakobdo
  • 1,282
  • 14
  • 20
1
vote
1 answer

Getting "Unknown command" error in WinSCP

I'm trying to automate sending a .xlsx file via SFTP using Task Scheduler and WinSCP. I can get WinSCP to launch and successfully authenticate, however it soon after returns the following and closes the connection < 2023-04-03 19:44:36.835 Script:…
Jason
  • 75
  • 7
1 2 3
99
100