summaryrefslogtreecommitdiff
path: root/lib/net
Commit message (Collapse)AuthorAgeFilesLines
* Handle ssh-rsa and ssh-dss certificate filesbobveznat-masterBob Van Zant2014-01-211-2/+2
| | | | | | | | | | | | | | | | | | This does not implement certificate based authentication (described here http://www.openbsd.org/cgi-bin/cvsweb/src/usr.bin/ssh/PROTOCOL.certkeys?rev=HEAD) but instead makes it so that if the certificate is not needed for authentication net-ssh doesn't cause the entire application to die. The net-ssh test suite continues to pass. On my own machine I did tests with certificates loaded and verified that although authentication could not proceed to a host requiring a certificate it at least did not die. I also verified that I can continue to use normal rsa and dsa keys to ssh to hosts that do not require certificates even when the certificates are loaded into my ssh-agent instance. This is a potential solution to issue #124 and an alternative to the one presented in pull request #134.
* Fixed pageant support.Jarred Holman2014-01-153-53/+59
|
* make the authentication error message more usefulTomas Barton2013-11-271-1/+1
|
* Fix for "Authentication Method determination can pick up a class from the ↵Dave2013-09-231-0/+1
| | | | root namespace". Added a require for the 'none' authentication method in session.rb.
* Version bumpv2.7.02.72.6delano2013-09-111-2/+2
|
* remove commentYuri Matylitski2013-09-111-1/+0
|
* fix for 'Could not parse PKey: no start line' error on private keys with ↵Yuri Matylitski2013-09-111-0/+4
| | | | passphrases'
* Automatically forward environment variables defined in OpenSSH config filesRobert Schulze2013-09-093-1/+26
| | | | Also accept `:send_env` option on `Net::SSH.start`
* Merge pull request #116 from noric/feature/keepaliveDelano Mandelbaum2013-08-252-2/+39
|\ | | | | implement a experimental keepalive feature #115
| * implement a experimental keepalive featureNorihito Yoshioka2013-08-182-2/+39
| |
* | Guard against socket.gets being nilKris Hicks2013-07-081-1/+1
|/ | | | | | In the situation where the socket has only one line to respond with, any following gets to the socket need to take care to not assume there is a non-nil response.
* Version bumpv2.6.8delano2013-07-061-1/+1
|
* Merge pull request #108 from joshk/wait_during_close_loopDelano Mandelbaum2013-07-061-1/+1
|\ | | | | Add a wait to the loop in close
| * add a wait to the loop in closeJosh Kalderimis2013-06-201-1/+1
| | | | | | this is possibly blocking in cases where the connection is now unresponsive, and also causing timeouts which wrap this to block.
* | Fixed merge from GabKlein-masterGabKlein-masterdelano2013-07-061-1/+2
|\ \ | |/ |/|
| * Update config.rbGabriel KLEIN2013-03-111-1/+2
| | | | | | Add support of "%h" value in ssh_config translation
* | Make sure HOME is an absolute pathTobias Schmidt2013-04-181-1/+1
| | | | | | | | | | | | | | In setups where $HOME is not set, the previous implementation set "." as default. The problem is that File.expand_path will raise ArgumentError "non-absolute home" if HOME is a relative path. This change makes sure HOME is an absolute path.
* | Version bump (2.6.7)v2.6.7delano2013-04-112-7/+8
| |
* | connection/channel+session: lower max packet size & allow manual size.Oliver2013-04-103-6/+15
|/ | | | | | | | | | | | | | Per section 6.1 of RFC 4253 an SSH implementation MUST support a packet size of 32768 bytes, however, any size above this is not mandatory. Currently, the max packet size is 64Kb and can cause a channel open failure for hosts which only support the required 32Kb packet size. As a result, we now default to the required size of 32768 (0x8000) in order to avoid any errors with such hosts. Additionally, the user can now manually define the maximum packet and window size, should they choose to in the event that they wish to obtain performance gains from a larger packet/window size.
* Version bumpv2.6.6delano2013-03-031-1/+1
|
* This should fix #85.Jan Segre2013-03-021-6/+2
| | | | | It's prefered to fallback to the newer api instead of checking for versions before 1.9 and 1.9 and leaving others open to breakage.
* Fixed path in gemspec [thanks priteau]v2.6.5delano2013-02-061-1/+1
|
* add license information to gemspec [jordimassaguerpla]delano2013-02-061-4/+4
|\
| * Merge pull request #74 from kachick/improve/remove_warningsDelano Mandelbaum2013-01-111-4/+4
| |\ | | | | | | Remove a warning "shadowing outer local variable - type"
| | * Remove a warning "shadowing outer local variable - type"Kenichi Kamiya2013-01-111-4/+4
| | |
* | | Added public certdelano2013-02-061-1/+1
|/ /
* | Version Bump (2.6.3)v2.6.3delano2013-01-101-1/+1
| |
* | Return correct ECError class for PKey::EC key typeAndreas Wolff2013-01-101-1/+1
| |
* | Doc: Fix misspelled forwrd_agent optionAndreas Wolff2013-01-101-1/+1
|/
* Removing warningsCarsten Dreesbach2012-12-239-10/+9
|
* Merge pull request #65 from nelhage/async-disconnectDelano Mandelbaum2012-11-221-1/+5
|\ | | | | PacketStream: Properly detect disconnects in nonblocking reads.
| * PacketStream: Properly detect disconnects in nonblocking reads.Nelson Elhage2012-11-021-1/+5
| | | | | | | | | | | | | | We see a bug where it's possible to get net-ssh into an infite loop spinning CPU after a connection has been closed. I am unable to reliably reproduce it, so I can't be positive this is the fix, but I have not seen a recurrence in our environment since adding this patch.
* | Version bump (2.6.2)v2.6.2delano2012-11-221-1/+1
| |
* | Merge pull request #68 from ohrite/jruby_key_sizeDelano Mandelbaum2012-11-221-1/+1
|\ \ | | | | | | Fix Invalid key size in JRuby
| * | Fix Invalid key size in JRubyDoc Ritezel2012-11-181-1/+1
| |/
* | Merge pull request #67 from ohrite/test_extended_dataDelano Mandelbaum2012-11-223-0/+19
|\ \ | | | | | | Add stderr handling to Net::SSH::Test
| * | Add stderr handling to Net::SSH::TestDoc Ritezel2012-11-173-0/+19
| |/ | | | | | | Add #gets_extended_data to the test flow
* | Merge pull request #64 from mhuffnagle/masterDelano Mandelbaum2012-11-221-1/+2
|\ \ | |/ |/| Net::SSH.start now returns result of block
| * Net::SSH.start returns result of blockMarc Huffnagle2012-10-291-1/+2
| | | | | | | | | | | | It's useful (and expected) to have the result of evaluating a block returned. Net::HTTP.start has this behavior, for example. Updated Net::SSH to have the same behavior.
* | Merge branch 'master' into 2.6v2.6.1delano2012-10-181-1/+1
|\ \
| * | Changed encoding of file to prevent warnings when generating docsAlexander Greim2012-09-201-1/+1
| | |
* | | Version bumpdelano2012-10-181-1/+1
|/ /
* | Release 2.6.0v2.6.0delano2012-09-191-2/+2
| |
* | Merge pull request #58 from nagachika/use_pkey_readDelano Mandelbaum2012-09-191-11/+24
|\ \ | | | | | | Use OpenSSL::PKey.read to read arbitrary private key.
| * | Use OpenSSL::PKey.read to read arbitrary private key from DER-/PEM-encoded file.Chikanaga Tomoyuki2012-09-051-11/+24
| |/ | | | | | | | | OpenSSL::PKey.read was introduced from 1.9.3. This helps to load private keys generated by `openssl req -newkey` command.
* | Merge pull request #50 from no6v/wo/UNIXSocketDelano Mandelbaum2012-09-191-1/+1
|\ \ | | | | | | check an availability of UNIXSocket and UNIXServer
| * | check an availability of UNIXSocket and UNIXServerNobuhiro IMAI2012-06-171-1/+1
| | |
* | | Merge pull request #33 from dubspeed/masterDelano Mandelbaum2012-09-192-1/+38
|\ \ \ | | | | | | | | Implementation of the "none"-authentication method
| * | | added basic tests and completed adding the "none" authentication methodMichael Lennartz2012-01-171-4/+10
| | | |
| * | | Added class for "none" authenticationMichael Lennartz2012-01-171-0/+31
| | | |