net-ssh 1.0.8 → 1.0.9
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/net/ssh/transport/algorithm-negotiator.rb +2 -2
- data/lib/net/ssh/version.rb +1 -1
- metadata +239 -248
- data/doc/manual-html/chapter-1.html +0 -388
- data/doc/manual-html/chapter-2.html +0 -541
- data/doc/manual-html/chapter-3.html +0 -470
- data/doc/manual-html/chapter-4.html +0 -413
- data/doc/manual-html/chapter-5.html +0 -525
- data/doc/manual-html/chapter-6.html +0 -456
- data/doc/manual-html/chapter-7.html +0 -343
- data/doc/manual-html/index.html +0 -235
- data/doc/manual-html/stylesheets/manual.css +0 -270
- data/doc/manual-html/stylesheets/ruby.css +0 -17
@@ -84,8 +84,8 @@ module Net
|
|
84
84
|
|
85
85
|
# looks for the first element in list1 that is also in list2
|
86
86
|
def first_matching_element( list1, list2 )
|
87
|
-
list1 = list1.split( /,/ ) if list1
|
88
|
-
list2 = list2.split( /,/ ) if list2
|
87
|
+
list1 = list1.split( /,/ ) if String === list1
|
88
|
+
list2 = list2.split( /,/ ) if String === list2
|
89
89
|
|
90
90
|
list1.each do |item|
|
91
91
|
return item if list2.include? item
|
data/lib/net/ssh/version.rb
CHANGED
metadata
CHANGED
@@ -3,11 +3,11 @@ rubygems_version: 0.8.11
|
|
3
3
|
specification_version: 1
|
4
4
|
name: net-ssh
|
5
5
|
version: !ruby/object:Gem::Version
|
6
|
-
version: 1.0.
|
7
|
-
date: 2006-
|
6
|
+
version: 1.0.9
|
7
|
+
date: 2006-04-14 00:00:00 -06:00
|
8
8
|
summary: Net::SSH is a pure-Ruby implementation of the SSH2 client protocol.
|
9
9
|
require_paths:
|
10
|
-
|
10
|
+
- lib
|
11
11
|
email: jamis@37signals.com
|
12
12
|
homepage: http://net-ssh.rubyforge.org
|
13
13
|
rubyforge_project:
|
@@ -18,261 +18,252 @@ bindir: bin
|
|
18
18
|
has_rdoc: true
|
19
19
|
required_ruby_version: !ruby/object:Gem::Version::Requirement
|
20
20
|
requirements:
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
version: 0.0.0
|
21
|
+
- - ">"
|
22
|
+
- !ruby/object:Gem::Version
|
23
|
+
version: 0.0.0
|
25
24
|
version:
|
26
25
|
platform: ruby
|
27
26
|
signing_key:
|
28
27
|
cert_chain:
|
29
28
|
authors:
|
30
|
-
|
29
|
+
- Jamis Buck
|
31
30
|
files:
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
|
154
|
-
|
155
|
-
|
156
|
-
|
157
|
-
|
158
|
-
|
159
|
-
|
160
|
-
|
161
|
-
|
162
|
-
|
163
|
-
|
164
|
-
|
165
|
-
|
166
|
-
|
167
|
-
|
168
|
-
|
169
|
-
|
170
|
-
|
171
|
-
|
172
|
-
|
173
|
-
|
174
|
-
|
175
|
-
|
176
|
-
|
177
|
-
|
178
|
-
|
179
|
-
|
180
|
-
|
181
|
-
|
182
|
-
|
183
|
-
|
184
|
-
|
185
|
-
|
186
|
-
|
187
|
-
|
188
|
-
|
189
|
-
|
190
|
-
|
191
|
-
|
192
|
-
|
193
|
-
|
194
|
-
|
195
|
-
|
196
|
-
|
197
|
-
|
198
|
-
|
199
|
-
|
200
|
-
|
201
|
-
|
202
|
-
|
203
|
-
|
204
|
-
|
205
|
-
|
206
|
-
|
207
|
-
|
208
|
-
|
209
|
-
|
210
|
-
|
211
|
-
|
212
|
-
|
213
|
-
|
214
|
-
|
215
|
-
|
216
|
-
|
217
|
-
|
218
|
-
|
219
|
-
|
220
|
-
|
221
|
-
|
222
|
-
|
223
|
-
|
224
|
-
|
225
|
-
|
226
|
-
|
227
|
-
|
228
|
-
|
229
|
-
|
230
|
-
|
231
|
-
|
232
|
-
|
233
|
-
|
234
|
-
|
235
|
-
|
236
|
-
|
237
|
-
|
238
|
-
|
239
|
-
|
240
|
-
|
241
|
-
|
242
|
-
|
243
|
-
|
244
|
-
|
245
|
-
|
246
|
-
|
247
|
-
|
248
|
-
|
249
|
-
- test/transport/ossl/hmac/tc_none.rb
|
250
|
-
- test/transport/ossl/hmac/tc_sha1.rb
|
251
|
-
- test/transport/ossl/hmac/tc_sha1_96.rb
|
252
|
-
- test/userauth/methods
|
253
|
-
- test/userauth/tc_agent.rb
|
254
|
-
- test/userauth/tc_driver.rb
|
255
|
-
- test/userauth/tc_integration.rb
|
256
|
-
- test/userauth/tc_userkeys.rb
|
257
|
-
- test/userauth/methods/tc_hostbased.rb
|
258
|
-
- test/userauth/methods/tc_password.rb
|
259
|
-
- test/userauth/methods/tc_publickey.rb
|
260
|
-
- test/util/tc_buffer.rb
|
31
|
+
- doc/LICENSE-BSD
|
32
|
+
- doc/LICENSE-GPL
|
33
|
+
- doc/LICENSE-RUBY
|
34
|
+
- doc/manual
|
35
|
+
- doc/manual/chapter.erb
|
36
|
+
- doc/manual/example.erb
|
37
|
+
- doc/manual/index.erb
|
38
|
+
- doc/manual/manual.rb
|
39
|
+
- doc/manual/manual.yml
|
40
|
+
- doc/manual/page.erb
|
41
|
+
- doc/manual/parts
|
42
|
+
- doc/manual/stylesheets
|
43
|
+
- doc/manual/tutorial.erb
|
44
|
+
- doc/manual/parts/0000.txt
|
45
|
+
- doc/manual/parts/0001.txt
|
46
|
+
- doc/manual/parts/0002.txt
|
47
|
+
- doc/manual/parts/0003.txt
|
48
|
+
- doc/manual/parts/0004.txt
|
49
|
+
- doc/manual/parts/0005.txt
|
50
|
+
- doc/manual/parts/0006.txt
|
51
|
+
- doc/manual/parts/0007.txt
|
52
|
+
- doc/manual/parts/0008.txt
|
53
|
+
- doc/manual/parts/0009.txt
|
54
|
+
- doc/manual/parts/0010.txt
|
55
|
+
- doc/manual/parts/0011.txt
|
56
|
+
- doc/manual/parts/0012.txt
|
57
|
+
- doc/manual/parts/0013.txt
|
58
|
+
- doc/manual/parts/0014.txt
|
59
|
+
- doc/manual/parts/0015.txt
|
60
|
+
- doc/manual/parts/0016.txt
|
61
|
+
- doc/manual/parts/0017.txt
|
62
|
+
- doc/manual/parts/0018.txt
|
63
|
+
- doc/manual/parts/0019.txt
|
64
|
+
- doc/manual/parts/0020.txt
|
65
|
+
- doc/manual/parts/0021.txt
|
66
|
+
- doc/manual/parts/0022.txt
|
67
|
+
- doc/manual/parts/0023.txt
|
68
|
+
- doc/manual/parts/0024.txt
|
69
|
+
- doc/manual/parts/0025.txt
|
70
|
+
- doc/manual/parts/0026.txt
|
71
|
+
- doc/manual/parts/0027.txt
|
72
|
+
- doc/manual/parts/0028.txt
|
73
|
+
- doc/manual/parts/0029.txt
|
74
|
+
- doc/manual/parts/0030.txt
|
75
|
+
- doc/manual/parts/0031.txt
|
76
|
+
- doc/manual/stylesheets/manual.css
|
77
|
+
- doc/manual/stylesheets/ruby.css
|
78
|
+
- lib/net
|
79
|
+
- lib/net/ssh
|
80
|
+
- lib/net/ssh.rb
|
81
|
+
- lib/net/ssh/connection
|
82
|
+
- lib/net/ssh/errors.rb
|
83
|
+
- lib/net/ssh/proxy
|
84
|
+
- lib/net/ssh/service
|
85
|
+
- lib/net/ssh/session.rb
|
86
|
+
- lib/net/ssh/transport
|
87
|
+
- lib/net/ssh/userauth
|
88
|
+
- lib/net/ssh/util
|
89
|
+
- lib/net/ssh/version.rb
|
90
|
+
- lib/net/ssh/connection/channel.rb
|
91
|
+
- lib/net/ssh/connection/constants.rb
|
92
|
+
- lib/net/ssh/connection/driver.rb
|
93
|
+
- lib/net/ssh/connection/services.rb
|
94
|
+
- lib/net/ssh/connection/term.rb
|
95
|
+
- lib/net/ssh/proxy/errors.rb
|
96
|
+
- lib/net/ssh/proxy/http.rb
|
97
|
+
- lib/net/ssh/proxy/socks4.rb
|
98
|
+
- lib/net/ssh/proxy/socks5.rb
|
99
|
+
- lib/net/ssh/service/forward
|
100
|
+
- lib/net/ssh/service/process
|
101
|
+
- lib/net/ssh/service/services.rb
|
102
|
+
- lib/net/ssh/service/shell
|
103
|
+
- lib/net/ssh/service/forward/driver.rb
|
104
|
+
- lib/net/ssh/service/forward/local-network-handler.rb
|
105
|
+
- lib/net/ssh/service/forward/remote-network-handler.rb
|
106
|
+
- lib/net/ssh/service/forward/services.rb
|
107
|
+
- lib/net/ssh/service/process/driver.rb
|
108
|
+
- lib/net/ssh/service/process/open.rb
|
109
|
+
- lib/net/ssh/service/process/popen3.rb
|
110
|
+
- lib/net/ssh/service/process/services.rb
|
111
|
+
- lib/net/ssh/service/shell/driver.rb
|
112
|
+
- lib/net/ssh/service/shell/services.rb
|
113
|
+
- lib/net/ssh/service/shell/shell.rb
|
114
|
+
- lib/net/ssh/service/shell/sync.rb
|
115
|
+
- lib/net/ssh/transport/algorithm-negotiator.rb
|
116
|
+
- lib/net/ssh/transport/compress
|
117
|
+
- lib/net/ssh/transport/constants.rb
|
118
|
+
- lib/net/ssh/transport/errors.rb
|
119
|
+
- lib/net/ssh/transport/identity-cipher.rb
|
120
|
+
- lib/net/ssh/transport/kex
|
121
|
+
- lib/net/ssh/transport/ossl
|
122
|
+
- lib/net/ssh/transport/packet-stream.rb
|
123
|
+
- lib/net/ssh/transport/services.rb
|
124
|
+
- lib/net/ssh/transport/session.rb
|
125
|
+
- lib/net/ssh/transport/version-negotiator.rb
|
126
|
+
- lib/net/ssh/transport/compress/compressor.rb
|
127
|
+
- lib/net/ssh/transport/compress/decompressor.rb
|
128
|
+
- lib/net/ssh/transport/compress/none-compressor.rb
|
129
|
+
- lib/net/ssh/transport/compress/none-decompressor.rb
|
130
|
+
- lib/net/ssh/transport/compress/services.rb
|
131
|
+
- lib/net/ssh/transport/compress/zlib-compressor.rb
|
132
|
+
- lib/net/ssh/transport/compress/zlib-decompressor.rb
|
133
|
+
- lib/net/ssh/transport/kex/dh-gex.rb
|
134
|
+
- lib/net/ssh/transport/kex/dh.rb
|
135
|
+
- lib/net/ssh/transport/kex/services.rb
|
136
|
+
- lib/net/ssh/transport/ossl/buffer-factory.rb
|
137
|
+
- lib/net/ssh/transport/ossl/buffer.rb
|
138
|
+
- lib/net/ssh/transport/ossl/cipher-factory.rb
|
139
|
+
- lib/net/ssh/transport/ossl/digest-factory.rb
|
140
|
+
- lib/net/ssh/transport/ossl/hmac
|
141
|
+
- lib/net/ssh/transport/ossl/hmac-factory.rb
|
142
|
+
- lib/net/ssh/transport/ossl/key-factory.rb
|
143
|
+
- lib/net/ssh/transport/ossl/services.rb
|
144
|
+
- lib/net/ssh/transport/ossl/hmac/hmac.rb
|
145
|
+
- lib/net/ssh/transport/ossl/hmac/md5-96.rb
|
146
|
+
- lib/net/ssh/transport/ossl/hmac/md5.rb
|
147
|
+
- lib/net/ssh/transport/ossl/hmac/none.rb
|
148
|
+
- lib/net/ssh/transport/ossl/hmac/services.rb
|
149
|
+
- lib/net/ssh/transport/ossl/hmac/sha1-96.rb
|
150
|
+
- lib/net/ssh/transport/ossl/hmac/sha1.rb
|
151
|
+
- lib/net/ssh/userauth/agent.rb
|
152
|
+
- lib/net/ssh/userauth/constants.rb
|
153
|
+
- lib/net/ssh/userauth/driver.rb
|
154
|
+
- lib/net/ssh/userauth/methods
|
155
|
+
- lib/net/ssh/userauth/pageant.rb
|
156
|
+
- lib/net/ssh/userauth/services.rb
|
157
|
+
- lib/net/ssh/userauth/userkeys.rb
|
158
|
+
- lib/net/ssh/userauth/methods/hostbased.rb
|
159
|
+
- lib/net/ssh/userauth/methods/keyboard-interactive.rb
|
160
|
+
- lib/net/ssh/userauth/methods/password.rb
|
161
|
+
- lib/net/ssh/userauth/methods/publickey.rb
|
162
|
+
- lib/net/ssh/userauth/methods/services.rb
|
163
|
+
- lib/net/ssh/util/buffer.rb
|
164
|
+
- lib/net/ssh/util/openssl.rb
|
165
|
+
- lib/net/ssh/util/prompter.rb
|
166
|
+
- examples/channel-demo.rb
|
167
|
+
- examples/port-forward.rb
|
168
|
+
- examples/process-demo.rb
|
169
|
+
- examples/remote-net-port-forward.rb
|
170
|
+
- examples/remote-port-forward.rb
|
171
|
+
- examples/shell-demo.rb
|
172
|
+
- examples/ssh-client.rb
|
173
|
+
- examples/sync-shell-demo.rb
|
174
|
+
- examples/tail-demo.rb
|
175
|
+
- test/ALL-TESTS.rb
|
176
|
+
- test/connection
|
177
|
+
- test/proxy
|
178
|
+
- test/service
|
179
|
+
- test/tc_integration.rb
|
180
|
+
- test/transport
|
181
|
+
- test/userauth
|
182
|
+
- test/util
|
183
|
+
- test/connection/tc_channel.rb
|
184
|
+
- test/connection/tc_driver.rb
|
185
|
+
- test/connection/tc_integration.rb
|
186
|
+
- test/proxy/tc_http.rb
|
187
|
+
- test/proxy/tc_socks4.rb
|
188
|
+
- test/proxy/tc_socks5.rb
|
189
|
+
- test/service/forward
|
190
|
+
- test/service/process
|
191
|
+
- test/service/forward/tc_driver.rb
|
192
|
+
- test/service/forward/tc_local_network_handler.rb
|
193
|
+
- test/service/forward/tc_remote_network_handler.rb
|
194
|
+
- test/service/process/tc_driver.rb
|
195
|
+
- test/service/process/tc_integration.rb
|
196
|
+
- test/service/process/tc_open.rb
|
197
|
+
- test/service/process/tc_popen3.rb
|
198
|
+
- test/transport/compress
|
199
|
+
- test/transport/kex
|
200
|
+
- test/transport/ossl
|
201
|
+
- test/transport/tc_algorithm_negotiator.rb
|
202
|
+
- test/transport/tc_identity_cipher.rb
|
203
|
+
- test/transport/tc_integration.rb
|
204
|
+
- test/transport/tc_packet_stream.rb
|
205
|
+
- test/transport/tc_session.rb
|
206
|
+
- test/transport/tc_version_negotiator.rb
|
207
|
+
- test/transport/compress/tc_none_compress.rb
|
208
|
+
- test/transport/compress/tc_none_decompress.rb
|
209
|
+
- test/transport/compress/tc_zlib_compress.rb
|
210
|
+
- test/transport/compress/tc_zlib_decompress.rb
|
211
|
+
- test/transport/kex/tc_dh.rb
|
212
|
+
- test/transport/kex/tc_dh_gex.rb
|
213
|
+
- test/transport/ossl/fixtures
|
214
|
+
- test/transport/ossl/hmac
|
215
|
+
- test/transport/ossl/tc_buffer.rb
|
216
|
+
- test/transport/ossl/tc_buffer_factory.rb
|
217
|
+
- test/transport/ossl/tc_cipher_factory.rb
|
218
|
+
- test/transport/ossl/tc_digest_factory.rb
|
219
|
+
- test/transport/ossl/tc_hmac_factory.rb
|
220
|
+
- test/transport/ossl/tc_key_factory.rb
|
221
|
+
- test/transport/ossl/fixtures/dsa-encrypted
|
222
|
+
- test/transport/ossl/fixtures/dsa-encrypted-bad
|
223
|
+
- test/transport/ossl/fixtures/dsa-unencrypted
|
224
|
+
- test/transport/ossl/fixtures/dsa-unencrypted-bad
|
225
|
+
- test/transport/ossl/fixtures/dsa-unencrypted.pub
|
226
|
+
- test/transport/ossl/fixtures/not-a-private-key
|
227
|
+
- test/transport/ossl/fixtures/not-supported
|
228
|
+
- test/transport/ossl/fixtures/rsa-encrypted
|
229
|
+
- test/transport/ossl/fixtures/rsa-encrypted-bad
|
230
|
+
- test/transport/ossl/fixtures/rsa-unencrypted
|
231
|
+
- test/transport/ossl/fixtures/rsa-unencrypted-bad
|
232
|
+
- test/transport/ossl/fixtures/rsa-unencrypted.pub
|
233
|
+
- test/transport/ossl/hmac/tc_hmac.rb
|
234
|
+
- test/transport/ossl/hmac/tc_md5.rb
|
235
|
+
- test/transport/ossl/hmac/tc_md5_96.rb
|
236
|
+
- test/transport/ossl/hmac/tc_none.rb
|
237
|
+
- test/transport/ossl/hmac/tc_sha1.rb
|
238
|
+
- test/transport/ossl/hmac/tc_sha1_96.rb
|
239
|
+
- test/userauth/methods
|
240
|
+
- test/userauth/tc_agent.rb
|
241
|
+
- test/userauth/tc_driver.rb
|
242
|
+
- test/userauth/tc_integration.rb
|
243
|
+
- test/userauth/tc_userkeys.rb
|
244
|
+
- test/userauth/methods/tc_hostbased.rb
|
245
|
+
- test/userauth/methods/tc_password.rb
|
246
|
+
- test/userauth/methods/tc_publickey.rb
|
247
|
+
- test/util/tc_buffer.rb
|
261
248
|
test_files:
|
262
|
-
|
249
|
+
- test/ALL-TESTS.rb
|
263
250
|
rdoc_options: []
|
251
|
+
|
264
252
|
extra_rdoc_files: []
|
253
|
+
|
265
254
|
executables: []
|
255
|
+
|
266
256
|
extensions: []
|
257
|
+
|
267
258
|
requirements: []
|
259
|
+
|
268
260
|
dependencies:
|
269
|
-
|
270
|
-
|
271
|
-
|
272
|
-
|
273
|
-
|
274
|
-
|
275
|
-
|
276
|
-
|
277
|
-
|
278
|
-
version:
|
261
|
+
- !ruby/object:Gem::Dependency
|
262
|
+
name: needle
|
263
|
+
version_requirement:
|
264
|
+
version_requirements: !ruby/object:Gem::Version::Requirement
|
265
|
+
requirements:
|
266
|
+
- - ">="
|
267
|
+
- !ruby/object:Gem::Version
|
268
|
+
version: 1.2.0
|
269
|
+
version:
|