net-sftp Questions

4

Solved

I have a Ruby on Rails (Rails 3.2.14 and ruby 1.9.3) application that uploads 2 files to a remote SFTP server. The SFTP code is: require 'net/sftp' Rails.logger.info("Creating SFTP connection") ur...
Weanling asked 10/9, 2013 at 11:58

1

Solved

I am having trouble finding documentation for specifying a key for SFTP authentication. Would like to have something like: export SOME_PRIVATE_KEY="$(cat tmp/some-certs/privatekey.pem)" # then s...
Dilantin asked 6/6, 2017 at 20:52

3

Solved

I have a large file (200 MB upwards). I need to transfer it via PHP cron job. Using Phpseclib gives the following error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 4133...
Barocchio asked 5/7, 2016 at 13:51

1

I'm trying to create a tree of files and directories using the net-sftp library. I can get a recursive listing of files by using the .glob method and can determine if one of the results is a dire...
Applaud asked 4/2, 2015 at 16:10

3

Solved

I am using ruby 2.0.0 and rails 4.0.0. I have something similar to this: require 'net/sftp' sftp = Net::SFTP.start('ftp.app.com','username', :password => 'password') sftp.file.open("/path/...
Desolation asked 7/3, 2014 at 17:0

1

Solved

I have a program written in PHP that distributes files to various FTP sites. Recently, I added SFTP support to it using phpseclib. It's very easy to use to log in and upload the files. However, th...
Flatling asked 23/4, 2015 at 16:24

1

Solved

I am working on an integration that requires my Rails 4 app to push a CSV to an SFTP server daily. The app will eventually live on Heroku. I am using the 'net-sftp' gem. Moving the file via FTP ...
Quadriplegia asked 27/3, 2015 at 15:17

1

Solved

I'm attempting to stub out Net::SFTP from an object. Here's the model: class BatchTask require 'net/sftp' def get_file_stream(host, username, password, path_to_dir, filename) raise ArgumentErr...
Crystalcrystalline asked 31/7, 2012 at 0:40
1

© 2022 - 2024 — McMap. All rights reserved.