net-ssh 6.0.2 → 6.1.0.rc1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +2 -1
- data/CHANGES.txt +6 -1
- data/README.md +5 -4
- data/lib/net/ssh/transport/algorithms.rb +20 -7
- data/lib/net/ssh/version.rb +3 -3
- metadata +3 -3
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cf912b700a6c4b41e9d530a1a932c2a57d068aed0993dd08144adcaa62db0e8c
|
4
|
+
data.tar.gz: a398bdf7e000b83dc6af0ce26627b8cec722848801856a52d5eb1fb7c1b9afbd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a60f408a5f714110cf421a20d35259f9360bd09ead3fcedd20e94b06b889de612522fb0717ef7b0004cc005da6820264b6f08f4ec896704bbd04c3297f943b2e
|
7
|
+
data.tar.gz: e71dca973d3ba3e8d6aed1da493e38de77d7ec7575ea3373aeecfc67b23d73f8cc2a24b731c6d3fb718cf13a1b701a8091be07221b686af945ed1372518d1c0e
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data.tar.gz.sig
CHANGED
@@ -1 +1,2 @@
|
|
1
|
-
|
1
|
+
5�i���$C�M;��7�#�Sl L�gQ�0����,��b�\�w+�[��
|
2
|
+
��4�_���W�k�����ƴ]B����t�HJ��¨/+��&v?�V�U��w�njw � �Ny!�E�~�:�m%�EQ�3�ʰ��~ i�z�_��oD�|s+������7Fl�Rq�e+��ze�B�Ë��C�T3���6{�=�m��=�V��*�M�.�`
|
data/CHANGES.txt
CHANGED
@@ -1,3 +1,8 @@
|
|
1
|
+
=== 6.1.0.rc1
|
2
|
+
|
3
|
+
* Make sha2-{256,512}-etm@openssh.com MAC default again [#761]
|
4
|
+
* Support algorithm subtraction syntax from ssh_config [#751]
|
5
|
+
|
1
6
|
=== 6.0.2
|
2
7
|
|
3
8
|
* Fix corrupted hmac issue in etm hmac [#759]
|
@@ -12,7 +17,7 @@
|
|
12
17
|
* Add sha2-{256,512}-etm@openssh.com MAC algorithms [graaff, #714]
|
13
18
|
|
14
19
|
=== 6.0.0 beta2
|
15
|
-
|
20
|
+
|
16
21
|
* Support :certkeys and CertificateFile configuration option [Anders Carling, #722]
|
17
22
|
|
18
23
|
=== 6.0.0 beta1
|
data/README.md
CHANGED
@@ -33,7 +33,7 @@ We strongly recommend that you install a servers's version that supports the lat
|
|
33
33
|
|
34
34
|
It is possible to return to the previous behavior by adding the option : `append_all_supported_algorithms: true`
|
35
35
|
|
36
|
-
Unsecure algoritms will be
|
36
|
+
Unsecure algoritms will definitely be removed in Net::SSH 7.*.
|
37
37
|
|
38
38
|
### Host Keys
|
39
39
|
|
@@ -63,7 +63,7 @@ Unsecure algoritms will be definively remove in Net::SSH 7.*.
|
|
63
63
|
|
64
64
|
| Name | Support | Details |
|
65
65
|
|--------------------------------------|-----------------------|----------|
|
66
|
-
| aes256-ctr / aes192-ctr / aes128-ctr | OK |
|
66
|
+
| aes256-ctr / aes192-ctr / aes128-ctr | OK | |
|
67
67
|
| aes256-cbc / aes192-cbc / aes128-cbc | Deprecated in 6.0 | unsecure, will be removed in 7.0 |
|
68
68
|
| rijndael-cbc@lysator.liu.se | Deprecated in 6.0 | unsecure, will be removed in 7.0 |
|
69
69
|
| blowfish-ctr blowfish-cbc | Deprecated in 6.0 | unsecure, will be removed in 7.0 |
|
@@ -97,6 +97,7 @@ In a nutshell:
|
|
97
97
|
require 'net/ssh'
|
98
98
|
|
99
99
|
Net::SSH.start('host', 'user', password: "password") do |ssh|
|
100
|
+
|
100
101
|
# capture all stderr and stdout output from a remote process
|
101
102
|
output = ssh.exec!("hostname")
|
102
103
|
puts output
|
@@ -104,7 +105,7 @@ puts output
|
|
104
105
|
# capture only stdout matching a particular pattern
|
105
106
|
stdout = ""
|
106
107
|
ssh.exec!("ls -l /home/jamis") do |channel, stream, data|
|
107
|
-
stdout << data if stream == :stdout
|
108
|
+
stdout << data if stream == :stdout && /foo/.match(data)
|
108
109
|
end
|
109
110
|
puts stdout
|
110
111
|
|
@@ -164,7 +165,7 @@ gem install net-ssh # might need sudo privileges
|
|
164
165
|
```
|
165
166
|
|
166
167
|
NOTE: If you are running on jruby on windows you need to install `jruby-pageant` manually
|
167
|
-
(gemspec doesn't allow for platform specific dependencies).
|
168
|
+
(gemspec doesn't allow for platform specific dependencies at gem installation time).
|
168
169
|
|
169
170
|
However, in order to be sure the code you're installing hasn't been tampered with,
|
170
171
|
it's recommended that you verify the [signature](http://docs.rubygems.org/read/chapter/21).
|
@@ -43,7 +43,8 @@ module Net
|
|
43
43
|
|
44
44
|
encryption: %w[aes256-ctr aes192-ctr aes128-ctr],
|
45
45
|
|
46
|
-
hmac: %w[hmac-sha2-512 hmac-sha2-256
|
46
|
+
hmac: %w[hmac-sha2-512-etm@openssh.com hmac-sha2-256-etm@openssh.com
|
47
|
+
hmac-sha2-512 hmac-sha2-256
|
47
48
|
hmac-sha1]
|
48
49
|
}.freeze
|
49
50
|
|
@@ -83,9 +84,7 @@ module Net
|
|
83
84
|
hmac-sha1-96
|
84
85
|
hmac-ripemd160 hmac-ripemd160@openssh.com
|
85
86
|
hmac-md5 hmac-md5-96
|
86
|
-
none]
|
87
|
-
%w[hmac-sha2-256-etm@openssh.com
|
88
|
-
hmac-sha2-512-etm@openssh.com],
|
87
|
+
none],
|
89
88
|
|
90
89
|
compression: %w[none zlib@openssh.com zlib],
|
91
90
|
language: %w[]
|
@@ -291,10 +290,24 @@ module Net
|
|
291
290
|
list = []
|
292
291
|
option = Array(option).compact.uniq
|
293
292
|
|
294
|
-
if option.first && option.first.start_with?('+')
|
293
|
+
if option.first && option.first.start_with?('+', '-')
|
295
294
|
list = supported.dup
|
296
|
-
|
297
|
-
|
295
|
+
|
296
|
+
appends = option.select { |opt| opt.start_with?('+') }.map { |opt| opt[1..-1] }
|
297
|
+
deletions = option.select { |opt| opt.start_with?('-') }.map { |opt| opt[1..-1] }
|
298
|
+
|
299
|
+
list.concat(appends)
|
300
|
+
|
301
|
+
deletions.each do |opt|
|
302
|
+
if opt.include?('*')
|
303
|
+
opt_escaped = Regexp.escape(opt)
|
304
|
+
algo_re = /\A#{opt_escaped.gsub('\*', '[A-Za-z\d\-@\.]*')}\z/
|
305
|
+
list.delete_if { |existing_opt| algo_re.match(existing_opt) }
|
306
|
+
else
|
307
|
+
list.delete(opt)
|
308
|
+
end
|
309
|
+
end
|
310
|
+
|
298
311
|
list.uniq!
|
299
312
|
else
|
300
313
|
list = option
|
data/lib/net/ssh/version.rb
CHANGED
@@ -49,14 +49,14 @@ module Net
|
|
49
49
|
MAJOR = 6
|
50
50
|
|
51
51
|
# The minor component of this version of the Net::SSH library
|
52
|
-
MINOR =
|
52
|
+
MINOR = 1
|
53
53
|
|
54
54
|
# The tiny component of this version of the Net::SSH library
|
55
|
-
TINY =
|
55
|
+
TINY = 0
|
56
56
|
|
57
57
|
# The prerelease component of this version of the Net::SSH library
|
58
58
|
# nil allowed
|
59
|
-
PRE =
|
59
|
+
PRE = "rc1"
|
60
60
|
|
61
61
|
# The current version of the Net::SSH library as a Version instance
|
62
62
|
CURRENT = new(*[MAJOR, MINOR, TINY, PRE].compact)
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: net-ssh
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 6.0.
|
4
|
+
version: 6.1.0.rc1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jamis Buck
|
@@ -279,9 +279,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
279
279
|
version: '2.3'
|
280
280
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
281
281
|
requirements:
|
282
|
-
- - "
|
282
|
+
- - ">"
|
283
283
|
- !ruby/object:Gem::Version
|
284
|
-
version:
|
284
|
+
version: 1.3.1
|
285
285
|
requirements: []
|
286
286
|
rubygems_version: 3.0.3
|
287
287
|
signing_key:
|
metadata.gz.sig
CHANGED
Binary file
|