summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Whitespace fixeswhitespace-fixesMiklos Fazekas2018-03-2185-431/+561
|
* add sha256 key fingerprintingTom Maher2018-03-216-67/+217
|
* Merge pull request #584 from mfazekas/rubocop-54Miklós Fazekas2018-03-21136-10334/+10222
|\ | | | | Updated rubocop
| * Fix test test issueMiklos Fazekas2018-03-212-54/+54
| |
| * Updated rubocopMiklos Fazekas2018-03-21136-10378/+10266
|/
* Updated public certv5.0.0.beta1Miklos Fazekas2018-03-112-8/+22
|
* Merge pull request #580 from mfazekas/fix-proxy-command-zombiesMiklós Fazekas2018-03-044-11/+48
|\ | | | | Handle ProxyCommand child in case of timeout and exception
| * Handle ProxyCommand child in case of timeout and exceptionDima2018-03-044-11/+48
|/
* Merge pull request #540 from fl0at/default_files_sideeffectsMiklós Fazekas2018-02-282-2/+20
|\ | | | | Fixed side-effects caused by passing by reference
| * Merge branch 'master' into default_files_sideeffectsMiklós Fazekas2018-02-0629-143/+248
| |\
| * | Added unit testsScott Paeth2017-07-212-1/+20
| | | | | | | | | | | | | | | | | | Specifically: references to default_files and default_auth_methods shouldn't modify the class variables, so we're asserting whether the before and after states are equal.
| * | Fixed side-effects caused by passing by referenceScott Paeth2017-07-201-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The Net::SSH::Config::default_files method is supposed to "return an array of locations" to parse by default. However, it currently returns a **reference** to the actual `@@default_files` instance variable, meaning that any API consumers who `Enumerable#shift`, `pop`, or otherwise modify the returned Array are actually **__modifying the state of the `Net::SSH` library as a whole__**, meaning that subsequent uses cannot use the same array. I found this because I use `Net::SSH.start` by itself (eg, automagically getting configuration), but ran into problems when I added this block in front, where I'm simply loading the files to find whether the new option `IdentityAgent` is set. (Eg, I'm not otherwise using/`::translate`ing the loaded options) ```ruby raw_opts = {} opt_files = Net::SSH::Config.default_files while (file = opt_files.shift) raw_opts = Net::SSH::Config.load(file, some_hostname, raw_opts) end identity_agent = raw_opts.fetch("identityagent", nil) Net::SSH.start(hostname, nil, verbose: :info) do |session| # ... do my regular stuff end ``` After I added that block, the attempted ssh session used the wrong username, etc, as if `#start` was no longer loading the config files. At first I assumed that `Net::SSH::Config.load` had side effects (documented or otherwise) but I couldn't see any evidence of that in the code. Imagine my surprise when I found the "pass by reference" problem in `::default_files`... My fix boiled down to this: `opt_files = Net::SSH::Config.default_files` -> `opt_files = Net::SSH::Config.default_files.clone` Hence the PR. I don't think it makes sense for anyone to be able to modify the internal state of Net::SSH... Feel free to reject this PR, in which case I'll make another one to adjust the docs instead, warning people of the side effects :-)
* | | Merge pull request #573 from mfazekas/fix-uninitialized-simple-delegatorMiklós Fazekas2018-02-081-0/+1
|\ \ \ | | | | | | | | Fix uninitialized SimpleDelegator
| * | | Fix uninitialized SimpleDelegatorMiklos Fazekas2018-02-081-0/+1
|/ / /
* | | Merge pull request #571 from Try2Code/masterMiklós Fazekas2018-02-081-2/+2
|\ \ \ | |_|/ |/| | Fix for current arch linux box using openssl-1.1.0g
| * | Fix for current arch linux box using openssl-1.1.0gRalf Mueller2018-02-081-2/+2
|/ / | | | | | | relative to net-ssh version 4.2.0 (released as gem)
* | Merge pull request #547 from vacuum-car/masterMiklós Fazekas2018-02-061-1/+1
|\ \ | | | | | | fix typo: Unkown => Unknown
| * | fix typo: Unkown => Unknownvacuum-car2017-09-191-1/+1
| | |
* | | Merge pull request #546 from busterb/fix-testsMiklós Fazekas2018-02-061-10/+10
|\ \ \ | | | | | | | | disable broken rubies, update rubies with security issues
| * \ \ Merge branch 'master' into fix-testsMiklós Fazekas2018-02-0623-105/+228
| |\ \ \
| * | | | disable broken ruby versions in tests, update othersBrent Cook2017-09-191-12/+10
| | |/ / | |/| |
* | | | Merge pull request #544 from milgner/feature/remove-io-compatMiklós Fazekas2018-02-066-25/+10
|\ \ \ \ | |_|/ / |/| | | Remove Net::SSH::Compat.io_select
| * | | Remove Net::SSH::Compat.io_selectMarcus Ilgner2017-09-076-25/+10
| |/ / | | | | | | | | | | | | Despite the comment, it was not doing anything anymore except invoking the default `IO.select`.
* | | Merge pull request #570 from mfazekas/openssl-aes-ctrMiklós Fazekas2018-02-064-14/+103
|\ \ \ | | | | | | | | Use OpenSSL for aes*-ctr
| * | | Update CHANGESMiklos Fazekas2018-02-061-0/+2
| | | |
| * | | Fix aes in case of resetMiklos Fazekas2018-02-062-9/+68
| | | |
| * | | fix rubocopMiklos Fazekas2018-02-061-1/+3
| | | |
| * | | Use OpenSSL for aes*-ctrMiklos Fazekas2018-02-062-5/+31
| | | |
* | | | Merge pull request #561 from chooper/chooper/fix-docsMiklós Fazekas2018-02-061-1/+1
|\ \ \ \ | |/ / / |/| | | Fix Net::SSH.start docs
| * | | Fix Net::SSH.start docsCharles Hooper2017-12-101-1/+1
| | | |
* | | | Merge pull request #569 from apachelogger/masterMiklós Fazekas2018-02-061-3/+6
|\ \ \ \ | | | | | | | | | | improve CTR speed by not mutating the remaining string in a loop
| * | | | improve CTR speed by not mutating the remaining string in a loopHarald Sitter2018-02-051-3/+6
|/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | #slice! in a loop gets expensive quickly when encrypting larger data blobs (e.g. when uploading data through net-sftp). #slice! needs to modify self AND create a new string for the substr, #slice on the other hand only needs to do the latter. as we do not need the modified remaining string in the loop we can simply slice in the loop and then change remaining afterwards to modify the string permanently.
* | | | Merge pull request #564 from mfazekas/ed25519-gemMiklós Fazekas2018-01-0216-63/+50
|\ \ \ \ | | | | | | | | | | Ed25519 gem
| * | | | Bump major version, and remove old ruby versionsMiklos Fazekas2018-01-025-7/+11
| | | | |
| * | | | Replace RbNaCl dependency with ed25519 gemTony Arcieri2018-01-0214-56/+39
|/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | RbNaCl is a much more heavyweight dependency that is only being used for Ed25519 signatures. The ed25519 gem should install much more quickly. This change otherwise preserves ed25519 being used as an optional dependency and generally tries to keep as much as possible the same.
* | | | Merge pull request #553 from hanazuki/matchMiklós Fazekas2017-12-133-17/+57
|\ \ \ \ | |/ / / |/| | | Add initial Match support
| * | | Merge remote-tracking branch 'origin/master' into matchKasumi Hanazuki2017-12-132-10/+12
| |\ \ \ | |/ / / |/| | |
* | | | Merge pull request #559 from mfazekas/fix-travisMiklós Fazekas2017-12-042-10/+12
|\ \ \ \ | |_|/ / |/| | | Troubleshoot travis.yml file
| * | | Fix travis.yml and appveyor.yml for bundler 1.16Miklos Fazekas2017-11-302-10/+12
|/ / /
| * | Add initial Match supportKasumi Hanazuki2017-10-263-17/+57
|/ / | | | | | | | | This change makes Net::SSH::Config to recognize `Match` directive in ssh_config. Only the `all` criteria keyword (and its negation) is supported at this time.
* | 4.2.0v4.2.0Miklos Fazekas2017-09-061-1/+1
|/
* Merge pull request #539 from mfazekas/420rc2-preparev4.2.0.rc2Miklós Fazekas2017-07-192-1/+6
|\ | | | | 4.2.0.rc2 prepare
| * 4.2.0.rc2 prepareMiklos Fazekas2017-07-192-1/+6
|/
* Merge pull request #538 from mfazekas/auth-failure-exceptionMiklós Fazekas2017-07-184-9/+36
|\ | | | | Test for proxy close and test for auth failure
| * Removed extra transport close see #529Miklos Fazekas2017-07-182-8/+3
| |
| * Test for proxy close and test for invalid auth failureMiklos Fazekas2017-07-182-1/+33
| |
* | Merge pull request #530 from moofkit/fix_debug_output_with_proxyv4.2.0.rc1Miklós Fazekas2017-07-112-10/+43
|\ \ | | | | | | Fix debug output with proxy command
| * | add special debug message with proxy connectionDmitriy Ivliev2017-06-272-10/+43
| | |
* | | Merge pull request #534 from mfazekas/420rc1prepareMiklós Fazekas2017-07-112-5/+11
|\ \ \ | | |/ | |/| 420rc1prepare
| * | 4.2.0.rc1 prepareMiklos Fazekas2017-07-112-5/+11
|/ /