Questions tagged [net-sftp]

Net/SFTP is a ruby library for interfacing with native SFTP connections. It is related to Net/SSH, Net/SCP and others.

Net/SFTP is a ruby library for interfacing with native SFTP connections. It is related to Net/SSH, Net/SCP and others. Project Info

102 questions
1
vote
1 answer

how to upload files asynchronously (parallely ) using ruby net-sftp

what is the best way to upload files parallely using sftp ? using multithreading and multi-process is the only options ? can we use any of the gems for that ? I using ruby 1.8.6.
Lohith MV
  • 3,798
  • 11
  • 31
  • 44
1
vote
1 answer

Where to store ftp files in rails app

I have a rails application that is running cron jobs and generating reports in the form of csv files. My question is what is best practice on where I should store these files before sending them to an sftp site? My thinking is as a tempfile or in…
BC00
  • 1,589
  • 3
  • 29
  • 47
1
vote
1 answer

Ruby Net-SFTP capture and log exceptions

I have a simple SFTP script that I am testing to connect to a server and download a file, or files, with a specific date in the file name. I am using rufus/scheduler to start the SFTP portion of the script every X minutes to see if a new file is on…
user1279586
  • 257
  • 3
  • 16
1
vote
0 answers

Ruby. NoMethodError when saving array data created from NET-SFTP pull, to a db using ActiveRecord

I have a small ruby program that logs into an sftp server, pulls a couple filenames from a directory on the server, and then writes those filenames to a sqlite3 database. I'm saving the filenames from the sftp to an array. I can confirm the array is…
ecbp
  • 11
  • 1
0
votes
1 answer

PHP : Net_SFTP library, unable to download big files

I am working on a PHP project which has to deal with large attachment files. I am using SFTP server for storage of such big files. For uploading and downloading attachment files I am using Net_SFTP library. Upload is working fine. But download…
eHussain
  • 3,297
  • 1
  • 21
  • 19
0
votes
1 answer

Why do I get a sftp time out error?

I am using the net-sftp gem to access a file in an sftp account. I am doing some bulk operations like copying more then 100 files from one sftp account to other but I am getting an error: Net::SFTP::StatusException (4, "failure") I think this is…
Lohith MV
  • 3,798
  • 11
  • 31
  • 44
0
votes
2 answers

Ruby Net-SFTP not blocking on upload

I'm using the ruby library Net-SFTP to upload a folder of a files to a remote server using the upload! command, and finding that when I regain control, the folder has not finished uploading. It wouldn't be all that important except for the fact…
Ben
  • 1
  • 1
0
votes
1 answer

Ruby NetSFTP: Strange error on attempting file download

I am experiencing a strange error using the NetSFTP gem in Ruby. I am trying to download several status files from a remote STFP server. My code looks like this: sftp.dir.entries('/OUT/XMLACK').each do |entry| path_to_entry =…
user1022788
  • 419
  • 8
  • 18
0
votes
1 answer

Net::SFTP keeps throwing errors in resque

I am running rails 3.1rc4 and keep running into this error message in my resque queues uninitialized constant Net::SFTP With the exception "NameError" In my gemfile I have included: gem 'net-sftp' gem 'net-ssh' gem 'net-scp' I included net-scp,…
Flashuni
  • 41
  • 1
  • 8
0
votes
1 answer

Certain big '.xlsx' extension files failed to open after downloaded via SftpClient

I am trying to download file from a remote linux server to my local computer using SftpClient. Here is my code to download the file public MemoryStream DownloadFile2(string path) { var connectionInfo =…
sicKo
  • 1,241
  • 1
  • 12
  • 35
0
votes
1 answer

After uploading a file using Net::Sftp, the file disappears sometimes

I use net-sftp gem for uploading file to remote server. Net::SFTP.start(host, user, port: port, key_data: [decoded_key], keys: [], keys_only: true, logger: logger, verbose: :debug) do |sftp| sftp.upload!(local_file_path,…
0
votes
1 answer

How to use PRIVATE RSA key file in Net::sftp in ruby on rails

I am trying to establish a sftp connection to my azure storage. I have a private key file which starts with private_key = '-----BEGIN RSA PRIVATE KEY-----\nMnx......' With this private_key, I try to establish the connection…
deepak asai
  • 202
  • 1
  • 5
  • 17
0
votes
1 answer

How to proxy net-sftp?

I'm using net-sftp which relies on the net-ssh gem. I'm trying to connect to a remote log service via SFTP, and it requires IP whitelisting. All my current servers have dynamic IPs. I'm trying to set up a static, secure, proxy server in Google…
Tallboy
  • 12,847
  • 13
  • 82
  • 173
0
votes
0 answers

Net::SFTP Unable to connect to host via rake task

I am trying to write a rake task where it automatically connect to an Experian Host using sftp. The guy from Experian gave me this command to connect to their sever by using SFTP: sftp -o PreferredAuthentications=password -o PubkeyAuthentication=no …
Ryzal Yusoff
  • 957
  • 2
  • 22
  • 49
0
votes
1 answer

Download large csv file from sftp server in chunks ruby

I want to download and process csv file that is on sftp server line by line. If I am using download! or sftp.file.open, it is buffering whole data in memory that I want to avoid. Here is my source code: sftp =…
Kiran Kumawat
  • 82
  • 1
  • 10