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

Paramiko get() raises IOError "No such file" if server doesn't support df -hi

I'm running into a problem with paramiko where it gives me IOError: [Errno 2] No such file when I try to get a file off the remote server. Here's my code: # set up a transport object t (using an rsa key), which connected successfully >>>…
danny
  • 10,103
  • 10
  • 50
  • 57
2
votes
2 answers

Copying files from Remote machine using sftp in python

I want to be able to copy a file from a remote machine using either scp, ssh or sftp in python. The best way I've found is to use ssh with sftp. I've been trying to use this example to accomplish what I need to do. import paramiko import…
user1186173
  • 565
  • 3
  • 7
  • 26
2
votes
1 answer

Remotely modify OpenVMS file using vim and SFTP from a Linux system

I'm using CentOS 5.5 and I'm trying to remotely modify file of an OpenVMS server. I tried with scp but I got an error about an "unexpected newline". I tried to find the solution to this but I haven't found it yet. Then I tried with sftp and I…
user1407269
2
votes
1 answer

Aptana sftp connection failed

I'm trying to connect to a sftp but I'm getting an error: Establishing sfpt connection failed: the host signature is invalid or the host key was not accepted. Any idea how to make this work? I'm using filezilla and fugu just fine. It's just aptana…
blic
  • 103
  • 1
  • 9
2
votes
2 answers

How to stop access to invalid file on SFTP server?

My client has configured a SFTP server and monitoring the folder using FileWatcher. As soon s as the file are copied to SFTP server, client picks them. If the connection is broke down while transferring the file, client picks the invalid file. In…
Romil Kumar Jain
  • 20,239
  • 9
  • 63
  • 92
2
votes
1 answer

set Sharpssh sftp connection timeout

I am using sharpssh.dll and want to connect to a sftp server, but if the sftp server is diconnected from network, the program will wait for a long time before "timeout" message is shown, is there anyway to set a timeout sharpssh?
User2012384
  • 4,769
  • 16
  • 70
  • 106
1
vote
2 answers

Email an alert when sFTP connection cannot be reached?

I have a very small office environment, and my team sends created pdfs to an sFTP server daily. Occasionally, I will get a call that someone can't log in to upload the files. My normal course of action is to connect to the sFTP server myself, run…
Billie Hawkins
  • 166
  • 2
  • 11
1
vote
1 answer

Permanent SFTP Connection between two linux servers

i have two CentOS Servers One has application for manage printing templates Another contain app which is take files from hotfolder and send them to the printer How i can set up permanent sftp connection between this two servsers? Or may be you can…
Vlad Miller
  • 2,255
  • 1
  • 20
  • 38
1
vote
2 answers

How can I use sftp and mput with Python?

I'm trying to send over multiple files from one server to another using Python. I've found a few ssh2 libraries, but either I can't find documentation on them (e.g. ssh), or they don't seem to support mput. Anyone know of any sftp libraries which…
Mark Roach
  • 1,039
  • 9
  • 20
1
vote
1 answer

Netbeans sFTP Sync - Bidirectional reconciliation

I'm using Netbeans to manage a PHP projects in a proprietary setup. Files are on a web server and I use netbeans sFTP to download and auto-upload the files as I change them. It works great and I've read of others doing this. This takes care of…
Frank V
  • 25,141
  • 34
  • 106
  • 144
1
vote
1 answer

cmd to powershell connection

I need to write the output of cmd command DIR to powershell variable(array). Is it possible? I need it because I use cmd scripting in WinSCP (SFTP client) and when I'm connected to sftp server, I can use cmd commands only, not powershell. But I need…
culter
  • 5,487
  • 15
  • 54
  • 66
1
vote
1 answer

shell script which copies a file from a particular location(UNIX server) to a remote location(windows server)

I need to write a shell script which copies a file present at a location in UNIX server to a remote windows server with specified location. I am a novice in UNIX. Please advise how to do that.
Manohar Swami
  • 33
  • 1
  • 2
  • 8
1
vote
1 answer

SFTP - remove files

I have a batchfile with SFTP instruction to download txt files (cron job), basically: get *.txt Wondering what the best method is to delete those files after the server has downloaded them. The only problem being that the directory is constantly…
Mike Roberts
  • 21
  • 2
  • 3
1
vote
0 answers

webserver created files are not readable by sftp

I have a webserver that runs apache 2.2.14 in ubuntu with php 5.3.2-1ubuntu4.14. Php files in my webserver run as www-data. Any php script that creates a file or folder automatically creates it with owner/group "www-data:www-data" and sftp does…
Danny Dyla
  • 631
  • 4
  • 15
1
vote
1 answer

powershell - how to access shared folders via SFTP

I have VPN tunnel with 2 computers. When I connect with WinSCP (SFTP client) to second computer, I can see shared folders. The problem is, that I need to copy files from first computer to second with powershell script. Is it possible to access the…
culter
  • 5,487
  • 15
  • 54
  • 66