net-ssh 0.5.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (179) hide show
  1. data/doc/LICENSE-BSD +27 -0
  2. data/doc/LICENSE-GPL +280 -0
  3. data/doc/LICENSE-RUBY +56 -0
  4. data/doc/README +13 -0
  5. data/doc/manual-html/chapter-1.html +333 -0
  6. data/doc/manual-html/chapter-2.html +455 -0
  7. data/doc/manual-html/chapter-3.html +413 -0
  8. data/doc/manual-html/chapter-4.html +353 -0
  9. data/doc/manual-html/chapter-5.html +393 -0
  10. data/doc/manual-html/chapter-6.html +296 -0
  11. data/doc/manual-html/index.html +217 -0
  12. data/doc/manual-html/manual.css +192 -0
  13. data/doc/manual/chapter.erb +18 -0
  14. data/doc/manual/example.erb +18 -0
  15. data/doc/manual/index.erb +29 -0
  16. data/doc/manual/manual.css +192 -0
  17. data/doc/manual/manual.rb +240 -0
  18. data/doc/manual/manual.yml +67 -0
  19. data/doc/manual/page.erb +87 -0
  20. data/doc/manual/parts/channels_callbacks.txt +32 -0
  21. data/doc/manual/parts/channels_loop.txt +14 -0
  22. data/doc/manual/parts/channels_open.txt +20 -0
  23. data/doc/manual/parts/channels_operations.txt +15 -0
  24. data/doc/manual/parts/channels_types.txt +3 -0
  25. data/doc/manual/parts/channels_what_are.txt +7 -0
  26. data/doc/manual/parts/exec_channels.txt +28 -0
  27. data/doc/manual/parts/exec_open.txt +51 -0
  28. data/doc/manual/parts/exec_popen3.txt +35 -0
  29. data/doc/manual/parts/forward_direct.txt +37 -0
  30. data/doc/manual/parts/forward_handlers.txt +16 -0
  31. data/doc/manual/parts/forward_intro.txt +18 -0
  32. data/doc/manual/parts/forward_local.txt +18 -0
  33. data/doc/manual/parts/forward_remote.txt +14 -0
  34. data/doc/manual/parts/intro_author.txt +1 -0
  35. data/doc/manual/parts/intro_getting.txt +39 -0
  36. data/doc/manual/parts/intro_license.txt +6 -0
  37. data/doc/manual/parts/intro_support.txt +7 -0
  38. data/doc/manual/parts/intro_what_is.txt +7 -0
  39. data/doc/manual/parts/intro_what_is_not.txt +3 -0
  40. data/doc/manual/parts/proxy_http.txt +52 -0
  41. data/doc/manual/parts/proxy_intro.txt +1 -0
  42. data/doc/manual/parts/proxy_socks.txt +23 -0
  43. data/doc/manual/parts/session_key.txt +66 -0
  44. data/doc/manual/parts/session_options.txt +42 -0
  45. data/doc/manual/parts/session_session.txt +14 -0
  46. data/doc/manual/parts/session_start.txt +49 -0
  47. data/doc/manual/tutorial.erb +30 -0
  48. data/examples/channel-demo.rb +81 -0
  49. data/examples/port-forward.rb +51 -0
  50. data/examples/process-demo.rb +91 -0
  51. data/examples/remote-net-port-forward.rb +45 -0
  52. data/examples/remote-port-forward.rb +80 -0
  53. data/examples/tail-demo.rb +49 -0
  54. data/lib/net/ssh.rb +52 -0
  55. data/lib/net/ssh/connection/channel.rb +411 -0
  56. data/lib/net/ssh/connection/constants.rb +47 -0
  57. data/lib/net/ssh/connection/driver.rb +343 -0
  58. data/lib/net/ssh/connection/services.rb +72 -0
  59. data/lib/net/ssh/connection/term.rb +90 -0
  60. data/lib/net/ssh/errors.rb +27 -0
  61. data/lib/net/ssh/proxy/errors.rb +34 -0
  62. data/lib/net/ssh/proxy/http.rb +126 -0
  63. data/lib/net/ssh/proxy/socks4.rb +83 -0
  64. data/lib/net/ssh/proxy/socks5.rb +160 -0
  65. data/lib/net/ssh/service/forward/driver.rb +319 -0
  66. data/lib/net/ssh/service/forward/local-network-handler.rb +74 -0
  67. data/lib/net/ssh/service/forward/remote-network-handler.rb +81 -0
  68. data/lib/net/ssh/service/forward/services.rb +76 -0
  69. data/lib/net/ssh/service/process/driver.rb +153 -0
  70. data/lib/net/ssh/service/process/open.rb +193 -0
  71. data/lib/net/ssh/service/process/popen3.rb +160 -0
  72. data/lib/net/ssh/service/process/services.rb +66 -0
  73. data/lib/net/ssh/service/services.rb +44 -0
  74. data/lib/net/ssh/session.rb +242 -0
  75. data/lib/net/ssh/transport/algorithm-negotiator.rb +267 -0
  76. data/lib/net/ssh/transport/compress/compressor.rb +53 -0
  77. data/lib/net/ssh/transport/compress/decompressor.rb +53 -0
  78. data/lib/net/ssh/transport/compress/none-compressor.rb +39 -0
  79. data/lib/net/ssh/transport/compress/none-decompressor.rb +39 -0
  80. data/lib/net/ssh/transport/compress/services.rb +68 -0
  81. data/lib/net/ssh/transport/compress/zlib-compressor.rb +60 -0
  82. data/lib/net/ssh/transport/compress/zlib-decompressor.rb +52 -0
  83. data/lib/net/ssh/transport/constants.rb +66 -0
  84. data/lib/net/ssh/transport/errors.rb +47 -0
  85. data/lib/net/ssh/transport/identity-cipher.rb +61 -0
  86. data/lib/net/ssh/transport/kex/dh-gex.rb +106 -0
  87. data/lib/net/ssh/transport/kex/dh.rb +231 -0
  88. data/lib/net/ssh/transport/kex/services.rb +60 -0
  89. data/lib/net/ssh/transport/ossl/buffer-factory.rb +52 -0
  90. data/lib/net/ssh/transport/ossl/buffer.rb +87 -0
  91. data/lib/net/ssh/transport/ossl/cipher-factory.rb +98 -0
  92. data/lib/net/ssh/transport/ossl/digest-factory.rb +51 -0
  93. data/lib/net/ssh/transport/ossl/hmac-factory.rb +71 -0
  94. data/lib/net/ssh/transport/ossl/hmac/hmac.rb +62 -0
  95. data/lib/net/ssh/transport/ossl/hmac/md5-96.rb +44 -0
  96. data/lib/net/ssh/transport/ossl/hmac/md5.rb +46 -0
  97. data/lib/net/ssh/transport/ossl/hmac/none.rb +46 -0
  98. data/lib/net/ssh/transport/ossl/hmac/services.rb +68 -0
  99. data/lib/net/ssh/transport/ossl/hmac/sha1-96.rb +44 -0
  100. data/lib/net/ssh/transport/ossl/hmac/sha1.rb +45 -0
  101. data/lib/net/ssh/transport/ossl/key-factory.rb +113 -0
  102. data/lib/net/ssh/transport/ossl/services.rb +149 -0
  103. data/lib/net/ssh/transport/packet-stream.rb +210 -0
  104. data/lib/net/ssh/transport/services.rb +146 -0
  105. data/lib/net/ssh/transport/session.rb +296 -0
  106. data/lib/net/ssh/transport/version-negotiator.rb +73 -0
  107. data/lib/net/ssh/userauth/agent.rb +218 -0
  108. data/lib/net/ssh/userauth/constants.rb +35 -0
  109. data/lib/net/ssh/userauth/driver.rb +176 -0
  110. data/lib/net/ssh/userauth/methods/hostbased.rb +119 -0
  111. data/lib/net/ssh/userauth/methods/password.rb +70 -0
  112. data/lib/net/ssh/userauth/methods/publickey.rb +137 -0
  113. data/lib/net/ssh/userauth/methods/services.rb +63 -0
  114. data/lib/net/ssh/userauth/services.rb +126 -0
  115. data/lib/net/ssh/userauth/userkeys.rb +258 -0
  116. data/lib/net/ssh/util/buffer.rb +274 -0
  117. data/lib/net/ssh/util/openssl.rb +146 -0
  118. data/lib/net/ssh/util/prompter.rb +73 -0
  119. data/lib/net/ssh/version.rb +29 -0
  120. data/test/ALL-TESTS.rb +21 -0
  121. data/test/connection/tc_channel.rb +136 -0
  122. data/test/connection/tc_driver.rb +287 -0
  123. data/test/connection/tc_integration.rb +85 -0
  124. data/test/proxy/tc_http.rb +209 -0
  125. data/test/proxy/tc_socks4.rb +148 -0
  126. data/test/proxy/tc_socks5.rb +214 -0
  127. data/test/service/forward/tc_driver.rb +289 -0
  128. data/test/service/forward/tc_local_network_handler.rb +123 -0
  129. data/test/service/forward/tc_remote_network_handler.rb +108 -0
  130. data/test/service/process/tc_driver.rb +79 -0
  131. data/test/service/process/tc_integration.rb +117 -0
  132. data/test/service/process/tc_open.rb +179 -0
  133. data/test/service/process/tc_popen3.rb +164 -0
  134. data/test/tc_integration.rb +79 -0
  135. data/test/transport/compress/tc_none_compress.rb +41 -0
  136. data/test/transport/compress/tc_none_decompress.rb +45 -0
  137. data/test/transport/compress/tc_zlib_compress.rb +61 -0
  138. data/test/transport/compress/tc_zlib_decompress.rb +48 -0
  139. data/test/transport/kex/tc_dh.rb +304 -0
  140. data/test/transport/kex/tc_dh_gex.rb +70 -0
  141. data/test/transport/ossl/fixtures/dsa-encrypted +15 -0
  142. data/test/transport/ossl/fixtures/dsa-encrypted-bad +15 -0
  143. data/test/transport/ossl/fixtures/dsa-unencrypted +12 -0
  144. data/test/transport/ossl/fixtures/dsa-unencrypted-bad +12 -0
  145. data/test/transport/ossl/fixtures/dsa-unencrypted.pub +1 -0
  146. data/test/transport/ossl/fixtures/not-a-private-key +4 -0
  147. data/test/transport/ossl/fixtures/not-supported +2 -0
  148. data/test/transport/ossl/fixtures/rsa-encrypted +18 -0
  149. data/test/transport/ossl/fixtures/rsa-encrypted-bad +18 -0
  150. data/test/transport/ossl/fixtures/rsa-unencrypted +15 -0
  151. data/test/transport/ossl/fixtures/rsa-unencrypted-bad +15 -0
  152. data/test/transport/ossl/fixtures/rsa-unencrypted.pub +1 -0
  153. data/test/transport/ossl/hmac/tc_hmac.rb +58 -0
  154. data/test/transport/ossl/hmac/tc_md5.rb +50 -0
  155. data/test/transport/ossl/hmac/tc_md5_96.rb +50 -0
  156. data/test/transport/ossl/hmac/tc_none.rb +50 -0
  157. data/test/transport/ossl/hmac/tc_sha1.rb +50 -0
  158. data/test/transport/ossl/hmac/tc_sha1_96.rb +50 -0
  159. data/test/transport/ossl/tc_buffer.rb +97 -0
  160. data/test/transport/ossl/tc_buffer_factory.rb +67 -0
  161. data/test/transport/ossl/tc_cipher_factory.rb +84 -0
  162. data/test/transport/ossl/tc_digest_factory.rb +39 -0
  163. data/test/transport/ossl/tc_hmac_factory.rb +72 -0
  164. data/test/transport/ossl/tc_key_factory.rb +199 -0
  165. data/test/transport/tc_algorithm_negotiator.rb +169 -0
  166. data/test/transport/tc_identity_cipher.rb +52 -0
  167. data/test/transport/tc_integration.rb +110 -0
  168. data/test/transport/tc_packet_stream.rb +183 -0
  169. data/test/transport/tc_session.rb +283 -0
  170. data/test/transport/tc_version_negotiator.rb +86 -0
  171. data/test/userauth/methods/tc_hostbased.rb +136 -0
  172. data/test/userauth/methods/tc_password.rb +89 -0
  173. data/test/userauth/methods/tc_publickey.rb +167 -0
  174. data/test/userauth/tc_agent.rb +223 -0
  175. data/test/userauth/tc_driver.rb +190 -0
  176. data/test/userauth/tc_integration.rb +81 -0
  177. data/test/userauth/tc_userkeys.rb +265 -0
  178. data/test/util/tc_buffer.rb +217 -0
  179. metadata +256 -0
