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
29
votes
2 answers

Create a SFTP user to access only one directory.

I need to create a user which can only SFTP to specific directory and take a copy of some infomation. that is it. I keep looking online and they bring up information about chroot and modifying the the sshd_config. So far I can just add the user…
29
votes
7 answers

Downloading all the files in a directory with cURL

I am using cURL to try to download all files in a certain directory. here's what my list of files looks like: I have tried to do in bash script: iiumlabs.[].csv.pgp and iiumlabs* and I guess curl is not big on wildcards. curl -u login:pass…
Alex Gordon
  • 57,446
  • 287
  • 670
  • 1,062
28
votes
2 answers

How to use sftp in C#

Possible Duplicate: How do I upload a file to an SFTP server in C# / .NET? Does .net support sftp? I can't find any sample online.
kevin
  • 13,559
  • 30
  • 79
  • 104
28
votes
5 answers

Connecting to AWS Transfer for SFTP

I am having trouble connecting to AWS Transfer for SFTP. I successfully set up a server and tried to connect using WinSCP. I set up an IAM role with trust relationships like follows: { "Version": "2012-10-17", "Statement": [ { …
ChristopherTull
  • 464
  • 1
  • 7
  • 11
28
votes
3 answers

Upload file via SFTP with Python

I wrote a simple code to upload a file to a SFTP server in Python. I am using Python 2.7. import pysftp srv = pysftp.Connection(host="www.destination.com", username="root", password="password",log="./temp/pysftp.log") srv.cd('public') #chdir to…
guagay_wk
  • 26,337
  • 54
  • 186
  • 295
28
votes
3 answers

Address of public SFTP test server

In my application I want to download file from SFTP server and for that I written one program but now I want to test it whether its working fine or not. So I need one public SFTP server so that I will download any file from it. I know public FTP…
Rupeshit
  • 1,476
  • 1
  • 14
  • 23
28
votes
3 answers

Google Drive as FTP Server

Is there a way to use Google Drive as an FTP Server? I mean I have host, username and password and using Filezilla I can access GDrive folders, upload and download data and automate backups with many softwares. It isn't important if the protocol is…
Mattia Merlini
  • 643
  • 1
  • 8
  • 24
27
votes
4 answers

Java SFTP Transfer Library

I'm looking for a dead simple Java Library to use for SFTP file transfers. I don't need any other features beyond that. I've tried Zehon's, but it's incredible naggy, and I think 8 jar files is a bit crazy for so little functionality as I…
Claus Jørgensen
  • 25,882
  • 9
  • 87
  • 150
25
votes
1 answer

Downloading file with pysftp

I'm trying to load (and directly save locally) a .csv file stored on a FTP Server (SFTP protocol). I'm using Python in combination with pysftp library. When I check if the file exists, it returns TRUE. But when trying to load the file, it seems to…
Dendrobates
  • 3,294
  • 6
  • 37
  • 56
25
votes
5 answers

Secure FTP with org.apache.commons.net.ftp.FTPClient

Is there a way I can implement a secure FTP with org.apache.commons.net.ftp.FTPClient? If not, what are other options for Java?
user1725253
  • 329
  • 1
  • 4
  • 13
24
votes
2 answers

How can i upload file by command line via sftp?

I know how to get remote file via sftp. ex: sftp root@10.0.0.1:/path/to/file.txt localfile.txt How can i upload file to remote server? (I need use this command in my bash script.)
ss-t.c
  • 310
  • 1
  • 2
  • 12
24
votes
4 answers

Use JSch to put a file to the remote directory and if the directory does not exist, then create it

I would like to copy a file to the remote directory using Jsch library and SFTP protocol. If the directory on the remote host does not exist, then create it. In the API doc, http://epaul.github.com/jsch-documentation/javadoc/, I noticed in the put…
woraphol.j
  • 1,301
  • 5
  • 14
  • 22
23
votes
2 answers

Using JSch ChannelSftp: How to read multiple files with dynamic names?

I have to read a bunch of .CSV files with dynamic file names from a SFTP server. These files get generated every 15 minutes. I am using JSch's ChannelSftp, but there is no method which would give the exact filenames. I only see an .ls() method. This…
pingu
  • 645
  • 3
  • 11
  • 21
23
votes
3 answers

ftp: Name or Service not known

in command line > ftp ftp://ftp-trace.ncbi.nih.gov/1000genomes/ftp/data/ Work on one computer but does not work on my other one. Error returned ftp: ftp://ftp-trace.ncbi.nih.gov/1000genomes/ftp/data/: Name or service not known I also tried the…
Scicare
  • 833
  • 5
  • 13
  • 26
23
votes
2 answers

How to transfer a file to ssh server in an ssh-connection made by paramiko?

I am using Python's paramiko packet to keep an ssh-connection with an server : s = paramiko.SSHClient() s.set_missing_host_key_policy(paramiko.AutoAddPolicy()) s.connect("xxx.xxx.xxx.xxx",22,username=xxx,password='',timeout=4) I want to use this…
Coaku
  • 977
  • 1
  • 9
  • 23