net-ssh 7.2.0 → 8.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (81) hide show
  1. checksums.yaml +4 -4
  2. checksums.yaml.gz.sig +0 -0
  3. data/.dockerignore +3 -0
  4. data/.github/pull_request_template.md +1 -0
  5. data/.github/workflows/changelog.yml +43 -0
  6. data/.github/workflows/ci-with-docker.yml +20 -9
  7. data/.github/workflows/ci.yml +11 -20
  8. data/.github/workflows/rubocop.yml +3 -1
  9. data/.gitignore +2 -0
  10. data/.rubocop.yml +1 -1
  11. data/.rubocop_todo.yml +4 -1
  12. data/CHANGES.txt +114 -0
  13. data/CONTRIBUTING.md +35 -0
  14. data/Dockerfile +7 -2
  15. data/Dockerfile.openssl3 +1 -1
  16. data/Dockerfile.zlib_ng +29 -0
  17. data/README.md +76 -57
  18. data/Rakefile +117 -30
  19. data/appveyor.yml +4 -16
  20. data/changelog.d/README.md +1 -0
  21. data/docker-compose.yml +2 -8
  22. data/lib/net/ssh/authentication/agent.rb +35 -11
  23. data/lib/net/ssh/authentication/ed25519.rb +141 -40
  24. data/lib/net/ssh/authentication/ed25519_loader.rb +14 -9
  25. data/lib/net/ssh/authentication/key_manager.rb +61 -18
  26. data/lib/net/ssh/authentication/methods/abstract.rb +2 -8
  27. data/lib/net/ssh/authentication/methods/publickey.rb +3 -1
  28. data/lib/net/ssh/authentication/pub_key_fingerprint.rb +1 -1
  29. data/lib/net/ssh/authentication/security_key.rb +71 -0
  30. data/lib/net/ssh/authentication/session.rb +34 -15
  31. data/lib/net/ssh/buffer.rb +6 -1
  32. data/lib/net/ssh/buffered_io.rb +41 -4
  33. data/lib/net/ssh/config.rb +30 -13
  34. data/lib/net/ssh/connection/channel.rb +49 -2
  35. data/lib/net/ssh/connection/session.rb +58 -8
  36. data/lib/net/ssh/errors.rb +24 -6
  37. data/lib/net/ssh/key_factory.rb +11 -4
  38. data/lib/net/ssh/known_hosts.rb +64 -11
  39. data/lib/net/ssh/multiplex/client.rb +162 -0
  40. data/lib/net/ssh/multiplex/control_path.rb +120 -0
  41. data/lib/net/ssh/multiplex/proxy_transport.rb +218 -0
  42. data/lib/net/ssh/multiplex.rb +130 -0
  43. data/lib/net/ssh/prompt.rb +3 -3
  44. data/lib/net/ssh/proxy/command.rb +28 -3
  45. data/lib/net/ssh/proxy/jump.rb +52 -4
  46. data/lib/net/ssh/service/forward.rb +38 -27
  47. data/lib/net/ssh/test/extensions.rb +3 -2
  48. data/lib/net/ssh/test/socket.rb +1 -1
  49. data/lib/net/ssh/test.rb +2 -1
  50. data/lib/net/ssh/transport/aes128_gcm.rb +40 -0
  51. data/lib/net/ssh/transport/aes256_gcm.rb +40 -0
  52. data/lib/net/ssh/transport/algorithms.rb +96 -34
  53. data/lib/net/ssh/transport/chacha20_poly1305_cipher.rb +89 -16
  54. data/lib/net/ssh/transport/chacha20_poly1305_cipher_loader.rb +20 -1
  55. data/lib/net/ssh/transport/cipher_factory.rb +32 -8
  56. data/lib/net/ssh/transport/constants.rb +1 -0
  57. data/lib/net/ssh/transport/gcm_cipher.rb +228 -0
  58. data/lib/net/ssh/transport/hmac/abstract.rb +16 -0
  59. data/lib/net/ssh/transport/hmac/sha1_etm.rb +12 -0
  60. data/lib/net/ssh/transport/hmac.rb +2 -0
  61. data/lib/net/ssh/transport/kex/curve25519_sha256.rb +41 -9
  62. data/lib/net/ssh/transport/kex/curve25519_sha256_loader.rb +14 -6
  63. data/lib/net/ssh/transport/kex/diffie_hellman_group1_sha1.rb +8 -0
  64. data/lib/net/ssh/transport/kex/diffie_hellman_group_exchange_sha1.rb +45 -15
  65. data/lib/net/ssh/transport/openssl.rb +2 -1
  66. data/lib/net/ssh/transport/packet_stream.rb +19 -3
  67. data/lib/net/ssh/transport/server_version.rb +33 -13
  68. data/lib/net/ssh/transport/session.rb +60 -46
  69. data/lib/net/ssh/transport/state.rb +1 -1
  70. data/lib/net/ssh/verifiers/always.rb +43 -8
  71. data/lib/net/ssh/version.rb +2 -2
  72. data/lib/net/ssh.rb +142 -62
  73. data/net-ssh-public_cert.pem +19 -18
  74. data/net-ssh.gemspec +7 -8
  75. data/rakelib/changelog.rb +229 -0
  76. data.tar.gz.sig +0 -0
  77. metadata +86 -53
  78. metadata.gz.sig +1 -1
  79. data/Gemfile.noed25519 +0 -12
  80. data/Gemfile.norbnacl +0 -12
  81. data/lib/net/ssh/version.rb.old +0 -68
