A summary of data about the Ruby ecosystem.

https://github.com/net-ssh/net-sftp

Pure Ruby implementation of an SFTP (protocols 1-6) client.
https://github.com/net-ssh/net-sftp

Keywords from Contributors

activerecord mvc activejob ruby-gem crash-reporting rspec rubygems sinatra error-monitoring xslt

Last synced: about 15 hours ago
JSON representation

Repository metadata

Pure Ruby implementation of an SFTP (protocols 1-6) client.

README.rdoc

          = Net::SFTP

Please note: this project is in maintenance mode. It is not under active development but pull requests are very much welcome. Just be sure to include tests! -- delano


* Docs: http://net-ssh.github.io/net-sftp
* Issues: https://github.com/net-ssh/net-sftp/issues
* Codes: https://github.com/net-ssh/net-sftp
* Email: net-ssh@solutious.com

As of v2.1.0, all gem releases are signed. See INSTALL.


== DESCRIPTION:

Net::SFTP is a pure-Ruby implementation of the SFTP protocol (specifically, versions 1 through 6 of the SFTP protocol). Note that this is the "Secure File Transfer Protocol", typically run over an SSH connection, and has nothing to do with the FTP protocol.

== FEATURES/PROBLEMS:

* Transfer files or even entire directory trees to or from a remote host via SFTP
* Completely supports all six protocol versions
* Asynchronous and synchronous operation
* Read and write files using an IO-like interface

== SYNOPSIS:

In a nutshell:

  require 'net/sftp'

  Net::SFTP.start('host', 'username', :password => 'password') do |sftp|
    # upload a file or directory to the remote host
    sftp.upload!("/path/to/local", "/path/to/remote")

    # download a file or directory from the remote host
    sftp.download!("/path/to/remote", "/path/to/local")

    # grab data off the remote host directly to a buffer
    data = sftp.download!("/path/to/remote")

    # open and write to a pseudo-IO for a remote file
    sftp.file.open("/path/to/remote", "w") do |f|
      f.puts "Hello, world!\n"
    end

    # open and read from a pseudo-IO for a remote file
    sftp.file.open("/path/to/remote", "r") do |f|
      puts f.gets
    end

    # create a directory
    sftp.mkdir! "/path/to/directory"

    # list the entries in a directory
    sftp.dir.foreach("/path/to/directory") do |entry|
      puts entry.longname
    end
  end

For the full documentation, start with Net::SFTP::Session. Also see Net::SFTP::Operations::Upload, Net::SFTP::Operations::Download, Net::SFTP::Operations::FileFactory, Net::SFTP::Operations::File, and Net::SFTP::Operations::Dir.

== REQUIREMENTS:

* Net::SSH 2

If you wish to run the tests, you'll need:

* Echoe (if you want to use the Rakefile)
* Mocha

== INSTALL:

* gem install net-sftp (might need sudo privileges)

However, in order to be sure the code you're installing hasn't been tampered with, it's recommended that you verify the signature[http://docs.rubygems.org/read/chapter/21]. To do this, you need to add my public key as a trusted certificate (you only need to do this once):

    # Add the public key as a trusted certificate
    # (You only need to do this once)
    $ curl -O https://raw.githubusercontent.com/net-ssh/net-sftp/master/net-sftp-public_cert.pem
    $ gem cert --add net-sftp-public_cert.pem

Then, when install the gem, do so with high security:

    $ gem install net-sftp -P HighSecurity

If you don't add the public key, you'll see an error like "Couldn't verify data signature". If you're still having trouble let me know and I'll give you a hand.

Or, if you prefer to do it the hard way (sans Rubygems):

* tar xzf net-ssh-*.tgz
* cd net-ssh-*
* ruby setup.rb config
* ruby setup.rb install (might need sudo privileges)

== LICENSE:

(The MIT License)

Copyright (c) 2008 Jamis Buck 

Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
'Software'), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:

The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

        

Owner metadata


GitHub Events

Total
Last Year

Committers metadata

Last synced: 4 days ago

Total Commits: 223
Total Committers: 35
Avg Commits per committer: 6.371
Development Distribution Score (DDS): 0.404

Commits in past year: 0
Committers in past year: 0
Avg Commits per committer in past year: 0.0
Development Distribution Score (DDS) in past year: 0.0

Name Email Commits
Jamis Buck j****s@3****m 133
delano d****m@g****m 20
Miklos Fazekas m****s@s****m 16
jstuckey j****y@g****m 7
Thibaut Barrère t****e@g****m 5
Vít Ondruch v****h@r****m 4
Kenichi Kamiya k****1@g****m 3
misdoro m****a@d****g 3
Pablo Merino p****o@M****l 2
Gaurav Gupta gg@e****m 2
Josh McGinnis j****a@m****o 2
Martin Carpenter m****r@f****r 2
Yuji Hanamura y****r@g****m 2
thedarkone t****2@g****m 1
David Czarnecki d****i@a****m 1
Klaus Badelt k****b@k****m 1
Scott Tadman g****t@t****a 1
Scott Tadman t****n@g****l 1
Sven Schwyn s****n@b****m 1
Tyler Hunt t****r@t****m 1
Stuart Hinson s****n@g****m 1
Steven Peckins s****s@i****u 1
SpringsTea s****0@g****m 1
Sergey Toy t****r 1
Nicolas Leger n****r 1
Matjaz Kavcic m****z@k****u 1
Klaus Badelt k****s@f****m 1
John Barnette j****e@g****m 1
James Lam j****s@2****a 1
Dharam Gollapudi d****i@g****m 1
and 5 more...

