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
477
votes
19 answers

scp or sftp copy multiple files with single command

I'd like to copy files from/to remote server in different directories. For example, I want to run these 4 commands at once. scp remote:A/1.txt local:A/1.txt scp remote:A/2.txt local:A/2.txt scp remote:B/1.txt local:B/1.txt scp remote:C/1.txt…
user987654
  • 5,461
  • 5
  • 23
  • 26
241
votes
16 answers

How to retrieve a file from a server via SFTP?

I'm trying to retrieve a file from a server using SFTP (as opposed to FTPS) using Java. How can I do this?
David Hayes
  • 7,402
  • 14
  • 50
  • 62
224
votes
11 answers

SFTP in Python? (platform independent)

I'm working on a simple tool that transfers files to a hard-coded location with the password also hard-coded. I'm a python novice, but thanks to ftplib, it was easy: import ftplib info= ('someuser', 'password') #hard-coded def putfile(file,…
Mark Wilbur
  • 2,809
  • 2
  • 23
  • 22
222
votes
12 answers

How to run the sftp command with a password from Bash script?

I need to transfer a log file to a remote host using sftp from a Linux host. I have been provided credentials for the same from my operations group. However, since I don't have control over other host, I cannot generate and share RSA keys with the…
anubhava
  • 761,203
  • 64
  • 569
  • 643
163
votes
8 answers

FTP/SFTP access to an Amazon S3 Bucket

Is there a way to connect to an Amazon S3 bucket with FTP or SFTP rather than the built-in Amazon file transfer interface in the AWS console? Seems odd that this isn't a readily available option.
zgall1
  • 2,865
  • 5
  • 23
  • 39
122
votes
9 answers

How can I force ssh to accept a new host fingerprint from the command line?

I'm getting the standard WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY! Someone could be eavesdropping on you right now (man-in-the-middle attack)! It is also possible that the RSA host key…
John O
  • 4,863
  • 8
  • 45
  • 78
121
votes
13 answers

Transfer files to/from session I'm logged in with PuTTY

I'm logged into a remote host using PuTTY. What is the command to transfer files from my local machine to the machine I'm logged into on PuTTY?
blue-sky
  • 51,962
  • 152
  • 427
  • 752
121
votes
8 answers

SFTP Libraries for .NET

Can anyone recommend a good SFTP library to use? Right now I'm looking at products such as SecureBlackbox, IPWorks SSH, WodSFTP, and Rebex SFTP. However, I have never used any SFTP library before so I'm not sure what I'm looking for. If anyone has…
John Doe
118
votes
7 answers

Single line sftp from terminal

Several times throughout the day, I may be running a test where I need to look through a log file on a remote server. I've gotten used to using my terminal to sftp into the remote server and pull the desired log file down to /tmp on my local…
Kyle
  • 14,036
  • 11
  • 46
  • 61
103
votes
5 answers

Paramiko's SSHClient with SFTP

How I can make SFTP transport through SSHClient on the remote server? I have a local host and two remote hosts. Remote hosts are backup server and web server. I need to find on backup server necessary backup file and put it on web server over SFTP.…
Denis
  • 7,127
  • 8
  • 37
  • 58
94
votes
6 answers

How to SFTP with PHP?

I have came across many PHP scripts for web FTP clients. I need to implement a SFTP client as a web application in PHP. Does PHP support for SFTP? I couldn't find any samples. Can anyone help me with this?
indranama
  • 1,183
  • 2
  • 9
  • 6
81
votes
3 answers

SSHFS for OSX 10.8 (Mountain Lion)

In the past I used SSHFS to mount drives, so I could easily work on remote machines with software from my machine. However, when I was at the MacFUSE project page, I noticed that SSHFS has been long since deprecated. What are people using with…
Zak
  • 12,213
  • 21
  • 59
  • 105
71
votes
5 answers

How do I upload a file to an SFTP server in C# (.NET)?

Does a free .NET library exist with which I can upload a file to a SFTP (SSH FTP) server, which throws exceptions on problems with the upload and allows the monitoring of its progress?
Corey
  • 14,101
  • 7
  • 38
  • 35
69
votes
1 answer

In SSHD Configuration what does "MaxStartups 10:30:60" mean?

Problem Is: Some SFTP connections are failing in customer environment But using sample code if i test with same server no connection is failed. may be in customer envi many parallel sftp connection started at a time. I Want…
Syedsma
  • 1,183
  • 5
  • 17
  • 22
67
votes
11 answers

Why when I transfer a file through SFTP, it takes longer than FTP?

I manually copy a file to a server, and the same one to an SFTP server. The file is 140MB. FTP: I have a rate arround 11MB/s SFTP: I have a rate arround 4.5MB/s I understand the file has to be encrypted before being sent. Is it the only impact on…
miqwit
  • 687
  • 1
  • 6
  • 6
1
2 3
99 100