@@ -0,0 +1,217 @@
1
+ #--
2
+ # =============================================================================
3
+ # Copyright (c) 2004, Jamis Buck (jgb3@email.byu.edu)
4
+ # All rights reserved.
5
+ #
6
+ # This source file is distributed as part of the Net::SSH Secure Shell Client
7
+ # library for Ruby. This file (and the library as a whole) may be used only as
8
+ # allowed by either the BSD license, or the Ruby license (or, by association
9
+ # with the Ruby license, the GPL). See the "doc" subdirectory of the Net::SSH
10
+ # distribution for the texts of these licenses.
11
+ # -----------------------------------------------------------------------------
12
+ # net-ssh website : http://net-ssh.rubyforge.org
13
+ # project website: http://rubyforge.org/projects/net-ssh
14
+ # =============================================================================
15
+ #++
16
+
17
+ $:.unshift "../../lib"
18
+ require 'test/unit'
19
+ require 'net/ssh/util/buffer'
20
+ require 'net/ssh/util/openssl'
21
+
22
+ class BufferTester
23
+
24
+ def initialize( test_case, buffer )
25
+ @buffer = buffer
26
+ @test_case = test_case
27
+ end
28
+
29
+ def run_tests
30
+ methods.each do |meth|
31
+ next unless meth =~ /^test_/
32
+ @buffer.clear!
33
+ send meth
34
+ end
35
+ end
36
+
37
+ end
38
+
39
+ class WriteBufferTester < BufferTester
40
+
41
+ def test_write
42
+ @buffer.write "hello", "\x1\x2\x3\x4"
43
+ @test_case.assert_equal( "hello\x1\x2\x3\x4", @buffer.content )
44
+ end
45
+
46
+ def test_write_int64
47
+ @buffer.write_int64 0x1234567898765432
48
+ expect = "\x12\x34\x56\x78\x98\x76\x54\x32"
49
+ @test_case.assert_equal( expect, @buffer.content )
50
+ @buffer.write_int64 1, 2
51
+ expect << "\x00\x00\x00\x00\x00\x00\x00\x01"
52
+ expect << "\x00\x00\x00\x00\x00\x00\x00\x02"
53
+ @test_case.assert_equal( expect, @buffer.content )
54
+ end
55
+
56
+ def test_write_long
57
+ @buffer.write_long 0x12ABCDEF, 7
58
+ @test_case.assert_equal( "\x12\xAB\xCD\xEF\x00\x00\x00\x07", @buffer.content )
59
+ end
60
+
61
+ def test_write_short
62
+ @buffer.write_short 0x12AB, 7
63
+ @test_case.assert_equal( "\x12\xAB\x00\x07", @buffer.content )
64
+ end
65
+
66
+ def test_write_byte
67
+ @buffer.write_byte 0x12, 0xAB, 7
68
+ @test_case.assert_equal( "\x12\xAB\x07", @buffer.content )
69
+ end
70
+
71
+ def test_write_string
72
+ @buffer.write_string "hello", "\x01\x02\x03\x04\x05\x06"
73
+ @test_case.assert_equal( "\x00\x00\x00\x05hello\x00\x00\x00\x06\x01\x02\x03\x04\x05\x06", @buffer.content )
74
+ end
75
+
76
+ def test_write_bool
77
+ @buffer.write_bool true, false
78
+ @test_case.assert_equal( "\x01\x00", @buffer.content )
79
+ end
80
+
81
+ def test_write_bignum
82
+ bn = OpenSSL::BN.new( 1 )
83
+ @buffer.write_bignum OpenSSL::BN.new( 1 ),
84
+ OpenSSL::BN.new( 0x12345678 ),
85
+ OpenSSL::BN.new( 0xABCDEF123456 )
86
+ expect = "\x00\x00\x00\x01\x01" +
87
+ "\x00\x00\x00\x04\x12\x34\x56\x78" +
88
+ "\x00\x00\x00\x07\x00\xAB\xCD\xEF\x12\x34\x56"
89
+ @test_case.assert_equal( expect, @buffer.content )
90
+ end
91
+
92
+ def test_write_key
93
+ key = OpenSSL::PKey::DSA.new
94
+ key.p, key.q, key.g, key.pub_key = 1, 2, 3, 4
95
+ @buffer.write_key key
96
+ key = OpenSSL::PKey::RSA.new
97
+ key.e, key.n = 1, 2
98
+ @buffer.write_key key
99
+
100
+ expect = "\x00\x00\x00\x07ssh-dss" +
101
+ "\x00\x00\x00\x01\x01" +
102
+ "\x00\x00\x00\x01\x02" +
103
+ "\x00\x00\x00\x01\x03" +
104
+ "\x00\x00\x00\x01\x04" +
105
+ "\x00\x00\x00\x07ssh-rsa" +
106
+ "\x00\x00\x00\x01\x01" +
107
+ "\x00\x00\x00\x01\x02"
108
+ @test_case.assert_equal( expect, @buffer.content )
109
+ end
110
+
111
+ end
112
+
113
+ class ReadBufferTester < BufferTester
114
+
115
+ def test_append
116
+ @buffer.append "some text"
117
+ @test_case.assert_equal( "some text", @buffer.content )
118
+ @buffer.append "some more text"
119
+ @test_case.assert_equal( "some textsome more text", @buffer.content )
120
+ end
121
+
122
+ def test_remainder_as_buffer
123
+ @buffer.append "\x01\x02\x03\x04\x05\x06\x07"
124
+ @buffer.read_byte
125
+ b = @buffer.remainder_as_buffer
126
+ @test_case.assert_equal( "\x02\x03\x04\x05\x06\x07", b.content )
127
+ end
128
+
129
+ def test_read
130
+ @buffer.append "\x01\x02\x03\x04\x05\x06\x07"
131
+ @test_case.assert_equal( "\x01", @buffer.read(1) )
132
+ @test_case.assert_equal( "\x02\x03", @buffer.read(2) )
133
+ @test_case.assert_equal( "\x04\x05\x06\x07", @buffer.read )
134
+ end
135
+
136
+ def test_read_int64
137
+ @buffer.append "\x12\x34\x56\x78\x98\x76\x54\x32"
138
+ i = @buffer.read_int64
139
+ @test_case.assert_equal( 0x1234567898765432, i )
140
+ end
141
+
142
+ def test_read_long
143
+ @buffer.append "\x12\x34\x56\x78\x00\x00\x00\x05"
144
+ i = @buffer.read_long
145
+ j = @buffer.read_long
146
+ k = @buffer.read_long
147
+ @test_case.assert_equal i, 0x12345678
148
+ @test_case.assert_equal j, 5
149
+ @test_case.assert_nil k
150
+ end
151
+
152
+ def test_read_short
153
+ @buffer.append "\x12\x34\x00\x05"
154
+ i = @buffer.read_short
155
+ j = @buffer.read_short
156
+ @test_case.assert_equal i, 0x1234
157
+ @test_case.assert_equal j, 5
158
+ end
159
+
160
+ def test_read_string
161
+ @buffer.append "\x00\x00\x00\x05hello, world"
162
+ s = @buffer.read_string
163
+ @test_case.assert_equal s, "hello"
164
+ end
165
+
166
+ def test_read_bool
167
+ @buffer.append "\x01\x00"
168
+ a = @buffer.read_bool
169
+ b = @buffer.read_bool
170
+ @test_case.assert a
171
+ @test_case.assert !b
172
+ end
173
+
174
+ end
175
+
176
+
177
+ class TC_WriterBuffer < Test::Unit::TestCase
178
+
179
+ def test_buffer
180
+ tester = WriteBufferTester.new( self, Net::SSH::Util::WriterBuffer.new )
181
+ tester.run_tests
182
+ end
183
+
184
+ end
185
+
186
+ class TC_ReaderBuffer < Test::Unit::TestCase
187
+
188
+ def test_buffer
189
+ tester = ReadBufferTester.new( self, Net::SSH::Util::ReaderBuffer.new( "" ) )
190
+ tester.run_tests
191
+ end
192
+
193
+ end
194
+
195
+ class TC_Buffer < Test::Unit::TestCase
196
+
197
+ def test_write_buffer
198
+ tester = WriteBufferTester.new( self, Net::SSH::Util::Buffer.new )
199
+ tester.run_tests
200
+ end
201
+
202
+ def test_read_buffer
203
+ tester = ReadBufferTester.new( self, Net::SSH::Util::Buffer.new )
204
+ tester.run_tests
205
+ end
206
+
207
+ end
208
+
209
+ if $0 == __FILE__
210
+ puts <<EOF
211
+ ==========================================================================
212
+ NOTE: this file will run the tests for the BUFFER routines. If you want to
213
+ run a comprehensive test involving all of the suites written for Net::SSH,
214
+ run the 'tests.rb' file instead.
215
+ ==========================================================================
216
+ EOF
217
+ end
metadata ADDED
@@ -0,0 +1,256 @@
1
+ --- !ruby/object:Gem::Specification
2
+ rubygems_version: 0.8.1
3
+ specification_version: 1
4
+ name: net-ssh
5
+ version: !ruby/object:Gem::Version
6
+ version: 0.5.0
7
+ date: 2004-11-23
8
+ summary: Net::SSH is a pure-Ruby implementation of the SSH2 client protocol.
9
+ require_paths:
10
+ - lib
11
+ author: Jamis Buck
12
+ email: jgb3@email.byu.edu
13
+ homepage: http://net-ssh.rubyforge.org
14
+ rubyforge_project:
15
+ description:
16
+ autorequire: net/ssh
17
+ default_executable:
18
+ bindir: bin
19
+ has_rdoc: true
20
+ required_ruby_version: !ruby/object:Gem::Version::Requirement
21
+ requirements:
22
+ -
23
+ - ">"
24
+ - !ruby/object:Gem::Version
25
+ version: 0.0.0
26
+ version:
27
+ platform: ruby
28
+ files:
29
+ - doc/README
30
+ - doc/LICENSE-RUBY
31
+ - doc/manual-html
32
+ - doc/LICENSE-BSD
33
+ - doc/LICENSE-GPL
34
+ - doc/manual
35
+ - doc/manual-html/manual.css
36
+ - doc/manual-html/chapter-1.html
37
+ - doc/manual-html/chapter-2.html
38
+ - doc/manual-html/chapter-3.html
39
+ - doc/manual-html/chapter-4.html
40
+ - doc/manual-html/chapter-5.html
41
+ - doc/manual-html/chapter-6.html
42
+ - doc/manual-html/index.html
43
+ - doc/manual/manual.css
44
+ - doc/manual/manual.yml
45
+ - doc/manual/tutorial.erb
46
+ - doc/manual/parts
47
+ - doc/manual/chapter.erb
48
+ - doc/manual/page.erb
49
+ - doc/manual/example.erb
50
+ - doc/manual/index.erb
51
+ - doc/manual/manual.rb
52
+ - doc/manual/parts/channels_what_are.txt
53
+ - doc/manual/parts/forward_handlers.txt
54
+ - doc/manual/parts/exec_open.txt
55
+ - doc/manual/parts/session_start.txt
56
+ - doc/manual/parts/exec_channels.txt
57
+ - doc/manual/parts/proxy_socks.txt
58
+ - doc/manual/parts/forward_intro.txt
59
+ - doc/manual/parts/session_options.txt
60
+ - doc/manual/parts/intro_license.txt
61
+ - doc/manual/parts/intro_what_is_not.txt
62
+ - doc/manual/parts/proxy_intro.txt
63
+ - doc/manual/parts/proxy_http.txt
64
+ - doc/manual/parts/session_key.txt
65
+ - doc/manual/parts/channels_open.txt
66
+ - doc/manual/parts/channels_callbacks.txt
67
+ - doc/manual/parts/intro_getting.txt
68
+ - doc/manual/parts/intro_what_is.txt
69
+ - doc/manual/parts/intro_support.txt
70
+ - doc/manual/parts/channels_loop.txt
71
+ - doc/manual/parts/forward_remote.txt
72
+ - doc/manual/parts/channels_types.txt
73
+ - doc/manual/parts/forward_local.txt
74
+ - doc/manual/parts/channels_operations.txt
75
+ - doc/manual/parts/forward_direct.txt
76
+ - doc/manual/parts/session_session.txt
77
+ - doc/manual/parts/exec_popen3.txt
78
+ - doc/manual/parts/intro_author.txt
79
+ - lib/net
80
+ - lib/net/ssh
81
+ - lib/net/ssh.rb
82
+ - lib/net/ssh/util
83
+ - lib/net/ssh/transport
84
+ - lib/net/ssh/proxy
85
+ - lib/net/ssh/service
86
+ - lib/net/ssh/connection
87
+ - lib/net/ssh/session.rb
88
+ - lib/net/ssh/userauth
89
+ - lib/net/ssh/version.rb
90
+ - lib/net/ssh/errors.rb
91
+ - lib/net/ssh/util/openssl.rb
92
+ - lib/net/ssh/util/buffer.rb
93
+ - lib/net/ssh/util/prompter.rb
94
+ - lib/net/ssh/transport/kex
95
+ - lib/net/ssh/transport/ossl
96
+ - lib/net/ssh/transport/identity-cipher.rb
97
+ - lib/net/ssh/transport/algorithm-negotiator.rb
98
+ - lib/net/ssh/transport/compress
99
+ - lib/net/ssh/transport/constants.rb
100
+ - lib/net/ssh/transport/packet-stream.rb
101
+ - lib/net/ssh/transport/services.rb
102
+ - lib/net/ssh/transport/session.rb
103
+ - lib/net/ssh/transport/version-negotiator.rb
104
+ - lib/net/ssh/transport/errors.rb
105
+ - lib/net/ssh/transport/kex/dh.rb
106
+ - lib/net/ssh/transport/kex/dh-gex.rb
107
+ - lib/net/ssh/transport/kex/services.rb
108
+ - lib/net/ssh/transport/ossl/hmac
109
+ - lib/net/ssh/transport/ossl/buffer.rb
110
+ - lib/net/ssh/transport/ossl/key-factory.rb
111
+ - lib/net/ssh/transport/ossl/cipher-factory.rb
112
+ - lib/net/ssh/transport/ossl/buffer-factory.rb
113
+ - lib/net/ssh/transport/ossl/digest-factory.rb
114
+ - lib/net/ssh/transport/ossl/services.rb
115
+ - lib/net/ssh/transport/ossl/hmac-factory.rb
116
+ - lib/net/ssh/transport/ossl/hmac/sha1-96.rb
117
+ - lib/net/ssh/transport/ossl/hmac/md5-96.rb
118
+ - lib/net/ssh/transport/ossl/hmac/sha1.rb
119
+ - lib/net/ssh/transport/ossl/hmac/md5.rb
120
+ - lib/net/ssh/transport/ossl/hmac/none.rb
121
+ - lib/net/ssh/transport/ossl/hmac/hmac.rb
122
+ - lib/net/ssh/transport/ossl/hmac/services.rb
123
+ - lib/net/ssh/transport/compress/compressor.rb
124
+ - lib/net/ssh/transport/compress/zlib-compressor.rb
125
+ - lib/net/ssh/transport/compress/decompressor.rb
126
+ - lib/net/ssh/transport/compress/zlib-decompressor.rb
127
+ - lib/net/ssh/transport/compress/none-decompressor.rb
128
+ - lib/net/ssh/transport/compress/services.rb
129
+ - lib/net/ssh/transport/compress/none-compressor.rb
130
+ - lib/net/ssh/proxy/http.rb
131
+ - lib/net/ssh/proxy/socks4.rb
132
+ - lib/net/ssh/proxy/socks5.rb
133
+ - lib/net/ssh/proxy/errors.rb
134
+ - lib/net/ssh/service/forward
135
+ - lib/net/ssh/service/services.rb
136
+ - lib/net/ssh/service/process
137
+ - lib/net/ssh/service/forward/driver.rb
138
+ - lib/net/ssh/service/forward/remote-network-handler.rb
139
+ - lib/net/ssh/service/forward/services.rb
140
+ - lib/net/ssh/service/forward/local-network-handler.rb
141
+ - lib/net/ssh/service/process/driver.rb
142
+ - lib/net/ssh/service/process/services.rb
143
+ - lib/net/ssh/service/process/open.rb
144
+ - lib/net/ssh/service/process/popen3.rb
145
+ - lib/net/ssh/connection/driver.rb
146
+ - lib/net/ssh/connection/term.rb
147
+ - lib/net/ssh/connection/constants.rb
148
+ - lib/net/ssh/connection/services.rb
149
+ - lib/net/ssh/connection/channel.rb
150
+ - lib/net/ssh/userauth/agent.rb
151
+ - lib/net/ssh/userauth/driver.rb
152
+ - lib/net/ssh/userauth/userkeys.rb
153
+ - lib/net/ssh/userauth/methods
154
+ - lib/net/ssh/userauth/constants.rb
155
+ - lib/net/ssh/userauth/services.rb
156
+ - lib/net/ssh/userauth/methods/hostbased.rb
157
+ - lib/net/ssh/userauth/methods/publickey.rb
158
+ - lib/net/ssh/userauth/methods/password.rb
159
+ - lib/net/ssh/userauth/methods/services.rb
160
+ - examples/port-forward.rb
161
+ - examples/process-demo.rb
162
+ - examples/remote-port-forward.rb
163
+ - examples/tail-demo.rb
164
+ - examples/remote-net-port-forward.rb
165
+ - examples/channel-demo.rb
166
+ - test/util
167
+ - test/transport
168
+ - test/proxy
169
+ - test/service
170
+ - test/tc_integration.rb
171
+ - test/connection
172
+ - test/ALL-TESTS.rb
173
+ - test/userauth
174
+ - test/util/tc_buffer.rb
175
+ - test/transport/kex
176
+ - test/transport/ossl
177
+ - test/transport/tc_session.rb
178
+ - test/transport/tc_packet_stream.rb
179
+ - test/transport/tc_integration.rb
180
+ - test/transport/tc_identity_cipher.rb
181
+ - test/transport/tc_algorithm_negotiator.rb
182
+ - test/transport/tc_version_negotiator.rb
183
+ - test/transport/compress
184
+ - test/transport/kex/tc_dh.rb
185
+ - test/transport/kex/tc_dh_gex.rb
186
+ - test/transport/ossl/hmac
187
+ - test/transport/ossl/tc_hmac_factory.rb
188
+ - test/transport/ossl/tc_key_factory.rb
189
+ - test/transport/ossl/tc_cipher_factory.rb
190
+ - test/transport/ossl/fixtures
191
+ - test/transport/ossl/tc_buffer.rb
192
+ - test/transport/ossl/tc_buffer_factory.rb
193
+ - test/transport/ossl/tc_digest_factory.rb
194
+ - test/transport/ossl/hmac/tc_none.rb
195
+ - test/transport/ossl/hmac/tc_hmac.rb
196
+ - test/transport/ossl/hmac/tc_sha1_96.rb
197
+ - test/transport/ossl/hmac/tc_md5_96.rb
198
+ - test/transport/ossl/hmac/tc_md5.rb
199
+ - test/transport/ossl/hmac/tc_sha1.rb
200
+ - test/transport/ossl/fixtures/rsa-unencrypted-bad
201
+ - test/transport/ossl/fixtures/rsa-unencrypted.pub
202
+ - test/transport/ossl/fixtures/rsa-encrypted
203
+ - test/transport/ossl/fixtures/dsa-encrypted-bad
204
+ - test/transport/ossl/fixtures/rsa-unencrypted
205
+ - test/transport/ossl/fixtures/dsa-unencrypted
206
+ - test/transport/ossl/fixtures/not-supported
207
+ - test/transport/ossl/fixtures/rsa-encrypted-bad
208
+ - test/transport/ossl/fixtures/dsa-unencrypted-bad
209
+ - test/transport/ossl/fixtures/dsa-unencrypted.pub
210
+ - test/transport/ossl/fixtures/dsa-encrypted
211
+ - test/transport/ossl/fixtures/not-a-private-key
212
+ - test/transport/compress/tc_none_compress.rb
213
+ - test/transport/compress/tc_zlib_decompress.rb
214
+ - test/transport/compress/tc_zlib_compress.rb
215
+ - test/transport/compress/tc_none_decompress.rb
216
+ - test/proxy/tc_http.rb
217
+ - test/proxy/tc_socks4.rb
218
+ - test/proxy/tc_socks5.rb
219
+ - test/service/forward
220
+ - test/service/process
221
+ - test/service/forward/tc_local_network_handler.rb
222
+ - test/service/forward/tc_driver.rb
223
+ - test/service/forward/tc_remote_network_handler.rb
224
+ - test/service/process/tc_open.rb
225
+ - test/service/process/tc_integration.rb
226
+ - test/service/process/tc_popen3.rb
227
+ - test/service/process/tc_driver.rb
228
+ - test/connection/tc_channel.rb
229
+ - test/connection/tc_integration.rb
230
+ - test/connection/tc_driver.rb
231
+ - test/userauth/tc_agent.rb
232
+ - test/userauth/methods
233
+ - test/userauth/tc_integration.rb
234
+ - test/userauth/tc_driver.rb
235
+ - test/userauth/tc_userkeys.rb
236
+ - test/userauth/methods/tc_password.rb
237
+ - test/userauth/methods/tc_hostbased.rb
238
+ - test/userauth/methods/tc_publickey.rb
239
+ test_files:
240
+ - test/ALL-TESTS.rb
241
+ rdoc_options: []
242
+ extra_rdoc_files: []
243
+ executables: []
244
+ extensions: []
245
+ requirements: []
246
+ dependencies:
247
+ - !ruby/object:Gem::Dependency
248
+ name: needle
249
+ version_requirement:
250
+ version_requirements: !ruby/object:Gem::Version::Requirement
251
+ requirements:
252
+ -
253
+ - ">="
254
+ - !ruby/object:Gem::Version
255
+ version: 1.2.0
256
+ version: