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...
3
Solved
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...
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...
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.