net-ssh 2.2.1 → 2.2.2
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG.rdoc +5 -0
- data/lib/net/ssh/authentication/session.rb +6 -1
- data/lib/net/ssh/transport/session.rb +2 -1
- data/lib/net/ssh/version.rb +1 -1
- data/net-ssh.gemspec +1 -1
- metadata +3 -5
data/CHANGELOG.rdoc
CHANGED
@@ -1,4 +1,9 @@
|
|
1
1
|
|
2
|
+
=== 2.2.2 / 04 Jan 2012
|
3
|
+
|
4
|
+
* Fixed: Connection hangs on ServerVersion.new(socket, logger) [muffl0n]
|
5
|
+
* Avoid dying when unsupported auth mechanisms are defined [pcn]
|
6
|
+
|
2
7
|
=== 2.2.1 / 24 Aug 2011
|
3
8
|
|
4
9
|
* Do not prompt any passphrases before trying all identities from agent. [musybite]
|
@@ -68,7 +68,12 @@ module Net; module SSH; module Authentication
|
|
68
68
|
attempted << name
|
69
69
|
|
70
70
|
debug { "trying #{name}" }
|
71
|
-
|
71
|
+
begin
|
72
|
+
method = Methods.const_get(name.split(/\W+/).map { |p| p.capitalize }.join).new(self, :key_manager => key_manager)
|
73
|
+
rescue NameError => ne
|
74
|
+
debug{"Mechanism #{name} was requested, but isn't a known type. Ignoring it."}
|
75
|
+
next
|
76
|
+
end
|
72
77
|
|
73
78
|
return true if method.authenticate(next_service, username, password)
|
74
79
|
rescue Net::SSH::Authentication::DisallowedMethod
|
@@ -73,7 +73,8 @@ module Net; module SSH; module Transport
|
|
73
73
|
|
74
74
|
@host_key_verifier = select_host_key_verifier(options[:paranoid])
|
75
75
|
|
76
|
-
|
76
|
+
|
77
|
+
@server_version = timeout(options[:timeout] || 0) { ServerVersion.new(socket, logger) }
|
77
78
|
|
78
79
|
@algorithms = Algorithms.new(self, options)
|
79
80
|
wait { algorithms.initialized? }
|
data/lib/net/ssh/version.rb
CHANGED
data/net-ssh.gemspec
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
@spec = Gem::Specification.new do |s|
|
2
2
|
s.name = "net-ssh"
|
3
3
|
s.rubyforge_project = 'net-ssh'
|
4
|
-
s.version = "2.2.
|
4
|
+
s.version = "2.2.2"
|
5
5
|
s.summary = "Net::SSH: a pure-Ruby implementation of the SSH2 client protocol."
|
6
6
|
s.description = s.summary
|
7
7
|
s.authors = ["Jamis Buck", "Delano Mandelbaum"]
|
metadata
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
name: net-ssh
|
3
3
|
version: !ruby/object:Gem::Version
|
4
4
|
prerelease:
|
5
|
-
version: 2.2.
|
5
|
+
version: 2.2.2
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- Jamis Buck
|
@@ -11,8 +11,7 @@ autorequire:
|
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
13
|
|
14
|
-
date:
|
15
|
-
default_executable:
|
14
|
+
date: 2012-01-05 00:00:00 Z
|
16
15
|
dependencies: []
|
17
16
|
|
18
17
|
description: "Net::SSH: a pure-Ruby implementation of the SSH2 client protocol."
|
@@ -141,7 +140,6 @@ files:
|
|
141
140
|
- test/transport/test_server_version.rb
|
142
141
|
- test/transport/test_session.rb
|
143
142
|
- test/transport/test_state.rb
|
144
|
-
has_rdoc: true
|
145
143
|
homepage: http://github.com/net-ssh/net-ssh
|
146
144
|
licenses: []
|
147
145
|
|
@@ -169,7 +167,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
169
167
|
requirements: []
|
170
168
|
|
171
169
|
rubyforge_project: net-ssh
|
172
|
-
rubygems_version: 1.
|
170
|
+
rubygems_version: 1.8.10
|
173
171
|
signing_key:
|
174
172
|
specification_version: 3
|
175
173
|
summary: "Net::SSH: a pure-Ruby implementation of the SSH2 client protocol."
|