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

phpstorm remote host (SFTP) auto download

i just add a new remote project to my phpstorm workspace. if i change some code, it will be automaticly uploaded to my server (sftp). but when something is changed there, nothing happens im my IDE... is there a solution for this? phpstorm…
roman
  • 889
  • 9
  • 16
2
votes
1 answer

How to connect to ftps site using microsoft internet transfer control 6.0 in vb6

In my exisiting visual basic 6 application I was connecting to an ftp site. Now the other side changed protocol to ftps and changed the port to 22. My code do not work properly. I get error vb FTP run-time error '35753' "protocol not supported for…
Ferda-Ozdemir-Sonmez
  • 674
  • 2
  • 13
  • 38
2
votes
1 answer

ftp command mget - get file without extension but avoid conflicting file with extension

Note: This is not a duplicate of 2597394. I have an FTP server (Unix or Linux) with a folder that contains the following files (for example): filename.txt filename.txt.abc filename When I issue mget file* command to ftp or sftp, I can fetch all…
ADTC
  • 8,999
  • 5
  • 68
  • 93
2
votes
2 answers

stream_context_set_params not works with ssh2.sftp wrapper

I want to use functionality like here. Please check the code bellow function notify ( $notification_code, $severity, $message, $message_code, $bytes_transferred, $bytes_max ) { echo "Runned \n"; }; $ctx =…
Stanislav
  • 33
  • 6
2
votes
2 answers

Bypass or force session authentication using Jsch

I'm using com.jcraft.jsch.JSch to create an SFTP connection. Is there a way to bypass/skip the authenticity warning that pops up when the connection's authenticity can't be established? Here's more detail: My code looks a little like this: Session…
FilmiHero
  • 2,306
  • 7
  • 31
  • 46
2
votes
2 answers

New host key every day using MSFTP and WinSCP

I am tranfering a file from one server to another using "Core FTP mini-sftp-server" on source side and WinSCP on destination side (both servers are running Windows). I am logging in these two machine using local admin account which are same on both…
Manjot
  • 11,166
  • 9
  • 38
  • 49
2
votes
1 answer

Separate PHP processes using same ssh2.sftp resource

I am using the PECL ssh2 module to output XML data to a sftp server. I have two entirely separate PHP scripts which gather different data and send the output to different file on the stfp server. CUSTOMER EXPORT: $conn = ssh2_connect(SFTP_SERVER,…
Gordy
  • 91
  • 1
  • 8
2
votes
3 answers

Shell scripting input password from script

I'm trying to write a shell script to transfer files to a remote windows machine which is running a ultra simple sftp server . Its a light version from coreftp. So i don't have the option of using public key authentication. From the Linux end its a…
m4n07
  • 2,267
  • 12
  • 50
  • 65
2
votes
1 answer

how to upload and compile cpp for cgi-bin on WHM/cPanel?

I am brand new to C++. I am creating AJAX files in the cgi-bin for maximum speed vs PHP. My host is no help, I can find no docs on this, and searches return nothing (probably because of my limited vocabulary on the subject). I want to upload cpp…
user1382306
2
votes
2 answers

Shell script with SFTP and mget finishing before downloads are complete

Here is my script: #!/usr/bin/expect spawn /usr/bin/sftp user@place expect "password:" send "mysecret\n" expect "sftp>" send "mget dir/*.csv\n"; expect "sftp>" send "quit\n" It starts to download but after a few seconds, it sends the quit command…
john
  • 33,520
  • 12
  • 45
  • 62
2
votes
4 answers

How do I correct the shell script to recognize the newline character on another server running Linux?

The new-line character is correctly recognized on server2 (Solaris) while it is taken as a backslashn character on server1 (Linux). How do I correct this? While working on a simple script that accepts arguments and sends out mails I first noticed…
Kent Pawar
  • 2,378
  • 2
  • 29
  • 42
2
votes
1 answer

How to transfer file from Windows to Linux server, process it with shell script, and download results back

I normally do this using WinSCP: I transfer a .tex file from my local Windows machine to a Linux server. I run a script (on the server) to pdflatex the file for me. And I use WinSCP again to copy the output .pdf to my local Windows machine again. I…
cartonn
  • 7,654
  • 3
  • 19
  • 19
2
votes
3 answers

OSX Equivalent of WinSCP's Fully-Automated Local-Remote SFTP Sync?

I fondly remember working with WinSCP and using the fully automated local-to-remote syncing functionality, where the app would monitor a directory hierarchy and send changes to the remote server as they happened. Is there an app available on OSX…
notbrain
  • 3,366
  • 2
  • 32
  • 42
2
votes
0 answers

Uploading files via SFTP from the Visual Studio 2012 GUI?

I'm pretty sure the answer to this question is 'no' but I have to ask the question in case I'm missing something. I'm using Visual Studio 2012 Premium and I'm wondering if there is some method within this app to upload files to my IIS 7.5 server…
Techie Joe
  • 847
  • 2
  • 14
  • 32
2
votes
5 answers

phpseclib - Can I connect using username, key and password (not a key passphrase)

Apologies if I have missed this in the documentation but is it possible to connect to an SFTP server with a private key and a password (not a passphrase for my private key). The examples show username/password, username/key and username/key/key…
Carlton
  • 5,533
  • 4
  • 54
  • 73