Committer domains:


Issue and Pull Request metadata

Last synced: about 1 month ago

Total issues: 66
Total pull requests: 51
Average time to close issues: about 1 year
Average time to close pull requests: over 1 year
Total issue authors: 62
Total pull request authors: 42
Average comments per issue: 3.12
Average comments per pull request: 0.82
Merged pull request: 24
Bot issues: 0
Bot pull requests: 0

Past year issues: 2
Past year pull requests: 0
Past year average time to close issues: N/A
Past year average time to close pull requests: N/A
Past year issue authors: 2
Past year pull request authors: 0
Past year average comments per issue: 0.0
Past year average comments per pull request: 0
Past year merged pull request: 0
Past year bot issues: 0
Past year bot pull requests: 0

More stats: https://issues.ecosyste.ms/repositories/lookup?url=https://github.com/net-ssh/net-sftp

Top Issue Authors

  • maxwang096 (4)
  • edmorley (2)
  • epcim (1)
  • warrenbhw (1)
  • duncan-bayne (1)
  • PotatoBaron89 (1)
  • thbar (1)
  • luizkowalski (1)
  • rhazegh (1)
  • asomsmartzip (1)
  • dakingdom (1)
  • DougEdey-Filescom (1)
  • contentfree (1)
  • tlubz (1)
  • sshaw (1)

Top Pull Request Authors

  • takkanm (3)
  • dan-corneanu (2)
  • jstuckey (2)
  • voxik (2)
  • m-nakamura145 (2)
  • til (2)
  • stuarth (2)
  • kachick (2)
  • alexbrinkman (1)
  • yujideveloper (1)
  • joshuamcginnis (1)
  • ggeligible (1)
  • brownleej (1)
  • np422 (1)
  • misdoro (1)

Top Issue Labels

  • help-wanted (2)
  • good-first-isssue (1)

Top Pull Request Labels


Package metadata

gem.coop: net-sftp

A pure Ruby implementation of the SFTP client protocol

  • Homepage: https://github.com/net-ssh/net-sftp
  • Documentation: http://www.rubydoc.info/gems/net-sftp/
  • Licenses: MIT
  • Latest release: 4.0.0 (published about 3 years ago)
  • Last Synced: 2026-01-11T18:32:12.205Z (6 days ago)
  • Versions: 22
  • Dependent Packages: 0
  • Dependent Repositories: 0
  • Downloads: 151,156,675 Total
  • Docker Downloads: 397,297,898
  • Rankings:
    • Dependent repos count: 0.0%
    • Dependent packages count: 0.0%
    • Average: 0.055%
    • Downloads: 0.165%
  • Maintainers (3)
rubygems.org: net-sftp

A pure Ruby implementation of the SFTP client protocol

  • Homepage: https://github.com/net-ssh/net-sftp
  • Documentation: http://www.rubydoc.info/gems/net-sftp/
  • Licenses: MIT
  • Latest release: 4.0.0 (published about 3 years ago)
  • Last Synced: 2026-01-13T21:43:38.647Z (4 days ago)
  • Versions: 22
  • Dependent Packages: 227
  • Dependent Repositories: 19,312
  • Downloads: 151,384,662 Total
  • Docker Downloads: 397,297,898
  • Rankings:
    • Downloads: 0.167%
    • Dependent packages count: 0.173%
    • Dependent repos count: 0.261%
    • Docker downloads count: 0.47%
    • Average: 1.125%
    • Forks count: 2.348%
    • Stargazers count: 3.332%
  • Maintainers (3)
proxy.golang.org: github.com/net-ssh/net-sftp

  • Homepage:
  • Documentation: https://pkg.go.dev/github.com/net-ssh/net-sftp#section-documentation
  • Licenses: mit
  • Latest release: v4.0.0+incompatible (published about 3 years ago)
  • Last Synced: 2026-01-10T01:11:35.647Z (8 days ago)
  • Versions: 13
  • Dependent Packages: 0
  • Dependent Repositories: 0
  • Rankings:
    • Forks count: 2.423%
    • Stargazers count: 3.244%
    • Average: 6.511%
    • Dependent packages count: 9.576%
    • Dependent repos count: 10.802%

Dependencies

Gemfile rubygems
  • codecov >= 0 development
  • simplecov >= 0 development
  • bundler ~> 2.1
  • rake ~> 12.0
net-sftp.gemspec rubygems
  • minitest >= 5 development
  • mocha >= 0 development
  • minitest >= 5
  • mocha >= 0
  • net-ssh >= 5.0.0, < 8.0.0
  • test-unit >= 0
.github/workflows/ci.yml actions
  • actions/checkout v1 composite
  • ruby/setup-ruby v1 composite

Score: 30.26298060398324