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
61
votes
9 answers

Differences between SFTP and "FTP over SSH"

While looking for an SFTP client in C# SSH File Transfer Protocol (SFTP), I've come across these two suitable projects - one and two. While trying to understand the basics, I came across this confusing Wikipedia article. What is difference between…
sundar venugopal
  • 3,080
  • 6
  • 39
  • 45
56
votes
9 answers

What's a decent SFTP command-line client for windows?

Most of the windows SFTP clients (like FileZilla) seem to be GUI-based. I need something I can call from batch files.
Eggplant Jeff
  • 1,749
  • 2
  • 15
  • 20
54
votes
6 answers

Download files from SFTP with SSH.NET library

string host = @"ftphost"; string username = "user"; string password = "********"; string localFileName = System.IO.Path.GetFileName(@"localfilename"); string remoteDirectory = "/export/"; using (var sftp = new SftpClient(host, username,…
user3195153
  • 541
  • 1
  • 4
  • 4
54
votes
5 answers

How can I upload an entire folder, that contains other folders, using sftp on linux?

I have tried put -r directory/*, which only uploaded the files and not folders. Gave me the error, cannot Couldn't canonicalise. Any help would be greatly appreciated.
Chris
  • 651
  • 2
  • 10
  • 16
50
votes
4 answers

SFTP connection through Java asking for weird authentication

So I'm writing a little program that needs to connect to a remote server through SFTP, pull down a file, and then processes the file. I came across JSch through some answers here and it looked perfect for the task. So far, easy to use and I've got…
cardician
  • 2,451
  • 3
  • 26
  • 36
49
votes
12 answers

Error in FTP connection using domain name, username and password?

I have following details only domain name:Mydomain.com (I have not Server IP address) UserId: abc Password:123456 when I am trying to connect ftp through Filezilla or Myftp it gives error like Connection attempt failed with "EAI_NONAME - Neither…
Pallavi
  • 503
  • 1
  • 4
  • 7
49
votes
3 answers

How to list all the folders and files in the directory after connecting through SFTP in Python

I am using Python and trying to connect to SFTP and want to retrieve an XML file from there and need to place it in my local system. Below is the code: import paramiko sftpURL = 'sftp.somewebsite.com' sftpUser = 'user_name' sftpPass = …
Shiva Krishna Bavandla
  • 25,548
  • 75
  • 193
  • 313
48
votes
6 answers

Upload file to SFTP using PowerShell

We were asked to set up an automated upload from one of our servers to an SFTP site. There will be a file that is exported from a database to a filer every Monday morning and they want the file to be uploaded to SFTP on Tuesday. The current…
Konstantin V
  • 533
  • 1
  • 5
  • 9
46
votes
10 answers

How to copy entire folder from Amazon EC2 Linux instance to local Linux machine?

I connected to Amazon's linux instance from ssh using private key. I am trying to copy entire folder from that instance to my local linux machine . Can anyone tell me the correct scp command to do this? Or do I need something more than scp? Both…
Mansoor Elahi
  • 941
  • 1
  • 9
  • 19
46
votes
12 answers

JSchException: Algorithm negotiation fail

I am trying to connect to remote sftp server over ssh with JSch (0.1.44-1) but during session.connect(); I am getting this exception: com.jcraft.jsch.JSchException: Algorithm negotiation fail at…
Marek Dominiak
  • 693
  • 1
  • 7
  • 9
46
votes
5 answers

How to use sudo over SFTP with CyberDuck?

I'm copying this question from over here: http://getsatisfaction.com/cyberduck/topics/can_i_use_sudo_over_sftp_with_cyberduck I am having the same issue and finding it hard to find an answer: I am using Cyberduck over SFTP. I can connect and…
Jack Benning
  • 481
  • 1
  • 4
  • 3
45
votes
18 answers

Keep Remote Directory Up-to-date

I absolutely love the Keep Remote Directory Up-to-date feature in Winscp. Unfortunately, I can't find anything as simple to use in OS X or Linux. I know the same thing can theoretically be accomplished using changedfiles or rsync, but I've always…
Jake McGraw
  • 55,558
  • 10
  • 50
  • 63
43
votes
7 answers

Java SFTP server library?

Is there a Java library that can be used to implement an SFTP server? I'm trying to receive files via SFTP, but I can't seem to find any implementation of an SFTP server. I've found FTP/SFTP/FTPS client libraries, and FTP/FTPS server libraries, but…
CB.
  • 532
  • 1
  • 4
  • 11
42
votes
5 answers

Uploading files with SFTP

I have successfully uploaded files over ftp, but I now need to do via SFTP. I can successfully connect to the remote server, create a file and write to it, but I am unable to upload an existing file from my local server to the remote server. Is…
Marc
  • 537
  • 2
  • 7
  • 19
42
votes
8 answers

How to send password using sftp batch file

I'm trying to download a file from sftp site using batch script. I'm getting the following error: Permission denied (publickey,password,keyboard-interactive). Couldn't read packet: Connection reset by peer When running the command: sftp -b…
judith
  • 805
  • 2
  • 12
  • 17