@@ -1,68 +0,0 @@
1
- module Net
2
- module SSH
3
- # A class for describing the current version of a library. The version
4
- # consists of three parts: the +major+ number, the +minor+ number, and the
5
- # +tiny+ (or +patch+) number.
6
- #
7
- # Two Version instances may be compared, so that you can test that a version
8
- # of a library is what you require:
9
- #
10
- # require 'net/ssh/version'
11
- #
12
- # if Net::SSH::Version::CURRENT < Net::SSH::Version[2,1,0]
13
- # abort "your software is too old!"
14
- # end
15
- class Version
16
- include Comparable
17
-
18
- # A convenience method for instantiating a new Version instance with the
19
- # given +major+, +minor+, and +tiny+ components.
20
- def self.[](major, minor, tiny, pre = nil)
21
- new(major, minor, tiny, pre)
22
- end
23
-
24
- attr_reader :major, :minor, :tiny
25
-
26
- # Create a new Version object with the given components.
27
- def initialize(major, minor, tiny, pre = nil)
28
- @major, @minor, @tiny, @pre = major, minor, tiny, pre
29
- end
30
-
31
- # Compare this version to the given +version+ object.
32
- def <=>(version)
33
- to_i <=> version.to_i
34
- end
35
-
36
- # Converts this version object to a string, where each of the three
37
- # version components are joined by the '.' character. E.g., 2.0.0.
38
- def to_s
39
- @to_s ||= [@major, @minor, @tiny, @pre].compact.join(".")
40
- end
41
-
42
- # Converts this version to a canonical integer that may be compared
43
- # against other version objects.
44
- def to_i
45
- @to_i ||= @major * 1_000_000 + @minor * 1_000 + @tiny
46
- end
47
-
48
- # The major component of this version of the Net::SSH library
49
- MAJOR = 7
50
-
51
- # The minor component of this version of the Net::SSH library
52
- MINOR = 2
53
-
54
- # The tiny component of this version of the Net::SSH library
55
- TINY = 0
56
-
57
- # The prerelease component of this version of the Net::SSH library
58
- # nil allowed
59
- PRE = "rc1"
60
-
61
- # The current version of the Net::SSH library as a Version instance
62
- CURRENT = new(*[MAJOR, MINOR, TINY, PRE].compact)
63
-
64
- # The current version of the Net::SSH library as a String
65
- STRING = CURRENT.to_s
66
- end
67
- end
68
- end