sftp

Can't get SFTP to work in PHP

I am writing a simple SFTP client in PHP because we have the need to programatically retrieve files via n remote servers. I am using the PECL SSH2 extension. I have run up against a road block, though. The documentation on php.net suggests that you can do this: $stream = fopen("ssh2.sftp://$sftp/path/to/file", 'r'); However, I have...

Commons VFS and Java.net.URL - Adding support for "sftp://" protocol

We're trying to use Apache Commons VFS to access something over SFTP. It claims to support SFTP, however we're getting a MalformedURLException when it starts. Digging around I see that apache vfs is using java.net.URL. However the documentation tells me that it doesn't actually support sftp:// URLs. Protocol handlers for the followin...

Transfer file from one server to another using MSFTP and Winscp

Hi, I Am tranfering a file from one server to another using "Core FTP mini-sftp-server" on source side and Winscp on destination side. I am logging in these two machine using local admin account which are same on both servers. i have been doing this process manually: Start MSFTP server on source Start winscp on destination, connect to...

Linux shell to restrict sftp users to their home directories?

Hiya, I need to give SFTP access to a directory within my webroot on my server. I've set up ben_files as a user and have set his home directory to /var/www/vhosts/mydomain.com/files That's all fine if he connects with plain old FTP - he's restricted just to that directory, but to enable SFTP i had to add him to bin/bash shell, which...

How do you install the Net::SFTP module on Ubuntu?

I'm new to Perl. How do you install the Net::SFTP module? I'm running Ubuntu Linux. I believe there's a simple way to do it from the command line, like by calling $ cpan install or something. ...

AccessControlException when connecting to a SFTP server using JSch from an Applet

The applet will download file from a SFTP server. JSch libraries are used to create a session, connect to the SFTP server using it, create a SFTP channel and execute GET command for that file on that server. The applet is signed. Code snippet for downloading a file: public static void prepareSession() throws JSchException { try ...

SSH / SFTP connection issue using Tamir.SharpSsh

This is my code to connect and send a file to a remote SFTP server. public static void SendDocument(string fileName, string host, string remoteFile, string user, string password) { Scp scp = new Scp(); scp.OnConnecting += new FileTansferEvent(scp_OnConnecting); scp.OnStart += new ...

cURL php extension for windows with SCP and SFTP support

I switched over to zendserver(VS8 php(5.3) binaries), and now curl(7.19.4) seems to be lacking SCP and SFTP protocol support(verified by errors and phpinfo). Curl itself is installed correctly, it's just lacking the protocol support mentioned. This worked out of the box on the VC9(thread safe) binaries I downloaded off php.net(this ins...

How to implement recursive put in sftp

Command-line sftp in my Ubuntu doesn't have recursive put implemented. I found some debate from 2004 about implementing such feature with -R option switch. So I see some sort of self-made recursion as only option. Ie. iterate through directory listing cd into directories mkdir them if nonexistent put files I'm planning on doing this...

Python SSH / SFTP Module?

Hi all, I've been looking around for a module which allows me to do SSH / SFTP functions in python without using POPEN to do it manually. Is there anything like this? I haven't found any real information on this, thanks! ...

How to enter a remote directory on Ruby NET:SFTP ?

How to enter a directory like the command - cd, thus operate remote files without a path prefix ? Here is my current code. Net::SFTP.start do |sftp| sftp.rename!(REMOTE_PATH + "latest.zip", REMOTE_PATH + "latest.back.zip") sftp.upload!("latest.zip", REMOTE_PATH + "latest.zip") end I would like to have: sftp.cd REMOTE_PATH ...

Error referencing installed Ruby Gem

Can anyone help with an odd Ruby Gem problem I'm having - note I've installed many gems in the past and never seen this. I've downloaded the net-ssh and net-sftp gems using the following commands: sudo gem install net-ssh sudo gem install net-sftp both installed successfully. However when I reference the files within my code I get th...

Scheduled sftp job fails

I have Cygwin+OpenSSH installed on Windows XP workstation. Simple SFTP process (batch file) runs fine when launched from the Command Prompt and fails when launched by a Scheduler from Novell Desktop Management. Scheduled job uses exactly the same batch file and runs as Interactive User impersonation. WhoAmI embedded in the batch file ...

Simple Ruby SFTP example syntax error

I have an issue that seems like very flaky behavour, is this a problem with Ruby or something I've done? Please help - my project is stalled until I resolve this. Given this code running on Mac OS Leopard: require 'uri' require 'net/ssh' require 'net/sftp' include Net def copy_from_uri( uri, local_path ) # SFTP copy SFTP.start...

is it posible to upload directly to remote server using SFTP on ASP.net MVC

Hi! I am currently develope something using asp.net MVC, im still quite not experience with it so please help me out. I have a form for user to upload Video. The current ideal concept to upload to remote server is to Upload it to to the current server, then use FTP to push it to a remote server. For me, this is not quite fast since yo...

Working on PHP projects on a remote dev server via sFTP

Hello, I'm looking for an editor that can read and write remote PHP files via sFTP. I'm talking about not having a local copy of my PHP files. But here is the tricky part : I'd like that editor to be aware of all the files in my projet, and provide me with intellisense-like auto-completion, classes structures, etc...Just like Eclipse P...

How to download a video from Drop IO using Drop IO commands or Rails or net::SFTP ?

Is there a way to download videos from Drop IO using Drop IO commands / Rails or Net::SFTP? ...

Key based authenication with net-sftp in Ruby

Hello, I want to be able to use SFTP to login into a number of servers and download certain files to help debug issues as and when they arise. While we could use a client, we wanted to start automating the process to streamline everything. My first attempt looks something like this: def download(files_to_download, destination_directo...

Implementing SFTP in 2.0

I want to write SFTP clients and servers in .NET 2.0. Is that possible? Please give me some suggestions ...

SFTP from PHP - undefined constant CURLOPT_PROTOCOLS and CURLPROTO_SFTP?

From my php script, i need to be able to upload a csv file to a remote server via sftp. I followed the accepted answer from this question: http://stackoverflow.com/questions/717854/sftp-from-within-php Here's what my code looks like <?php error_reporting(E_ALL); ini_set('display_errors', 1); $ch = curl_init(); $localf...