net-ssh 1.1.4 → 2.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/CHANGELOG.rdoc +37 -0
- data/Manifest +101 -0
- data/README.rdoc +110 -0
- data/Rakefile +26 -0
- data/{THANKS → THANKS.rdoc} +2 -5
- data/lib/net/ssh.rb +189 -57
- data/lib/net/ssh/authentication/agent.rb +175 -0
- data/lib/net/ssh/authentication/constants.rb +18 -0
- data/lib/net/ssh/authentication/key_manager.rb +166 -0
- data/lib/net/ssh/authentication/methods/abstract.rb +60 -0
- data/lib/net/ssh/authentication/methods/hostbased.rb +71 -0
- data/lib/net/ssh/authentication/methods/keyboard_interactive.rb +66 -0
- data/lib/net/ssh/authentication/methods/password.rb +39 -0
- data/lib/net/ssh/authentication/methods/publickey.rb +92 -0
- data/lib/net/ssh/authentication/pageant.rb +176 -0
- data/lib/net/ssh/authentication/session.rb +116 -0
- data/lib/net/ssh/buffer.rb +339 -0
- data/lib/net/ssh/buffered_io.rb +149 -0
- data/lib/net/ssh/config.rb +173 -0
- data/lib/net/ssh/connection/channel.rb +575 -454
- data/lib/net/ssh/connection/constants.rb +31 -45
- data/lib/net/ssh/connection/session.rb +569 -0
- data/lib/net/ssh/connection/term.rb +176 -88
- data/lib/net/ssh/errors.rb +83 -61
- data/lib/net/ssh/key_factory.rb +85 -0
- data/lib/net/ssh/known_hosts.rb +129 -0
- data/lib/net/ssh/loggable.rb +61 -0
- data/lib/net/ssh/packet.rb +102 -0
- data/lib/net/ssh/prompt.rb +93 -0
- data/lib/net/ssh/proxy/errors.rb +8 -28
- data/lib/net/ssh/proxy/http.rb +75 -107
- data/lib/net/ssh/proxy/socks4.rb +35 -48
- data/lib/net/ssh/proxy/socks5.rb +76 -108
- data/lib/net/ssh/service/forward.rb +267 -0
- data/lib/net/ssh/test.rb +89 -0
- data/lib/net/ssh/test/channel.rb +129 -0
- data/lib/net/ssh/test/extensions.rb +152 -0
- data/lib/net/ssh/test/kex.rb +44 -0
- data/lib/net/ssh/test/local_packet.rb +51 -0
- data/lib/net/ssh/test/packet.rb +81 -0
- data/lib/net/ssh/test/remote_packet.rb +38 -0
- data/lib/net/ssh/test/script.rb +157 -0
- data/lib/net/ssh/test/socket.rb +59 -0
- data/lib/net/ssh/transport/algorithms.rb +384 -0
- data/lib/net/ssh/transport/cipher_factory.rb +72 -0
- data/lib/net/ssh/transport/constants.rb +22 -58
- data/lib/net/ssh/transport/hmac.rb +31 -0
- data/lib/net/ssh/transport/hmac/abstract.rb +48 -0
- data/lib/net/ssh/transport/hmac/md5.rb +12 -0
- data/lib/net/ssh/transport/hmac/md5_96.rb +11 -0
- data/lib/net/ssh/transport/hmac/none.rb +15 -0
- data/lib/net/ssh/transport/hmac/sha1.rb +13 -0
- data/lib/net/ssh/transport/hmac/sha1_96.rb +11 -0
- data/lib/net/ssh/transport/identity_cipher.rb +40 -0
- data/lib/net/ssh/transport/kex.rb +13 -0
- data/lib/net/ssh/transport/kex/diffie_hellman_group1_sha1.rb +208 -0
- data/lib/net/ssh/transport/kex/diffie_hellman_group_exchange_sha1.rb +77 -0
- data/lib/net/ssh/{util → transport}/openssl.rb +22 -40
- data/lib/net/ssh/transport/packet_stream.rb +230 -0
- data/lib/net/ssh/transport/server_version.rb +61 -0
- data/lib/net/ssh/transport/session.rb +225 -303
- data/lib/net/ssh/transport/state.rb +170 -0
- data/lib/net/ssh/verifiers/lenient.rb +30 -0
- data/lib/net/ssh/verifiers/null.rb +12 -0
- data/lib/net/ssh/verifiers/strict.rb +53 -0
- data/lib/net/ssh/version.rb +57 -26
- data/net-ssh.gemspec +54 -0
- data/setup.rb +1585 -0
- data/test/authentication/methods/common.rb +28 -0
- data/test/authentication/methods/test_abstract.rb +51 -0
- data/test/authentication/methods/test_hostbased.rb +108 -0
- data/test/authentication/methods/test_keyboard_interactive.rb +98 -0
- data/test/authentication/methods/test_password.rb +50 -0
- data/test/authentication/methods/test_publickey.rb +123 -0
- data/test/authentication/test_agent.rb +205 -0
- data/test/authentication/test_key_manager.rb +100 -0
- data/test/authentication/test_session.rb +93 -0
- data/test/common.rb +106 -0
- data/test/configs/exact_match +8 -0
- data/test/configs/wild_cards +14 -0
- data/test/connection/test_channel.rb +452 -0
- data/test/connection/test_session.rb +483 -0
- data/test/test_all.rb +6 -0
- data/test/test_buffer.rb +336 -0
- data/test/test_buffered_io.rb +63 -0
- data/test/test_config.rb +78 -0
- data/test/test_key_factory.rb +67 -0
- data/test/transport/hmac/test_md5.rb +34 -0
- data/test/transport/hmac/test_md5_96.rb +25 -0
- data/test/transport/hmac/test_none.rb +34 -0
- data/test/transport/hmac/test_sha1.rb +34 -0
- data/test/transport/hmac/test_sha1_96.rb +25 -0
- data/test/transport/kex/test_diffie_hellman_group1_sha1.rb +146 -0
- data/test/transport/kex/test_diffie_hellman_group_exchange_sha1.rb +92 -0
- data/test/transport/test_algorithms.rb +302 -0
- data/test/transport/test_cipher_factory.rb +163 -0
- data/test/transport/test_hmac.rb +34 -0
- data/test/transport/test_identity_cipher.rb +40 -0
- data/test/transport/test_packet_stream.rb +433 -0
- data/test/transport/test_server_version.rb +55 -0
- data/test/transport/test_session.rb +312 -0
- data/test/transport/test_state.rb +173 -0
- metadata +102 -253
- data/ChangeLog +0 -560
- data/LICENSE +0 -7
- data/NEWS +0 -152
- data/README +0 -14
- data/bin/rb-keygen +0 -210
- data/doc/LICENSE-BSD +0 -27
- data/doc/LICENSE-GPL +0 -280
- data/doc/LICENSE-RUBY +0 -56
- data/doc/manual-html/chapter-1.html +0 -388
- data/doc/manual-html/chapter-2.html +0 -552
- 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
- data/doc/manual/chapter.erb +0 -38
- data/doc/manual/example.erb +0 -18
- data/doc/manual/index.erb +0 -29
- data/doc/manual/manual.rb +0 -311
- data/doc/manual/manual.yml +0 -73
- data/doc/manual/page.erb +0 -87
- data/doc/manual/parts/0000.txt +0 -5
- data/doc/manual/parts/0001.txt +0 -3
- data/doc/manual/parts/0002.txt +0 -40
- data/doc/manual/parts/0003.txt +0 -6
- data/doc/manual/parts/0004.txt +0 -7
- data/doc/manual/parts/0005.txt +0 -1
- data/doc/manual/parts/0006.txt +0 -49
- data/doc/manual/parts/0007.txt +0 -67
- data/doc/manual/parts/0008.txt +0 -43
- data/doc/manual/parts/0009.txt +0 -14
- data/doc/manual/parts/0010.txt +0 -7
- data/doc/manual/parts/0011.txt +0 -14
- data/doc/manual/parts/0012.txt +0 -3
- data/doc/manual/parts/0013.txt +0 -20
- data/doc/manual/parts/0014.txt +0 -32
- data/doc/manual/parts/0015.txt +0 -14
- data/doc/manual/parts/0016.txt +0 -28
- data/doc/manual/parts/0017.txt +0 -50
- data/doc/manual/parts/0018.txt +0 -35
- data/doc/manual/parts/0019.txt +0 -7
- data/doc/manual/parts/0020.txt +0 -72
- data/doc/manual/parts/0021.txt +0 -50
- data/doc/manual/parts/0022.txt +0 -42
- data/doc/manual/parts/0023.txt +0 -51
- data/doc/manual/parts/0024.txt +0 -18
- data/doc/manual/parts/0025.txt +0 -18
- data/doc/manual/parts/0026.txt +0 -15
- data/doc/manual/parts/0027.txt +0 -37
- data/doc/manual/parts/0028.txt +0 -16
- data/doc/manual/parts/0029.txt +0 -1
- data/doc/manual/parts/0030.txt +0 -52
- data/doc/manual/parts/0031.txt +0 -25
- data/doc/manual/stylesheets/manual.css +0 -270
- data/doc/manual/stylesheets/ruby.css +0 -17
- data/doc/manual/tutorial.erb +0 -30
- data/examples/auth-forward.rb +0 -41
- data/examples/channel-demo.rb +0 -81
- data/examples/port-forward.rb +0 -51
- data/examples/process-demo.rb +0 -91
- data/examples/remote-net-port-forward.rb +0 -45
- data/examples/remote-port-forward.rb +0 -80
- data/examples/shell-demo.rb +0 -46
- data/examples/ssh-client.rb +0 -67
- data/examples/sync-shell-demo.rb +0 -69
- data/examples/tail-demo.rb +0 -49
- data/lib/net/ssh/connection/driver.rb +0 -446
- data/lib/net/ssh/connection/services.rb +0 -72
- data/lib/net/ssh/host-key-verifier.rb +0 -52
- data/lib/net/ssh/known-hosts.rb +0 -96
- data/lib/net/ssh/lenient-host-key-verifier.rb +0 -25
- data/lib/net/ssh/null-host-key-verifier.rb +0 -14
- data/lib/net/ssh/service/agentforward/driver.rb +0 -78
- data/lib/net/ssh/service/agentforward/services.rb +0 -41
- data/lib/net/ssh/service/forward/driver.rb +0 -319
- data/lib/net/ssh/service/forward/local-network-handler.rb +0 -71
- data/lib/net/ssh/service/forward/remote-network-handler.rb +0 -83
- data/lib/net/ssh/service/forward/services.rb +0 -76
- data/lib/net/ssh/service/process/driver.rb +0 -153
- data/lib/net/ssh/service/process/open.rb +0 -193
- data/lib/net/ssh/service/process/popen3.rb +0 -178
- data/lib/net/ssh/service/process/services.rb +0 -66
- data/lib/net/ssh/service/services.rb +0 -60
- data/lib/net/ssh/service/shell/driver.rb +0 -86
- data/lib/net/ssh/service/shell/services.rb +0 -54
- data/lib/net/ssh/service/shell/shell.rb +0 -222
- data/lib/net/ssh/service/shell/sync.rb +0 -114
- data/lib/net/ssh/session.rb +0 -305
- data/lib/net/ssh/transport/algorithm-negotiator.rb +0 -275
- data/lib/net/ssh/transport/compress/compressor.rb +0 -53
- data/lib/net/ssh/transport/compress/decompressor.rb +0 -53
- data/lib/net/ssh/transport/compress/none-compressor.rb +0 -39
- data/lib/net/ssh/transport/compress/none-decompressor.rb +0 -39
- data/lib/net/ssh/transport/compress/services.rb +0 -68
- data/lib/net/ssh/transport/compress/zlib-compressor.rb +0 -60
- data/lib/net/ssh/transport/compress/zlib-decompressor.rb +0 -52
- data/lib/net/ssh/transport/errors.rb +0 -47
- data/lib/net/ssh/transport/identity-cipher.rb +0 -61
- data/lib/net/ssh/transport/kex/dh-gex.rb +0 -106
- data/lib/net/ssh/transport/kex/dh.rb +0 -249
- data/lib/net/ssh/transport/kex/services.rb +0 -62
- data/lib/net/ssh/transport/ossl/buffer-factory.rb +0 -52
- data/lib/net/ssh/transport/ossl/buffer.rb +0 -87
- data/lib/net/ssh/transport/ossl/cipher-factory.rb +0 -98
- data/lib/net/ssh/transport/ossl/digest-factory.rb +0 -51
- data/lib/net/ssh/transport/ossl/hmac-factory.rb +0 -71
- data/lib/net/ssh/transport/ossl/hmac/hmac.rb +0 -62
- data/lib/net/ssh/transport/ossl/hmac/md5-96.rb +0 -44
- data/lib/net/ssh/transport/ossl/hmac/md5.rb +0 -46
- data/lib/net/ssh/transport/ossl/hmac/none.rb +0 -46
- data/lib/net/ssh/transport/ossl/hmac/services.rb +0 -68
- data/lib/net/ssh/transport/ossl/hmac/sha1-96.rb +0 -44
- data/lib/net/ssh/transport/ossl/hmac/sha1.rb +0 -45
- data/lib/net/ssh/transport/ossl/key-factory.rb +0 -116
- data/lib/net/ssh/transport/ossl/services.rb +0 -149
- data/lib/net/ssh/transport/packet-stream.rb +0 -236
- data/lib/net/ssh/transport/services.rb +0 -146
- data/lib/net/ssh/transport/version-negotiator.rb +0 -73
- data/lib/net/ssh/userauth/agent.rb +0 -222
- data/lib/net/ssh/userauth/constants.rb +0 -35
- data/lib/net/ssh/userauth/driver.rb +0 -183
- data/lib/net/ssh/userauth/methods/hostbased.rb +0 -119
- data/lib/net/ssh/userauth/methods/keyboard-interactive.rb +0 -104
- data/lib/net/ssh/userauth/methods/password.rb +0 -70
- data/lib/net/ssh/userauth/methods/publickey.rb +0 -137
- data/lib/net/ssh/userauth/methods/services.rb +0 -90
- data/lib/net/ssh/userauth/pageant.rb +0 -197
- data/lib/net/ssh/userauth/services.rb +0 -141
- data/lib/net/ssh/userauth/userkeys.rb +0 -258
- data/lib/net/ssh/util/buffer.rb +0 -274
- data/lib/net/ssh/util/prompter.rb +0 -73
- data/test/ALL-TESTS.rb +0 -18
- data/test/connection/tc_channel.rb +0 -136
- data/test/connection/tc_driver.rb +0 -287
- data/test/connection/tc_integration.rb +0 -87
- data/test/proxy/tc_http.rb +0 -209
- data/test/proxy/tc_socks4.rb +0 -148
- data/test/proxy/tc_socks5.rb +0 -214
- data/test/service/agentforward/tc_driver.rb +0 -138
- data/test/service/forward/tc_driver.rb +0 -289
- data/test/service/forward/tc_local_network_handler.rb +0 -123
- data/test/service/forward/tc_remote_network_handler.rb +0 -111
- data/test/service/process/tc_driver.rb +0 -79
- data/test/service/process/tc_integration.rb +0 -119
- data/test/service/process/tc_open.rb +0 -179
- data/test/service/process/tc_popen3.rb +0 -164
- data/test/tc_integration.rb +0 -80
- data/test/transport/compress/tc_none_compress.rb +0 -41
- data/test/transport/compress/tc_none_decompress.rb +0 -45
- data/test/transport/compress/tc_zlib_compress.rb +0 -61
- data/test/transport/compress/tc_zlib_decompress.rb +0 -48
- data/test/transport/kex/tc_dh.rb +0 -312
- data/test/transport/kex/tc_dh_gex.rb +0 -71
- data/test/transport/ossl/fixtures/dsa-encrypted +0 -15
- data/test/transport/ossl/fixtures/dsa-encrypted-bad +0 -15
- data/test/transport/ossl/fixtures/dsa-unencrypted +0 -12
- data/test/transport/ossl/fixtures/dsa-unencrypted-bad +0 -12
- data/test/transport/ossl/fixtures/dsa-unencrypted.pub +0 -1
- data/test/transport/ossl/fixtures/not-a-private-key +0 -4
- data/test/transport/ossl/fixtures/not-supported +0 -2
- data/test/transport/ossl/fixtures/rsa-encrypted +0 -18
- data/test/transport/ossl/fixtures/rsa-encrypted-bad +0 -18
- data/test/transport/ossl/fixtures/rsa-unencrypted +0 -15
- data/test/transport/ossl/fixtures/rsa-unencrypted-bad +0 -15
- data/test/transport/ossl/fixtures/rsa-unencrypted.pub +0 -1
- data/test/transport/ossl/hmac/tc_hmac.rb +0 -58
- data/test/transport/ossl/hmac/tc_md5.rb +0 -50
- data/test/transport/ossl/hmac/tc_md5_96.rb +0 -50
- data/test/transport/ossl/hmac/tc_none.rb +0 -50
- data/test/transport/ossl/hmac/tc_sha1.rb +0 -50
- data/test/transport/ossl/hmac/tc_sha1_96.rb +0 -50
- data/test/transport/ossl/tc_buffer.rb +0 -97
- data/test/transport/ossl/tc_buffer_factory.rb +0 -67
- data/test/transport/ossl/tc_cipher_factory.rb +0 -84
- data/test/transport/ossl/tc_digest_factory.rb +0 -39
- data/test/transport/ossl/tc_hmac_factory.rb +0 -72
- data/test/transport/ossl/tc_key_factory.rb +0 -199
- data/test/transport/tc_algorithm_negotiator.rb +0 -170
- data/test/transport/tc_identity_cipher.rb +0 -52
- data/test/transport/tc_integration.rb +0 -115
- data/test/transport/tc_packet_stream.rb +0 -184
- data/test/transport/tc_session.rb +0 -296
- data/test/transport/tc_version_negotiator.rb +0 -86
- data/test/userauth/methods/tc_hostbased.rb +0 -136
- data/test/userauth/methods/tc_password.rb +0 -89
- data/test/userauth/methods/tc_publickey.rb +0 -167
- data/test/userauth/tc_agent.rb +0 -223
- data/test/userauth/tc_driver.rb +0 -190
- data/test/userauth/tc_integration.rb +0 -97
- data/test/userauth/tc_userkeys.rb +0 -265
- data/test/util/tc_buffer.rb +0 -217
data/LICENSE
DELETED
@@ -1,7 +0,0 @@
|
|
1
|
-
Net::SSH is copyrighted free software by Jamis Buck <jamis@37signals.com>.
|
2
|
-
The reader is hereby granted permission to redistribute and/or modify it
|
3
|
-
under the terms of the BSD license, the Ruby license, or (by association
|
4
|
-
with the Ruby license) the GPL, at the reader's option.
|
5
|
-
|
6
|
-
Look in the "doc" subdirectory, and see the LICENSE-BSD, LICENSE-RUBY and
|
7
|
-
LICENSE-GPL files for the text of these licenses.
|
data/NEWS
DELETED
@@ -1,152 +0,0 @@
|
|
1
|
-
Net:SSH
|
2
|
-
http://rubyforge.org/projects/net-ssh
|
3
|
-
|
4
|
-
[1.1.4] 1 May 2008
|
5
|
-
* Fix Error -> Errno typo [Jamis Buck]
|
6
|
-
|
7
|
-
[1.1.3] 29 Apr 2008
|
8
|
-
* Fixed bug #17857 (Invalid use of @socket.send) [Zbigniew Zemla]
|
9
|
-
|
10
|
-
[1.1.2] 18 June 2007
|
11
|
-
* Fixed bug #6156 (ruby -w warnings)
|
12
|
-
|
13
|
-
* Fixed bug #11532 (Hang after MSG_CHANNEL_OPEN_FAILURE)
|
14
|
-
|
15
|
-
* Fixed bug #10818 (Exception in split_data_for_packet)
|
16
|
-
|
17
|
-
* Fixed bug #6667 (wrong SOCKS 5 auth version)
|
18
|
-
|
19
|
-
* Fixed bug #11270 (error when server uses some aes ciphers)
|
20
|
-
|
21
|
-
* Fixed bug #11355 (typo in session.rb)
|
22
|
-
|
23
|
-
* Fixed bug #11250 (host key verification problems when an RSA key appears
|
24
|
-
in the known hosts file, but the server has both DSS and RSA keys)
|
25
|
-
|
26
|
-
[1.1.1] 9 May 2007
|
27
|
-
* Fixed broken mkdir in host key verification.
|
28
|
-
|
29
|
-
* Fixed problems with Windows users getting "address family for hostname
|
30
|
-
not supported" errors.
|
31
|
-
|
32
|
-
[1.1.0] 1 May 2007
|
33
|
-
* Added the missing rb-keygen utility
|
34
|
-
|
35
|
-
* Server key verification (enabled by default, disable with :paranoid => false)
|
36
|
-
|
37
|
-
* Add support for SSH agent forwwarding
|
38
|
-
|
39
|
-
[1.0.10] 9 Sep 2006
|
40
|
-
* Experiment with using read instead of sysread, to try and alleviate problems
|
41
|
-
on Windows.
|
42
|
-
|
43
|
-
* Use printf instead of echo -n in the shell service, for compatibility with
|
44
|
-
more unices.
|
45
|
-
|
46
|
-
* Give a sane error message when the user name is nil and cannot be derived
|
47
|
-
from the environment.
|
48
|
-
|
49
|
-
* Add a #connection accessor to the session.
|
50
|
-
|
51
|
-
* Add initial support for server-originated global requests.
|
52
|
-
|
53
|
-
[1.0.9] 14 Apr 2006
|
54
|
-
* Fix a bug when used in tandem with edge Rails, due to monkeypatching in Rails.
|
55
|
-
|
56
|
-
[1.0.8] 18 Feb 2006
|
57
|
-
* Move connect for forwarded connections outside of thread so errors can be
|
58
|
-
caught
|
59
|
-
|
60
|
-
[1.0.7] 27 Jan 2006
|
61
|
-
* Fix intermittent "corrupt mac" bug (finally!)
|
62
|
-
|
63
|
-
[1.0.6] 19 Jan 2006
|
64
|
-
* Send NEWKEYS message first, for compatibility with wodSSHServer (which
|
65
|
-
won't send NEWKEYS until recieving it)
|
66
|
-
|
67
|
-
* Do not print the banner message by default on authorization (rarely useful
|
68
|
-
for automated processes anyway)
|
69
|
-
|
70
|
-
[1.0.5] 2 Jan 2006
|
71
|
-
* Added connection.ping! and session.ping! for testing the connection
|
72
|
-
|
73
|
-
[1.0.4] 24 Dec 2005
|
74
|
-
* Fixed tests broken by changes in Ruby 1.8.4.
|
75
|
-
|
76
|
-
* Fixed references to obsolete contact email address.
|
77
|
-
|
78
|
-
[1.0.3] 9 Nov 2005
|
79
|
-
* Fixed for windows so that connections succeed even if pageant process is
|
80
|
-
not running.
|
81
|
-
|
82
|
-
[1.0.2] 26 Jul 2005
|
83
|
-
* Fixed channel on_request callback signature.
|
84
|
-
|
85
|
-
* Better thread-safety in the connection driver (fixes some "Bad packet size"
|
86
|
-
errors in multi-threaded apps)
|
87
|
-
|
88
|
-
* Corrected various minor bugs.
|
89
|
-
|
90
|
-
[1.0.1] 17 Jun 2005
|
91
|
-
* Added a :timeout option on the transport session
|
92
|
-
|
93
|
-
* Net::SSH works with the Putty Agent now
|
94
|
-
|
95
|
-
[1.0.0] 6 Feb 2005
|
96
|
-
* Password can be programmatically specified for the 'keyboard-authentication'
|
97
|
-
method.
|
98
|
-
|
99
|
-
* All unit tests pass on Windows now.
|
100
|
-
|
101
|
-
* Channels now respect their own local window and maximum packet sizes, and
|
102
|
-
report reasonable values to the server. This fixes a bug that caused
|
103
|
-
problems when large quantities of data were requested of the server and
|
104
|
-
certain server maximums were being exceeded.
|
105
|
-
|
106
|
-
* Client name is determined in a more robust manner.
|
107
|
-
|
108
|
-
* Fixed hostbased bug.
|
109
|
-
|
110
|
-
* Authentication process is now aware of the authentication methods reported
|
111
|
-
by the server as having a chance of succeeded, and no longer attempts
|
112
|
-
those methods that cannot possibly succeed.
|
113
|
-
|
114
|
-
[0.9.0] 11 Jan 2005
|
115
|
-
* Added 'shell' and 'sync' services for interacting with users' shells,
|
116
|
-
including a demo script that uses these to implement a simple SSH terminal
|
117
|
-
client.
|
118
|
-
|
119
|
-
* The 'keyboard-interactive' authentication method is implemented correctly
|
120
|
-
now, which means users will receive a prompt to enter a password if one is
|
121
|
-
not given, and is required.
|
122
|
-
|
123
|
-
* The bug that caused the agent to always be used--even if it was
|
124
|
-
unavailable--has been fixed.
|
125
|
-
|
126
|
-
* The user manual now includes links to previous/next chapters, and uses
|
127
|
-
syntax highlighting for the code blocks. Various other style tweaks in the
|
128
|
-
manual.
|
129
|
-
|
130
|
-
* Window sizes and maximum packet sizes are now honored, which should take
|
131
|
-
care of various bugs and make Net::SSH play nicer with older SSH servers.
|
132
|
-
|
133
|
-
* Non-blocking reads are now supported via the
|
134
|
-
Transport::Session#reader_ready? method. The Connection::Driver#process
|
135
|
-
method has been modified to make better use of this.
|
136
|
-
|
137
|
-
* Moved to subversion, from CVS. Repository is now at
|
138
|
-
http://www.jamisbuck.org/svn/net-ssh
|
139
|
-
|
140
|
-
[0.6.0] 2 Dec 2004
|
141
|
-
* Added pageant support (thanks to Guillaume Mar�ais)
|
142
|
-
|
143
|
-
* Added support for external services (like SFTP).
|
144
|
-
|
145
|
-
* Use USERNAME environment variable if USER is not set (like on Windows)
|
146
|
-
|
147
|
-
[0.5.0] 23 Nov 2004
|
148
|
-
* Refactored to use Needle.
|
149
|
-
|
150
|
-
* Moved SFTP support into its own library.
|
151
|
-
|
152
|
-
* Moved command-line utilities into their own library.
|
data/README
DELETED
@@ -1,14 +0,0 @@
|
|
1
|
-
= Net::SSH
|
2
|
-
|
3
|
-
<b><em>A pure Ruby module that emulates an SSH client.</em></b>
|
4
|
-
|
5
|
-
<em>Author: Jamis Buck (jamis@37signals.com)</em>
|
6
|
-
|
7
|
-
Net::SSH absolutely WILL NOT work with the version of Ruby's OpenSSL module currently shipped with Ruby versions < 1.8.2 final. If you insist on trying it with a pre-1.8.2 final version, you must get a patched version of the OpenSSL module and install it (and remove the old module) before using Net::SSH.
|
8
|
-
|
9
|
-
The current release of Net::SSH supports:
|
10
|
-
|
11
|
-
* the execution of processes on the remote host (interactively, or non-interactively)
|
12
|
-
* interacting with a user's shell
|
13
|
-
* port forwarding, both from a local port to a remote port, and vice versa
|
14
|
-
* HTTP and SOCKS proxy support (and support for creation of additional proxy types)
|
data/bin/rb-keygen
DELETED
@@ -1,210 +0,0 @@
|
|
1
|
-
#!/usr/bin/env ruby
|
2
|
-
# =======================================================================
|
3
|
-
# Net::SSH -- A Ruby module implementing the SSH2 client protocol
|
4
|
-
# Copyright (C) 2004-2007 Jamis Buck (jamis@37signals.com)
|
5
|
-
#
|
6
|
-
# This library is free software; you can redistribute it and/or
|
7
|
-
# modify it under the terms of the GNU Lesser General Public
|
8
|
-
# License as published by the Free Software Foundation; either
|
9
|
-
# version 2.1 of the License, or (at your option) any later version.
|
10
|
-
#
|
11
|
-
# This library is distributed in the hope that it will be useful,
|
12
|
-
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
13
|
-
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
14
|
-
# Lesser General Public License for more details.
|
15
|
-
#
|
16
|
-
# You should have received a copy of the GNU Lesser General Public
|
17
|
-
# License along with this library; if not, write to the Free Software
|
18
|
-
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
19
|
-
# =======================================================================
|
20
|
-
|
21
|
-
require 'base64'
|
22
|
-
require 'optparse'
|
23
|
-
require 'net/ssh'
|
24
|
-
require 'net/ssh/util/openssl'
|
25
|
-
require 'net/ssh/util/buffer'
|
26
|
-
|
27
|
-
begin
|
28
|
-
require 'password'
|
29
|
-
$use_password = true
|
30
|
-
rescue LoadError
|
31
|
-
$use_password = false
|
32
|
-
end
|
33
|
-
|
34
|
-
# This class represents the "keygen" application for the Net::SSH suite.
|
35
|
-
# It implements a subset of the functionality of ssh-keygen, and tries to
|
36
|
-
# be reasonably commandline-compatible.
|
37
|
-
class KeyGenerator
|
38
|
-
|
39
|
-
# Create a new KeyGenerator. By default the script's commandline will be
|
40
|
-
# used to initialize the generator, but you can specify a different array
|
41
|
-
# of options manually.
|
42
|
-
#
|
43
|
-
# If there is an error parsing the arguments, the application will halt
|
44
|
-
# after displaying the error and a description of available options.
|
45
|
-
def initialize( args=ARGV )
|
46
|
-
begin
|
47
|
-
parse_args( args )
|
48
|
-
rescue OptionParser::ParseError => e
|
49
|
-
puts "Error: #{e.message}"
|
50
|
-
puts @parser
|
51
|
-
exit
|
52
|
-
end
|
53
|
-
end
|
54
|
-
|
55
|
-
# The driver for the application. Currently, it just calls +generate_key+,
|
56
|
-
# but eventually other functionality may be added. This method would do
|
57
|
-
# the logic to determine which methods should be invoked.
|
58
|
-
def run
|
59
|
-
generate_key
|
60
|
-
end
|
61
|
-
|
62
|
-
KEYS = {
|
63
|
-
"rsa" => OpenSSL::PKey::RSA,
|
64
|
-
"dsa" => OpenSSL::PKey::DSA
|
65
|
-
}
|
66
|
-
|
67
|
-
# Generate and export public and private key files according to the settings
|
68
|
-
# given by the options array when the object was instantiated. For values that
|
69
|
-
# may not have been specified (like filename, and passphrase), the user will
|
70
|
-
# be prompted. If the 'ruby-password' module is installed, it will be used for
|
71
|
-
# prompting for the passphrase, otherwise a simple +gets+ will be used.
|
72
|
-
def generate_key
|
73
|
-
key_class = KEYS[ @options[:type] ] or
|
74
|
-
raise NotImplementedError, "unsupported key type `#{@options[:type]}'"
|
75
|
-
|
76
|
-
if_chatty "generating key..."
|
77
|
-
key = key_class.new( @options[ :bits ] )
|
78
|
-
|
79
|
-
unless ( filename = @options[ :filename ] )
|
80
|
-
default = "#{ENV['HOME']}/.ssh/id_#{@options[:type]}"
|
81
|
-
print "Enter file in which to save the key (#{default}): "
|
82
|
-
answer = gets.strip
|
83
|
-
filename = ( answer.length == 0 ? default : answer )
|
84
|
-
end
|
85
|
-
|
86
|
-
unless ( passphrase = @options[ :new_passphrase ] )
|
87
|
-
loop do
|
88
|
-
passphrase = get_password "Enter passphrase (empty for no passphrase): "
|
89
|
-
verify_phrase = get_password "Enter same passphrase again: "
|
90
|
-
break if passphrase == verify_phrase
|
91
|
-
end
|
92
|
-
|
93
|
-
passphrase = nil if passphrase.length == 0
|
94
|
-
end
|
95
|
-
|
96
|
-
if passphrase
|
97
|
-
private_pem = key.export( OpenSSL::Cipher::Cipher.new( "des-ede3-cbc" ), passphrase )
|
98
|
-
else
|
99
|
-
private_pem = key.export
|
100
|
-
end
|
101
|
-
|
102
|
-
public_pem = export_ssh_pubkey( key )
|
103
|
-
|
104
|
-
File.open( filename, "w" ) { |file| file.write private_pem }
|
105
|
-
File.open( filename + ".pub", "w" ) { |file| file.write public_pem }
|
106
|
-
|
107
|
-
if_chatty "done!"
|
108
|
-
end
|
109
|
-
private :generate_key
|
110
|
-
|
111
|
-
# Returns a string representing the SSH-formatted public key, suitable for inserting
|
112
|
-
# into (for instance) the authorized_keys file.
|
113
|
-
def export_ssh_pubkey( key )
|
114
|
-
s = key.ssh_type + " "
|
115
|
-
|
116
|
-
writer = Net::SSH::Util::WriterBuffer.new
|
117
|
-
writer.write_key key
|
118
|
-
s << Base64.encode64( writer.to_s ).strip.gsub( /[\n\r\t ]/, "" )
|
119
|
-
s << " #{ENV['USER']}@#{ENV['HOSTNAME']}"
|
120
|
-
|
121
|
-
s
|
122
|
-
end
|
123
|
-
private :export_ssh_pubkey
|
124
|
-
|
125
|
-
# A utility method for getting a password. If the 'ruby-password' module is available,
|
126
|
-
# it will be used, otherwise a +print+/+gets+ combination will be used. The entered
|
127
|
-
# password will be returned.
|
128
|
-
def get_password( prompt )
|
129
|
-
if $use_password
|
130
|
-
return Password.get( prompt )
|
131
|
-
else
|
132
|
-
print prompt
|
133
|
-
return gets.chomp
|
134
|
-
end
|
135
|
-
end
|
136
|
-
private :get_password
|
137
|
-
|
138
|
-
# Parse the given arguments as if they were commandline arguments.
|
139
|
-
def parse_args( args )
|
140
|
-
@options = {
|
141
|
-
:bits => 1024
|
142
|
-
}
|
143
|
-
|
144
|
-
@parser = OptionParser.new do |parser|
|
145
|
-
parser.banner = "Usage: rb-keygen [options]"
|
146
|
-
|
147
|
-
parser.separator ""
|
148
|
-
parser.separator "Options:"
|
149
|
-
|
150
|
-
parser.on( "-b", "--bits BITS",
|
151
|
-
"Number of bits in the key to create." ) do |bits|
|
152
|
-
@options[ :bits ] = bits.to_i
|
153
|
-
end
|
154
|
-
|
155
|
-
parser.on( "-f", "--filename FILENAME",
|
156
|
-
"Filename of the keyfile." ) do |filename|
|
157
|
-
@options[ :filename ] = filename
|
158
|
-
end
|
159
|
-
|
160
|
-
parser.on( "-q", "--quiet", "Suppress normal output." ) do
|
161
|
-
@options[ :quiet ] = true
|
162
|
-
end
|
163
|
-
|
164
|
-
parser.on( "-t", "--type TYPE",
|
165
|
-
"Specify the TYPE of key to create (`rsa' or `dsa')" ) do |type|
|
166
|
-
unless [ "rsa", "dsa" ].include? type
|
167
|
-
raise OptionParser::ParseError, "`#{type}' is not a valid key type, must be `rsa' or `dsa'"
|
168
|
-
end
|
169
|
-
@options[ :type ] = type
|
170
|
-
end
|
171
|
-
|
172
|
-
parser.on( "-N", "--new-passphrase PHRASE",
|
173
|
-
"Provide new passphrase" ) do |phrase|
|
174
|
-
@options[ :new_passphrase ] = phrase
|
175
|
-
end
|
176
|
-
|
177
|
-
parser.separator ""
|
178
|
-
parser.separator "Other options:"
|
179
|
-
|
180
|
-
parser.on_tail( "-h", "--help", "Show this message" ) do
|
181
|
-
puts parser
|
182
|
-
exit
|
183
|
-
end
|
184
|
-
end
|
185
|
-
|
186
|
-
@parser.parse! args
|
187
|
-
|
188
|
-
unless @options[ :type ]
|
189
|
-
raise OptionParser::ParseError, "You must specify a key type (-t)"
|
190
|
-
end
|
191
|
-
|
192
|
-
unless [ "rsa", "dsa" ].include? @options[ :type ]
|
193
|
-
raise OptionParser::ParseError, "You must specify a key type (-t)"
|
194
|
-
end
|
195
|
-
end
|
196
|
-
private :parse_args
|
197
|
-
|
198
|
-
# Used for logging optional messages. If the application was told to be
|
199
|
-
# quiet (with the -q option), this method does nothing; otherwise, it
|
200
|
-
# prints the messages to +stderr+.
|
201
|
-
def if_chatty( *args )
|
202
|
-
unless @options[ :quiet ]
|
203
|
-
$stderr.puts(*args)
|
204
|
-
end
|
205
|
-
end
|
206
|
-
private :if_chatty
|
207
|
-
|
208
|
-
end
|
209
|
-
|
210
|
-
KeyGenerator.new.run
|
data/doc/LICENSE-BSD
DELETED
@@ -1,27 +0,0 @@
|
|
1
|
-
Copyright (c) 2004, Jamis Buck (jamis@37signals.com)
|
2
|
-
All rights reserved.
|
3
|
-
|
4
|
-
Redistribution and use in source and binary forms, with or without
|
5
|
-
modification, are permitted provided that the following conditions are met:
|
6
|
-
|
7
|
-
* Redistributions of source code must retain the above copyright notice,
|
8
|
-
this list of conditions and the following disclaimer.
|
9
|
-
|
10
|
-
* Redistributions in binary form must reproduce the above copyright
|
11
|
-
notice, this list of conditions and the following disclaimer in the
|
12
|
-
documentation and/or other materials provided with the distribution.
|
13
|
-
|
14
|
-
* The names of its contributors may not be used to endorse or promote
|
15
|
-
products derived from this software without specific prior written
|
16
|
-
permission.
|
17
|
-
|
18
|
-
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
19
|
-
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
20
|
-
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
21
|
-
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE
|
22
|
-
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
23
|
-
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
24
|
-
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
25
|
-
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
26
|
-
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
27
|
-
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
data/doc/LICENSE-GPL
DELETED
@@ -1,280 +0,0 @@
|
|
1
|
-
GNU GENERAL PUBLIC LICENSE
|
2
|
-
Version 2, June 1991
|
3
|
-
|
4
|
-
Copyright (C) 1989, 1991 Free Software Foundation, Inc.
|
5
|
-
59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
6
|
-
Everyone is permitted to copy and distribute verbatim copies
|
7
|
-
of this license document, but changing it is not allowed.
|
8
|
-
|
9
|
-
Preamble
|
10
|
-
|
11
|
-
The licenses for most software are designed to take away your
|
12
|
-
freedom to share and change it. By contrast, the GNU General Public
|
13
|
-
License is intended to guarantee your freedom to share and change free
|
14
|
-
software--to make sure the software is free for all its users. This
|
15
|
-
General Public License applies to most of the Free Software
|
16
|
-
Foundation's software and to any other program whose authors commit to
|
17
|
-
using it. (Some other Free Software Foundation software is covered by
|
18
|
-
the GNU Library General Public License instead.) You can apply it to
|
19
|
-
your programs, too.
|
20
|
-
|
21
|
-
When we speak of free software, we are referring to freedom, not
|
22
|
-
price. Our General Public Licenses are designed to make sure that you
|
23
|
-
have the freedom to distribute copies of free software (and charge for
|
24
|
-
this service if you wish), that you receive source code or can get it
|
25
|
-
if you want it, that you can change the software or use pieces of it
|
26
|
-
in new free programs; and that you know you can do these things.
|
27
|
-
|
28
|
-
To protect your rights, we need to make restrictions that forbid
|
29
|
-
anyone to deny you these rights or to ask you to surrender the rights.
|
30
|
-
These restrictions translate to certain responsibilities for you if you
|
31
|
-
distribute copies of the software, or if you modify it.
|
32
|
-
|
33
|
-
For example, if you distribute copies of such a program, whether
|
34
|
-
gratis or for a fee, you must give the recipients all the rights that
|
35
|
-
you have. You must make sure that they, too, receive or can get the
|
36
|
-
source code. And you must show them these terms so they know their
|
37
|
-
rights.
|
38
|
-
|
39
|
-
We protect your rights with two steps: (1) copyright the software, and
|
40
|
-
(2) offer you this license which gives you legal permission to copy,
|
41
|
-
distribute and/or modify the software.
|
42
|
-
|
43
|
-
Also, for each author's protection and ours, we want to make certain
|
44
|
-
that everyone understands that there is no warranty for this free
|
45
|
-
software. If the software is modified by someone else and passed on, we
|
46
|
-
want its recipients to know that what they have is not the original, so
|
47
|
-
that any problems introduced by others will not reflect on the original
|
48
|
-
authors' reputations.
|
49
|
-
|
50
|
-
Finally, any free program is threatened constantly by software
|
51
|
-
patents. We wish to avoid the danger that redistributors of a free
|
52
|
-
program will individually obtain patent licenses, in effect making the
|
53
|
-
program proprietary. To prevent this, we have made it clear that any
|
54
|
-
patent must be licensed for everyone's free use or not licensed at all.
|
55
|
-
|
56
|
-
The precise terms and conditions for copying, distribution and
|
57
|
-
modification follow.
|
58
|
-
|
59
|
-
GNU GENERAL PUBLIC LICENSE
|
60
|
-
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
|
61
|
-
|
62
|
-
0. This License applies to any program or other work which contains
|
63
|
-
a notice placed by the copyright holder saying it may be distributed
|
64
|
-
under the terms of this General Public License. The "Program", below,
|
65
|
-
refers to any such program or work, and a "work based on the Program"
|
66
|
-
means either the Program or any derivative work under copyright law:
|
67
|
-
that is to say, a work containing the Program or a portion of it,
|
68
|
-
either verbatim or with modifications and/or translated into another
|
69
|
-
language. (Hereinafter, translation is included without limitation in
|
70
|
-
the term "modification".) Each licensee is addressed as "you".
|
71
|
-
|
72
|
-
Activities other than copying, distribution and modification are not
|
73
|
-
covered by this License; they are outside its scope. The act of
|
74
|
-
running the Program is not restricted, and the output from the Program
|
75
|
-
is covered only if its contents constitute a work based on the
|
76
|
-
Program (independent of having been made by running the Program).
|
77
|
-
Whether that is true depends on what the Program does.
|
78
|
-
|
79
|
-
1. You may copy and distribute verbatim copies of the Program's
|
80
|
-
source code as you receive it, in any medium, provided that you
|
81
|
-
conspicuously and appropriately publish on each copy an appropriate
|
82
|
-
copyright notice and disclaimer of warranty; keep intact all the
|
83
|
-
notices that refer to this License and to the absence of any warranty;
|
84
|
-
and give any other recipients of the Program a copy of this License
|
85
|
-
along with the Program.
|
86
|
-
|
87
|
-
You may charge a fee for the physical act of transferring a copy, and
|
88
|
-
you may at your option offer warranty protection in exchange for a fee.
|
89
|
-
|
90
|
-
2. You may modify your copy or copies of the Program or any portion
|
91
|
-
of it, thus forming a work based on the Program, and copy and
|
92
|
-
distribute such modifications or work under the terms of Section 1
|
93
|
-
above, provided that you also meet all of these conditions:
|
94
|
-
|
95
|
-
a) You must cause the modified files to carry prominent notices
|
96
|
-
stating that you changed the files and the date of any change.
|
97
|
-
|
98
|
-
b) You must cause any work that you distribute or publish, that in
|
99
|
-
whole or in part contains or is derived from the Program or any
|
100
|
-
part thereof, to be licensed as a whole at no charge to all third
|
101
|
-
parties under the terms of this License.
|
102
|
-
|
103
|
-
c) If the modified program normally reads commands interactively
|
104
|
-
when run, you must cause it, when started running for such
|
105
|
-
interactive use in the most ordinary way, to print or display an
|
106
|
-
announcement including an appropriate copyright notice and a
|
107
|
-
notice that there is no warranty (or else, saying that you provide
|
108
|
-
a warranty) and that users may redistribute the program under
|
109
|
-
these conditions, and telling the user how to view a copy of this
|
110
|
-
License. (Exception: if the Program itself is interactive but
|
111
|
-
does not normally print such an announcement, your work based on
|
112
|
-
the Program is not required to print an announcement.)
|
113
|
-
|
114
|
-
These requirements apply to the modified work as a whole. If
|
115
|
-
identifiable sections of that work are not derived from the Program,
|
116
|
-
and can be reasonably considered independent and separate works in
|
117
|
-
themselves, then this License, and its terms, do not apply to those
|
118
|
-
sections when you distribute them as separate works. But when you
|
119
|
-
distribute the same sections as part of a whole which is a work based
|
120
|
-
on the Program, the distribution of the whole must be on the terms of
|
121
|
-
this License, whose permissions for other licensees extend to the
|
122
|
-
entire whole, and thus to each and every part regardless of who wrote it.
|
123
|
-
|
124
|
-
Thus, it is not the intent of this section to claim rights or contest
|
125
|
-
your rights to work written entirely by you; rather, the intent is to
|
126
|
-
exercise the right to control the distribution of derivative or
|
127
|
-
collective works based on the Program.
|
128
|
-
|
129
|
-
In addition, mere aggregation of another work not based on the Program
|
130
|
-
with the Program (or with a work based on the Program) on a volume of
|
131
|
-
a storage or distribution medium does not bring the other work under
|
132
|
-
the scope of this License.
|
133
|
-
|
134
|
-
3. You may copy and distribute the Program (or a work based on it,
|
135
|
-
under Section 2) in object code or executable form under the terms of
|
136
|
-
Sections 1 and 2 above provided that you also do one of the following:
|
137
|
-
|
138
|
-
a) Accompany it with the complete corresponding machine-readable
|
139
|
-
source code, which must be distributed under the terms of Sections
|
140
|
-
1 and 2 above on a medium customarily used for software interchange; or,
|
141
|
-
|
142
|
-
b) Accompany it with a written offer, valid for at least three
|
143
|
-
years, to give any third party, for a charge no more than your
|
144
|
-
cost of physically performing source distribution, a complete
|
145
|
-
machine-readable copy of the corresponding source code, to be
|
146
|
-
distributed under the terms of Sections 1 and 2 above on a medium
|
147
|
-
customarily used for software interchange; or,
|
148
|
-
|
149
|
-
c) Accompany it with the information you received as to the offer
|
150
|
-
to distribute corresponding source code. (This alternative is
|
151
|
-
allowed only for noncommercial distribution and only if you
|
152
|
-
received the program in object code or executable form with such
|
153
|
-
an offer, in accord with Subsection b above.)
|
154
|
-
|
155
|
-
The source code for a work means the preferred form of the work for
|
156
|
-
making modifications to it. For an executable work, complete source
|
157
|
-
code means all the source code for all modules it contains, plus any
|
158
|
-
associated interface definition files, plus the scripts used to
|
159
|
-
control compilation and installation of the executable. However, as a
|
160
|
-
special exception, the source code distributed need not include
|
161
|
-
anything that is normally distributed (in either source or binary
|
162
|
-
form) with the major components (compiler, kernel, and so on) of the
|
163
|
-
operating system on which the executable runs, unless that component
|
164
|
-
itself accompanies the executable.
|
165
|
-
|
166
|
-
If distribution of executable or object code is made by offering
|
167
|
-
access to copy from a designated place, then offering equivalent
|
168
|
-
access to copy the source code from the same place counts as
|
169
|
-
distribution of the source code, even though third parties are not
|
170
|
-
compelled to copy the source along with the object code.
|
171
|
-
|
172
|
-
4. You may not copy, modify, sublicense, or distribute the Program
|
173
|
-
except as expressly provided under this License. Any attempt
|
174
|
-
otherwise to copy, modify, sublicense or distribute the Program is
|
175
|
-
void, and will automatically terminate your rights under this License.
|
176
|
-
However, parties who have received copies, or rights, from you under
|
177
|
-
this License will not have their licenses terminated so long as such
|
178
|
-
parties remain in full compliance.
|
179
|
-
|
180
|
-
5. You are not required to accept this License, since you have not
|
181
|
-
signed it. However, nothing else grants you permission to modify or
|
182
|
-
distribute the Program or its derivative works. These actions are
|
183
|
-
prohibited by law if you do not accept this License. Therefore, by
|
184
|
-
modifying or distributing the Program (or any work based on the
|
185
|
-
Program), you indicate your acceptance of this License to do so, and
|
186
|
-
all its terms and conditions for copying, distributing or modifying
|
187
|
-
the Program or works based on it.
|
188
|
-
|
189
|
-
6. Each time you redistribute the Program (or any work based on the
|
190
|
-
Program), the recipient automatically receives a license from the
|
191
|
-
original licensor to copy, distribute or modify the Program subject to
|
192
|
-
these terms and conditions. You may not impose any further
|
193
|
-
restrictions on the recipients' exercise of the rights granted herein.
|
194
|
-
You are not responsible for enforcing compliance by third parties to
|
195
|
-
this License.
|
196
|
-
|
197
|
-
7. If, as a consequence of a court judgment or allegation of patent
|
198
|
-
infringement or for any other reason (not limited to patent issues),
|
199
|
-
conditions are imposed on you (whether by court order, agreement or
|
200
|
-
otherwise) that contradict the conditions of this License, they do not
|
201
|
-
excuse you from the conditions of this License. If you cannot
|
202
|
-
distribute so as to satisfy simultaneously your obligations under this
|
203
|
-
License and any other pertinent obligations, then as a consequence you
|
204
|
-
may not distribute the Program at all. For example, if a patent
|
205
|
-
license would not permit royalty-free redistribution of the Program by
|
206
|
-
all those who receive copies directly or indirectly through you, then
|
207
|
-
the only way you could satisfy both it and this License would be to
|
208
|
-
refrain entirely from distribution of the Program.
|
209
|
-
|
210
|
-
If any portion of this section is held invalid or unenforceable under
|
211
|
-
any particular circumstance, the balance of the section is intended to
|
212
|
-
apply and the section as a whole is intended to apply in other
|
213
|
-
circumstances.
|
214
|
-
|
215
|
-
It is not the purpose of this section to induce you to infringe any
|
216
|
-
patents or other property right claims or to contest validity of any
|
217
|
-
such claims; this section has the sole purpose of protecting the
|
218
|
-
integrity of the free software distribution system, which is
|
219
|
-
implemented by public license practices. Many people have made
|
220
|
-
generous contributions to the wide range of software distributed
|
221
|
-
through that system in reliance on consistent application of that
|
222
|
-
system; it is up to the author/donor to decide if he or she is willing
|
223
|
-
to distribute software through any other system and a licensee cannot
|
224
|
-
impose that choice.
|
225
|
-
|
226
|
-
This section is intended to make thoroughly clear what is believed to
|
227
|
-
be a consequence of the rest of this License.
|
228
|
-
|
229
|
-
8. If the distribution and/or use of the Program is restricted in
|
230
|
-
certain countries either by patents or by copyrighted interfaces, the
|
231
|
-
original copyright holder who places the Program under this License
|
232
|
-
may add an explicit geographical distribution limitation excluding
|
233
|
-
those countries, so that distribution is permitted only in or among
|
234
|
-
countries not thus excluded. In such case, this License incorporates
|
235
|
-
the limitation as if written in the body of this License.
|
236
|
-
|
237
|
-
9. The Free Software Foundation may publish revised and/or new versions
|
238
|
-
of the General Public License from time to time. Such new versions will
|
239
|
-
be similar in spirit to the present version, but may differ in detail to
|
240
|
-
address new problems or concerns.
|
241
|
-
|
242
|
-
Each version is given a distinguishing version number. If the Program
|
243
|
-
specifies a version number of this License which applies to it and "any
|
244
|
-
later version", you have the option of following the terms and conditions
|
245
|
-
either of that version or of any later version published by the Free
|
246
|
-
Software Foundation. If the Program does not specify a version number of
|
247
|
-
this License, you may choose any version ever published by the Free Software
|
248
|
-
Foundation.
|
249
|
-
|
250
|
-
10. If you wish to incorporate parts of the Program into other free
|
251
|
-
programs whose distribution conditions are different, write to the author
|
252
|
-
to ask for permission. For software which is copyrighted by the Free
|
253
|
-
Software Foundation, write to the Free Software Foundation; we sometimes
|
254
|
-
make exceptions for this. Our decision will be guided by the two goals
|
255
|
-
of preserving the free status of all derivatives of our free software and
|
256
|
-
of promoting the sharing and reuse of software generally.
|
257
|
-
|
258
|
-
NO WARRANTY
|
259
|
-
|
260
|
-
11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
|
261
|
-
FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN
|
262
|
-
OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
|
263
|
-
PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
|
264
|
-
OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
|
265
|
-
MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS
|
266
|
-
TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE
|
267
|
-
PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
|
268
|
-
REPAIR OR CORRECTION.
|
269
|
-
|
270
|
-
12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
|
271
|
-
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
|
272
|
-
REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
|
273
|
-
INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
|
274
|
-
OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
|
275
|
-
TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
|
276
|
-
YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
|
277
|
-
PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
|
278
|
-
POSSIBILITY OF SUCH DAMAGES.
|
279
|
-
|
280
|
-
END OF TERMS AND CONDITIONS
|