net-ssh 7.2.0.beta1 → 7.2.0
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/.github/FUNDING.yml +1 -0
- data/.github/workflows/ci.yml +1 -1
- data/.rubocop_todo.yml +1 -1
- data/CHANGES.txt +7 -0
- data/Dockerfile +1 -1
- data/README.md +1 -0
- data/lib/net/ssh/authentication/methods/publickey.rb +1 -1
- data/lib/net/ssh/version.rb +1 -1
- data/lib/net/ssh/version.rb.old +68 -0
- data/lib/net/ssh.rb +2 -1
- data/net-ssh.gemspec +2 -2
- data.tar.gz.sig +0 -0
- metadata +10 -8
- 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: b2bf895a7938d352a745eed7114d1d0a93fae0395b1d00b34712f34522d79bea
|
4
|
+
data.tar.gz: 80ccfad64254bd076b8536e17a61dab87f11f975573815ad830e7708309087cc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ec21151a75da6a5320875e1bb193855dd443ef58357e2ac42a22f2dd25814e138bf9b3a34ce0d9a96d8094ee6c919818d40da867dc2a22176a98152ed347c427
|
7
|
+
data.tar.gz: cf01f42c62fce31dade5490fa59cadf7fa904d7bdc420ab5eb8974d96ccf9382a683648b244966b342429bb86073630d4cfd7e4c6bfd6dae0b6189295b543e9e
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data/.github/FUNDING.yml
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
github: [mfazekas]
|
data/.github/workflows/ci.yml
CHANGED
data/.rubocop_todo.yml
CHANGED
data/CHANGES.txt
CHANGED
data/Dockerfile
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
ARG RUBY_VERSION=3.1
|
2
2
|
FROM ruby:${RUBY_VERSION}
|
3
3
|
|
4
|
-
RUN apt update && apt install -y openssh-server sudo netcat \
|
4
|
+
RUN apt update && apt install -y openssh-server sudo netcat-openbsd \
|
5
5
|
&& useradd --create-home --shell '/bin/bash' --comment 'NetSSH' 'net_ssh_1' \
|
6
6
|
&& useradd --create-home --shell '/bin/bash' --comment 'NetSSH' 'net_ssh_2' \
|
7
7
|
&& echo net_ssh_1:foopwd | chpasswd \
|
data/README.md
CHANGED
@@ -64,6 +64,7 @@ Unsecure algoritms will definitely be removed in Net::SSH 8.*.
|
|
64
64
|
| Name | Support | Details |
|
65
65
|
|--------------------------------------|-----------------------|----------|
|
66
66
|
| aes256-ctr / aes192-ctr / aes128-ctr | OK | |
|
67
|
+
| chacha20-poly1305@openssh.com | OK. | Requires the gem `rbnacl` |
|
67
68
|
| aes256-cbc / aes192-cbc / aes128-cbc | Deprecated in 6.0 | unsecure, will be removed in 8.0 |
|
68
69
|
| rijndael-cbc@lysator.liu.se | Deprecated in 6.0 | unsecure, will be removed in 8.0 |
|
69
70
|
| blowfish-ctr blowfish-cbc | Deprecated in 6.0 | unsecure, will be removed in 8.0 |
|
@@ -44,7 +44,7 @@ module Net
|
|
44
44
|
end
|
45
45
|
|
46
46
|
def authenticate_with_alg(identity, next_service, username, alg, sig_alg = nil)
|
47
|
-
debug { "trying publickey (#{identity.fingerprint})" }
|
47
|
+
debug { "trying publickey (#{identity.fingerprint}) alg #{alg}" }
|
48
48
|
send_request(identity, username, next_service, alg)
|
49
49
|
|
50
50
|
message = session.next_message
|
data/lib/net/ssh/version.rb
CHANGED
@@ -0,0 +1,68 @@
|
|
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
|
data/lib/net/ssh.rb
CHANGED
@@ -64,7 +64,7 @@ module Net
|
|
64
64
|
# Net::SSH.start for a description of each option.
|
65
65
|
VALID_OPTIONS = %i[
|
66
66
|
auth_methods bind_address compression compression_level config
|
67
|
-
encryption forward_agent hmac host_key remote_user
|
67
|
+
encryption forward_agent hmac host_key identity_agent remote_user
|
68
68
|
keepalive keepalive_interval keepalive_maxcount kex keys key_data
|
69
69
|
keycerts languages logger paranoid password port proxy
|
70
70
|
rekey_blocks_limit rekey_limit rekey_packet_limit timeout verbose
|
@@ -192,6 +192,7 @@ module Net
|
|
192
192
|
# Defaults to %w(~/.ssh/known_hosts ~/.ssh/known_hosts2).
|
193
193
|
# * :use_agent => Set false to disable the use of ssh-agent. Defaults to
|
194
194
|
# true
|
195
|
+
# * :identity_agent => the path to the ssh-agent's UNIX socket
|
195
196
|
# * :verbose => how verbose to be (Logger verbosity constants, Logger::DEBUG
|
196
197
|
# is very verbose, Logger::FATAL is all but silent). Logger::FATAL is the
|
197
198
|
# default. The symbols :debug, :info, :warn, :error, and :fatal are also
|
data/net-ssh.gemspec
CHANGED
@@ -39,8 +39,8 @@ Gem::Specification.new do |spec|
|
|
39
39
|
spec.add_development_dependency('rbnacl', '~> 7.1') unless ENV['NET_SSH_NO_RBNACL']
|
40
40
|
|
41
41
|
spec.add_development_dependency "bundler", ">= 1.17"
|
42
|
-
spec.add_development_dependency "minitest", "~> 5.
|
43
|
-
spec.add_development_dependency "mocha", "~> 1.
|
42
|
+
spec.add_development_dependency "minitest", "~> 5.19"
|
43
|
+
spec.add_development_dependency "mocha", "~> 2.1.0"
|
44
44
|
spec.add_development_dependency "rake", "~> 12.0"
|
45
45
|
spec.add_development_dependency "rubocop", "~> 1.28.0"
|
46
46
|
end
|
data.tar.gz.sig
CHANGED
Binary file
|
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: 7.2.0
|
4
|
+
version: 7.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jamis Buck
|
@@ -31,7 +31,7 @@ cert_chain:
|
|
31
31
|
v84waVXQ2i5M7pJaHVBF7DxxeW/q8W3VCnsq8vmmvULSThD18QqYGaFDJeN8sTR4
|
32
32
|
6tfjgZ6OvGSScvbCMHkCE9XjonE=
|
33
33
|
-----END CERTIFICATE-----
|
34
|
-
date: 2023-
|
34
|
+
date: 2023-07-30 00:00:00.000000000 Z
|
35
35
|
dependencies:
|
36
36
|
- !ruby/object:Gem::Dependency
|
37
37
|
name: bcrypt_pbkdf
|
@@ -109,28 +109,28 @@ dependencies:
|
|
109
109
|
requirements:
|
110
110
|
- - "~>"
|
111
111
|
- !ruby/object:Gem::Version
|
112
|
-
version: '5.
|
112
|
+
version: '5.19'
|
113
113
|
type: :development
|
114
114
|
prerelease: false
|
115
115
|
version_requirements: !ruby/object:Gem::Requirement
|
116
116
|
requirements:
|
117
117
|
- - "~>"
|
118
118
|
- !ruby/object:Gem::Version
|
119
|
-
version: '5.
|
119
|
+
version: '5.19'
|
120
120
|
- !ruby/object:Gem::Dependency
|
121
121
|
name: mocha
|
122
122
|
requirement: !ruby/object:Gem::Requirement
|
123
123
|
requirements:
|
124
124
|
- - "~>"
|
125
125
|
- !ruby/object:Gem::Version
|
126
|
-
version: 1.
|
126
|
+
version: 2.1.0
|
127
127
|
type: :development
|
128
128
|
prerelease: false
|
129
129
|
version_requirements: !ruby/object:Gem::Requirement
|
130
130
|
requirements:
|
131
131
|
- - "~>"
|
132
132
|
- !ruby/object:Gem::Version
|
133
|
-
version: 1.
|
133
|
+
version: 2.1.0
|
134
134
|
- !ruby/object:Gem::Dependency
|
135
135
|
name: rake
|
136
136
|
requirement: !ruby/object:Gem::Requirement
|
@@ -171,6 +171,7 @@ extra_rdoc_files:
|
|
171
171
|
- README.md
|
172
172
|
files:
|
173
173
|
- ".dockerignore"
|
174
|
+
- ".github/FUNDING.yml"
|
174
175
|
- ".github/config/rubocop_linter_action.yml"
|
175
176
|
- ".github/workflows/ci-with-docker.yml"
|
176
177
|
- ".github/workflows/ci.yml"
|
@@ -288,6 +289,7 @@ files:
|
|
288
289
|
- lib/net/ssh/verifiers/always.rb
|
289
290
|
- lib/net/ssh/verifiers/never.rb
|
290
291
|
- lib/net/ssh/version.rb
|
292
|
+
- lib/net/ssh/version.rb.old
|
291
293
|
- net-ssh-public_cert.pem
|
292
294
|
- net-ssh.gemspec
|
293
295
|
- support/ssh_tunnel_bug.rb
|
@@ -307,9 +309,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
307
309
|
version: '2.6'
|
308
310
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
309
311
|
requirements:
|
310
|
-
- - "
|
312
|
+
- - ">="
|
311
313
|
- !ruby/object:Gem::Version
|
312
|
-
version:
|
314
|
+
version: '0'
|
313
315
|
requirements: []
|
314
316
|
rubygems_version: 3.3.3
|
315
317
|
signing_key:
|
metadata.gz.sig
CHANGED
Binary file
|