net-ssh 0.6.0 → 0.9.0
Sign up to get free protection for your applications and to get access to all the features.
- data/doc/manual-html/chapter-1.html +59 -24
- data/doc/manual-html/chapter-2.html +116 -77
- data/doc/manual-html/chapter-3.html +80 -41
- data/doc/manual-html/chapter-4.html +111 -71
- data/doc/manual-html/chapter-5.html +267 -155
- data/doc/manual-html/chapter-6.html +211 -75
- data/doc/manual-html/chapter-7.html +331 -0
- data/doc/manual-html/index.html +39 -13
- data/doc/manual-html/{manual.css → stylesheets/manual.css} +81 -8
- data/doc/manual-html/stylesheets/ruby.css +17 -0
- data/doc/manual/chapter.erb +20 -0
- data/doc/manual/manual.rb +80 -9
- data/doc/manual/manual.yml +12 -2
- data/doc/manual/page.erb +1 -1
- data/doc/manual/parts/channels_callbacks.txt +11 -11
- data/doc/manual/parts/channels_loop.txt +6 -6
- data/doc/manual/parts/channels_open.txt +9 -9
- data/doc/manual/parts/exec_channels.txt +15 -15
- data/doc/manual/parts/exec_open.txt +17 -18
- data/doc/manual/parts/exec_popen3.txt +18 -18
- data/doc/manual/parts/forward_direct.txt +16 -16
- data/doc/manual/parts/forward_intro.txt +7 -7
- data/doc/manual/parts/forward_local.txt +9 -9
- data/doc/manual/parts/forward_remote.txt +9 -9
- data/doc/manual/parts/intro_getting.txt +11 -11
- data/doc/manual/parts/proxy_http.txt +27 -27
- data/doc/manual/parts/proxy_socks.txt +17 -17
- data/doc/manual/parts/session_key.txt +13 -14
- data/doc/manual/parts/session_options.txt +14 -14
- data/doc/manual/parts/session_session.txt +9 -9
- data/doc/manual/parts/session_start.txt +27 -27
- data/doc/manual/parts/shells_channels.txt +72 -0
- data/doc/manual/parts/shells_clients.txt +51 -0
- data/doc/manual/parts/shells_intro.txt +7 -0
- data/doc/manual/parts/shells_shell.txt +50 -0
- data/doc/manual/parts/shells_sync.txt +42 -0
- data/doc/manual/{manual.css → stylesheets/manual.css} +81 -8
- data/doc/manual/stylesheets/ruby.css +17 -0
- data/examples/channel-demo.rb +1 -1
- data/examples/port-forward.rb +1 -1
- data/examples/process-demo.rb +1 -1
- data/examples/remote-net-port-forward.rb +1 -1
- data/examples/remote-port-forward.rb +1 -1
- data/examples/shell-demo.rb +46 -0
- data/examples/ssh-client.rb +67 -0
- data/examples/sync-shell-demo.rb +69 -0
- data/examples/tail-demo.rb +1 -1
- data/lib/net/ssh.rb +1 -1
- data/lib/net/ssh/connection/channel.rb +61 -7
- data/lib/net/ssh/connection/constants.rb +1 -1
- data/lib/net/ssh/connection/driver.rb +61 -8
- data/lib/net/ssh/connection/services.rb +1 -1
- data/lib/net/ssh/connection/term.rb +1 -1
- data/lib/net/ssh/errors.rb +1 -1
- data/lib/net/ssh/proxy/errors.rb +1 -1
- data/lib/net/ssh/proxy/http.rb +1 -1
- data/lib/net/ssh/proxy/socks4.rb +1 -1
- data/lib/net/ssh/proxy/socks5.rb +1 -1
- data/lib/net/ssh/service/forward/driver.rb +1 -1
- data/lib/net/ssh/service/forward/local-network-handler.rb +1 -1
- data/lib/net/ssh/service/forward/remote-network-handler.rb +1 -1
- data/lib/net/ssh/service/forward/services.rb +1 -1
- data/lib/net/ssh/service/process/driver.rb +1 -1
- data/lib/net/ssh/service/process/open.rb +1 -1
- data/lib/net/ssh/service/process/popen3.rb +20 -2
- data/lib/net/ssh/service/process/services.rb +1 -1
- data/lib/net/ssh/service/services.rb +3 -1
- data/lib/net/ssh/service/shell/driver.rb +86 -0
- data/lib/net/ssh/service/shell/services.rb +54 -0
- data/lib/net/ssh/service/shell/shell.rb +213 -0
- data/lib/net/ssh/service/shell/sync.rb +114 -0
- data/lib/net/ssh/session.rb +9 -1
- data/lib/net/ssh/transport/algorithm-negotiator.rb +1 -1
- data/lib/net/ssh/transport/compress/compressor.rb +1 -1
- data/lib/net/ssh/transport/compress/decompressor.rb +1 -1
- data/lib/net/ssh/transport/compress/none-compressor.rb +1 -1
- data/lib/net/ssh/transport/compress/none-decompressor.rb +1 -1
- data/lib/net/ssh/transport/compress/services.rb +1 -1
- data/lib/net/ssh/transport/compress/zlib-compressor.rb +1 -1
- data/lib/net/ssh/transport/compress/zlib-decompressor.rb +1 -1
- data/lib/net/ssh/transport/constants.rb +1 -1
- data/lib/net/ssh/transport/errors.rb +1 -1
- data/lib/net/ssh/transport/identity-cipher.rb +1 -1
- data/lib/net/ssh/transport/kex/dh-gex.rb +1 -1
- data/lib/net/ssh/transport/kex/dh.rb +1 -1
- data/lib/net/ssh/transport/kex/services.rb +1 -1
- data/lib/net/ssh/transport/ossl/buffer-factory.rb +1 -1
- data/lib/net/ssh/transport/ossl/buffer.rb +1 -1
- data/lib/net/ssh/transport/ossl/cipher-factory.rb +1 -1
- data/lib/net/ssh/transport/ossl/digest-factory.rb +1 -1
- data/lib/net/ssh/transport/ossl/hmac-factory.rb +1 -1
- data/lib/net/ssh/transport/ossl/hmac/hmac.rb +1 -1
- data/lib/net/ssh/transport/ossl/hmac/md5-96.rb +1 -1
- data/lib/net/ssh/transport/ossl/hmac/md5.rb +1 -1
- data/lib/net/ssh/transport/ossl/hmac/none.rb +1 -1
- data/lib/net/ssh/transport/ossl/hmac/services.rb +1 -1
- data/lib/net/ssh/transport/ossl/hmac/sha1-96.rb +1 -1
- data/lib/net/ssh/transport/ossl/hmac/sha1.rb +1 -1
- data/lib/net/ssh/transport/ossl/key-factory.rb +5 -2
- data/lib/net/ssh/transport/ossl/services.rb +1 -1
- data/lib/net/ssh/transport/packet-stream.rb +1 -1
- data/lib/net/ssh/transport/services.rb +1 -1
- data/lib/net/ssh/transport/session.rb +10 -1
- data/lib/net/ssh/transport/version-negotiator.rb +1 -1
- data/lib/net/ssh/userauth/agent.rb +1 -1
- data/lib/net/ssh/userauth/constants.rb +1 -1
- data/lib/net/ssh/userauth/driver.rb +1 -1
- data/lib/net/ssh/userauth/methods/hostbased.rb +1 -1
- data/lib/net/ssh/userauth/methods/keyboard-interactive.rb +104 -0
- data/lib/net/ssh/userauth/methods/password.rb +1 -1
- data/lib/net/ssh/userauth/methods/publickey.rb +1 -1
- data/lib/net/ssh/userauth/methods/services.rb +28 -6
- data/lib/net/ssh/userauth/services.rb +8 -5
- data/lib/net/ssh/userauth/userkeys.rb +1 -1
- data/lib/net/ssh/util/buffer.rb +1 -1
- data/lib/net/ssh/util/openssl.rb +1 -1
- data/lib/net/ssh/util/prompter.rb +1 -1
- data/lib/net/ssh/version.rb +2 -2
- data/test/ALL-TESTS.rb +1 -1
- data/test/connection/tc_channel.rb +1 -1
- data/test/connection/tc_driver.rb +1 -1
- data/test/connection/tc_integration.rb +1 -1
- data/test/proxy/tc_http.rb +1 -1
- data/test/proxy/tc_socks4.rb +1 -1
- data/test/proxy/tc_socks5.rb +1 -1
- data/test/service/forward/tc_driver.rb +1 -1
- data/test/service/forward/tc_local_network_handler.rb +1 -1
- data/test/service/forward/tc_remote_network_handler.rb +1 -1
- data/test/service/process/tc_driver.rb +1 -1
- data/test/service/process/tc_integration.rb +1 -1
- data/test/service/process/tc_open.rb +1 -1
- data/test/service/process/tc_popen3.rb +13 -13
- data/test/tc_integration.rb +1 -1
- data/test/transport/compress/tc_none_compress.rb +1 -1
- data/test/transport/compress/tc_none_decompress.rb +1 -1
- data/test/transport/compress/tc_zlib_compress.rb +1 -1
- data/test/transport/compress/tc_zlib_decompress.rb +1 -1
- data/test/transport/kex/tc_dh.rb +2 -1
- data/test/transport/kex/tc_dh_gex.rb +1 -1
- data/test/transport/ossl/hmac/tc_hmac.rb +1 -1
- data/test/transport/ossl/hmac/tc_md5.rb +1 -1
- data/test/transport/ossl/hmac/tc_md5_96.rb +1 -1
- data/test/transport/ossl/hmac/tc_none.rb +1 -1
- data/test/transport/ossl/hmac/tc_sha1.rb +1 -1
- data/test/transport/ossl/hmac/tc_sha1_96.rb +1 -1
- data/test/transport/ossl/tc_buffer.rb +1 -1
- data/test/transport/ossl/tc_buffer_factory.rb +1 -1
- data/test/transport/ossl/tc_cipher_factory.rb +1 -1
- data/test/transport/ossl/tc_digest_factory.rb +1 -1
- data/test/transport/ossl/tc_hmac_factory.rb +1 -1
- data/test/transport/ossl/tc_key_factory.rb +1 -1
- data/test/transport/tc_algorithm_negotiator.rb +1 -1
- data/test/transport/tc_identity_cipher.rb +1 -1
- data/test/transport/tc_integration.rb +1 -1
- data/test/transport/tc_packet_stream.rb +1 -1
- data/test/transport/tc_session.rb +1 -1
- data/test/transport/tc_version_negotiator.rb +1 -1
- data/test/userauth/methods/tc_hostbased.rb +1 -1
- data/test/userauth/methods/tc_password.rb +1 -1
- data/test/userauth/methods/tc_publickey.rb +1 -1
- data/test/userauth/tc_agent.rb +1 -1
- data/test/userauth/tc_driver.rb +1 -1
- data/test/userauth/tc_integration.rb +15 -1
- data/test/userauth/tc_userkeys.rb +1 -1
- data/test/util/tc_buffer.rb +5 -5
- metadata +26 -6
data/test/tc_integration.rb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
#--
|
2
2
|
# =============================================================================
|
3
|
-
# Copyright (c) 2004, Jamis Buck (
|
3
|
+
# Copyright (c) 2004,2005 Jamis Buck (jamis_buck@byu.edu)
|
4
4
|
# All rights reserved.
|
5
5
|
#
|
6
6
|
# This source file is distributed as part of the Net::SSH Secure Shell Client
|
@@ -1,6 +1,6 @@
|
|
1
1
|
#--
|
2
2
|
# =============================================================================
|
3
|
-
# Copyright (c) 2004, Jamis Buck (
|
3
|
+
# Copyright (c) 2004,2005 Jamis Buck (jamis_buck@byu.edu)
|
4
4
|
# All rights reserved.
|
5
5
|
#
|
6
6
|
# This source file is distributed as part of the Net::SSH Secure Shell Client
|
@@ -1,6 +1,6 @@
|
|
1
1
|
#--
|
2
2
|
# =============================================================================
|
3
|
-
# Copyright (c) 2004, Jamis Buck (
|
3
|
+
# Copyright (c) 2004,2005 Jamis Buck (jamis_buck@byu.edu)
|
4
4
|
# All rights reserved.
|
5
5
|
#
|
6
6
|
# This source file is distributed as part of the Net::SSH Secure Shell Client
|
@@ -1,6 +1,6 @@
|
|
1
1
|
#--
|
2
2
|
# =============================================================================
|
3
|
-
# Copyright (c) 2004, Jamis Buck (
|
3
|
+
# Copyright (c) 2004,2005 Jamis Buck (jamis_buck@byu.edu)
|
4
4
|
# All rights reserved.
|
5
5
|
#
|
6
6
|
# This source file is distributed as part of the Net::SSH Secure Shell Client
|
@@ -1,6 +1,6 @@
|
|
1
1
|
#--
|
2
2
|
# =============================================================================
|
3
|
-
# Copyright (c) 2004, Jamis Buck (
|
3
|
+
# Copyright (c) 2004,2005 Jamis Buck (jamis_buck@byu.edu)
|
4
4
|
# All rights reserved.
|
5
5
|
#
|
6
6
|
# This source file is distributed as part of the Net::SSH Secure Shell Client
|
data/test/transport/kex/tc_dh.rb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
#--
|
2
2
|
# =============================================================================
|
3
|
-
# Copyright (c) 2004, Jamis Buck (
|
3
|
+
# Copyright (c) 2004,2005 Jamis Buck (jamis_buck@byu.edu)
|
4
4
|
# All rights reserved.
|
5
5
|
#
|
6
6
|
# This source file is distributed as part of the Net::SSH Secure Shell Client
|
@@ -248,6 +248,7 @@ class TC_KEX_DH < Test::Unit::TestCase
|
|
248
248
|
data = { :client_version_string => "A",
|
249
249
|
:server_version_string => "B",
|
250
250
|
:client_algorithm_packet => "C",
|
251
|
+
:need_bits => 0,
|
251
252
|
:server_algorithm_packet => "D" }
|
252
253
|
result = { :key_blob => "E",
|
253
254
|
:server_dh_pubkey => MockBN.new( 20 ),
|
@@ -1,6 +1,6 @@
|
|
1
1
|
#--
|
2
2
|
# =============================================================================
|
3
|
-
# Copyright (c) 2004, Jamis Buck (
|
3
|
+
# Copyright (c) 2004,2005 Jamis Buck (jamis_buck@byu.edu)
|
4
4
|
# All rights reserved.
|
5
5
|
#
|
6
6
|
# This source file is distributed as part of the Net::SSH Secure Shell Client
|
@@ -1,6 +1,6 @@
|
|
1
1
|
#--
|
2
2
|
# =============================================================================
|
3
|
-
# Copyright (c) 2004, Jamis Buck (
|
3
|
+
# Copyright (c) 2004,2005 Jamis Buck (jamis_buck@byu.edu)
|
4
4
|
# All rights reserved.
|
5
5
|
#
|
6
6
|
# This source file is distributed as part of the Net::SSH Secure Shell Client
|
@@ -1,6 +1,6 @@
|
|
1
1
|
#--
|
2
2
|
# =============================================================================
|
3
|
-
# Copyright (c) 2004, Jamis Buck (
|
3
|
+
# Copyright (c) 2004,2005 Jamis Buck (jamis_buck@byu.edu)
|
4
4
|
# All rights reserved.
|
5
5
|
#
|
6
6
|
# This source file is distributed as part of the Net::SSH Secure Shell Client
|
@@ -1,6 +1,6 @@
|
|
1
1
|
#--
|
2
2
|
# =============================================================================
|
3
|
-
# Copyright (c) 2004, Jamis Buck (
|
3
|
+
# Copyright (c) 2004,2005 Jamis Buck (jamis_buck@byu.edu)
|
4
4
|
# All rights reserved.
|
5
5
|
#
|
6
6
|
# This source file is distributed as part of the Net::SSH Secure Shell Client
|
@@ -1,6 +1,6 @@
|
|
1
1
|
#--
|
2
2
|
# =============================================================================
|
3
|
-
# Copyright (c) 2004, Jamis Buck (
|
3
|
+
# Copyright (c) 2004,2005 Jamis Buck (jamis_buck@byu.edu)
|
4
4
|
# All rights reserved.
|
5
5
|
#
|
6
6
|
# This source file is distributed as part of the Net::SSH Secure Shell Client
|
@@ -1,6 +1,6 @@
|
|
1
1
|
#--
|
2
2
|
# =============================================================================
|
3
|
-
# Copyright (c) 2004, Jamis Buck (
|
3
|
+
# Copyright (c) 2004,2005 Jamis Buck (jamis_buck@byu.edu)
|
4
4
|
# All rights reserved.
|
5
5
|
#
|
6
6
|
# This source file is distributed as part of the Net::SSH Secure Shell Client
|
@@ -1,6 +1,6 @@
|
|
1
1
|
#--
|
2
2
|
# =============================================================================
|
3
|
-
# Copyright (c) 2004, Jamis Buck (
|
3
|
+
# Copyright (c) 2004,2005 Jamis Buck (jamis_buck@byu.edu)
|
4
4
|
# All rights reserved.
|
5
5
|
#
|
6
6
|
# This source file is distributed as part of the Net::SSH Secure Shell Client
|
@@ -1,6 +1,6 @@
|
|
1
1
|
#--
|
2
2
|
# =============================================================================
|
3
|
-
# Copyright (c) 2004, Jamis Buck (
|
3
|
+
# Copyright (c) 2004,2005 Jamis Buck (jamis_buck@byu.edu)
|
4
4
|
# All rights reserved.
|
5
5
|
#
|
6
6
|
# This source file is distributed as part of the Net::SSH Secure Shell Client
|
@@ -1,6 +1,6 @@
|
|
1
1
|
#--
|
2
2
|
# =============================================================================
|
3
|
-
# Copyright (c) 2004, Jamis Buck (
|
3
|
+
# Copyright (c) 2004,2005 Jamis Buck (jamis_buck@byu.edu)
|
4
4
|
# All rights reserved.
|
5
5
|
#
|
6
6
|
# This source file is distributed as part of the Net::SSH Secure Shell Client
|
@@ -1,6 +1,6 @@
|
|
1
1
|
#--
|
2
2
|
# =============================================================================
|
3
|
-
# Copyright (c) 2004, Jamis Buck (
|
3
|
+
# Copyright (c) 2004,2005 Jamis Buck (jamis_buck@byu.edu)
|
4
4
|
# All rights reserved.
|
5
5
|
#
|
6
6
|
# This source file is distributed as part of the Net::SSH Secure Shell Client
|
@@ -1,6 +1,6 @@
|
|
1
1
|
#--
|
2
2
|
# =============================================================================
|
3
|
-
# Copyright (c) 2004, Jamis Buck (
|
3
|
+
# Copyright (c) 2004,2005 Jamis Buck (jamis_buck@byu.edu)
|
4
4
|
# All rights reserved.
|
5
5
|
#
|
6
6
|
# This source file is distributed as part of the Net::SSH Secure Shell Client
|
@@ -1,6 +1,6 @@
|
|
1
1
|
#--
|
2
2
|
# =============================================================================
|
3
|
-
# Copyright (c) 2004, Jamis Buck (
|
3
|
+
# Copyright (c) 2004,2005 Jamis Buck (jamis_buck@byu.edu)
|
4
4
|
# All rights reserved.
|
5
5
|
#
|
6
6
|
# This source file is distributed as part of the Net::SSH Secure Shell Client
|
@@ -1,6 +1,6 @@
|
|
1
1
|
#--
|
2
2
|
# =============================================================================
|
3
|
-
# Copyright (c) 2004, Jamis Buck (
|
3
|
+
# Copyright (c) 2004,2005 Jamis Buck (jamis_buck@byu.edu)
|
4
4
|
# All rights reserved.
|
5
5
|
#
|
6
6
|
# This source file is distributed as part of the Net::SSH Secure Shell Client
|
@@ -1,6 +1,6 @@
|
|
1
1
|
#--
|
2
2
|
# =============================================================================
|
3
|
-
# Copyright (c) 2004, Jamis Buck (
|
3
|
+
# Copyright (c) 2004,2005 Jamis Buck (jamis_buck@byu.edu)
|
4
4
|
# All rights reserved.
|
5
5
|
#
|
6
6
|
# This source file is distributed as part of the Net::SSH Secure Shell Client
|
@@ -1,6 +1,6 @@
|
|
1
1
|
#--
|
2
2
|
# =============================================================================
|
3
|
-
# Copyright (c) 2004, Jamis Buck (
|
3
|
+
# Copyright (c) 2004,2005 Jamis Buck (jamis_buck@byu.edu)
|
4
4
|
# All rights reserved.
|
5
5
|
#
|
6
6
|
# This source file is distributed as part of the Net::SSH Secure Shell Client
|
@@ -1,6 +1,6 @@
|
|
1
1
|
#--
|
2
2
|
# =============================================================================
|
3
|
-
# Copyright (c) 2004, Jamis Buck (
|
3
|
+
# Copyright (c) 2004,2005 Jamis Buck (jamis_buck@byu.edu)
|
4
4
|
# All rights reserved.
|
5
5
|
#
|
6
6
|
# This source file is distributed as part of the Net::SSH Secure Shell Client
|
@@ -1,6 +1,6 @@
|
|
1
1
|
#--
|
2
2
|
# =============================================================================
|
3
|
-
# Copyright (c) 2004, Jamis Buck (
|
3
|
+
# Copyright (c) 2004,2005 Jamis Buck (jamis_buck@byu.edu)
|
4
4
|
# All rights reserved.
|
5
5
|
#
|
6
6
|
# This source file is distributed as part of the Net::SSH Secure Shell Client
|
@@ -1,6 +1,6 @@
|
|
1
1
|
#--
|
2
2
|
# =============================================================================
|
3
|
-
# Copyright (c) 2004, Jamis Buck (
|
3
|
+
# Copyright (c) 2004,2005 Jamis Buck (jamis_buck@byu.edu)
|
4
4
|
# All rights reserved.
|
5
5
|
#
|
6
6
|
# This source file is distributed as part of the Net::SSH Secure Shell Client
|
@@ -1,6 +1,6 @@
|
|
1
1
|
#--
|
2
2
|
# =============================================================================
|
3
|
-
# Copyright (c) 2004, Jamis Buck (
|
3
|
+
# Copyright (c) 2004,2005 Jamis Buck (jamis_buck@byu.edu)
|
4
4
|
# All rights reserved.
|
5
5
|
#
|
6
6
|
# This source file is distributed as part of the Net::SSH Secure Shell Client
|
@@ -1,6 +1,6 @@
|
|
1
1
|
#--
|
2
2
|
# =============================================================================
|
3
|
-
# Copyright (c) 2004, Jamis Buck (
|
3
|
+
# Copyright (c) 2004,2005 Jamis Buck (jamis_buck@byu.edu)
|
4
4
|
# All rights reserved.
|
5
5
|
#
|
6
6
|
# This source file is distributed as part of the Net::SSH Secure Shell Client
|
@@ -1,6 +1,6 @@
|
|
1
1
|
#--
|
2
2
|
# =============================================================================
|
3
|
-
# Copyright (c) 2004, Jamis Buck (
|
3
|
+
# Copyright (c) 2004,2005 Jamis Buck (jamis_buck@byu.edu)
|
4
4
|
# All rights reserved.
|
5
5
|
#
|
6
6
|
# This source file is distributed as part of the Net::SSH Secure Shell Client
|
@@ -1,6 +1,6 @@
|
|
1
1
|
#--
|
2
2
|
# =============================================================================
|
3
|
-
# Copyright (c) 2004, Jamis Buck (
|
3
|
+
# Copyright (c) 2004,2005 Jamis Buck (jamis_buck@byu.edu)
|
4
4
|
# All rights reserved.
|
5
5
|
#
|
6
6
|
# This source file is distributed as part of the Net::SSH Secure Shell Client
|
data/test/userauth/tc_agent.rb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
#--
|
2
2
|
# =============================================================================
|
3
|
-
# Copyright (c) 2004, Jamis Buck (
|
3
|
+
# Copyright (c) 2004,2005 Jamis Buck (jamis_buck@byu.edu)
|
4
4
|
# All rights reserved.
|
5
5
|
#
|
6
6
|
# This source file is distributed as part of the Net::SSH Secure Shell Client
|
data/test/userauth/tc_driver.rb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
#--
|
2
2
|
# =============================================================================
|
3
|
-
# Copyright (c) 2004, Jamis Buck (
|
3
|
+
# Copyright (c) 2004,2005 Jamis Buck (jamis_buck@byu.edu)
|
4
4
|
# All rights reserved.
|
5
5
|
#
|
6
6
|
# This source file is distributed as part of the Net::SSH Secure Shell Client
|
@@ -1,6 +1,6 @@
|
|
1
1
|
#--
|
2
2
|
# =============================================================================
|
3
|
-
# Copyright (c) 2004, Jamis Buck (
|
3
|
+
# Copyright (c) 2004,2005 Jamis Buck (jamis_buck@byu.edu)
|
4
4
|
# All rights reserved.
|
5
5
|
#
|
6
6
|
# This source file is distributed as part of the Net::SSH Secure Shell Client
|
@@ -53,7 +53,21 @@ if $run_integration_tests || __FILE__ == $0
|
|
53
53
|
|
54
54
|
def test_keyboard_interactive
|
55
55
|
@userauth.set_auth_method_order "keyboard-interactive"
|
56
|
+
|
57
|
+
called = 0
|
58
|
+
@registry.userauth[:methods].define.keyboard_interactive_callback do |c,p|
|
59
|
+
proc do |req|
|
60
|
+
called += 1
|
61
|
+
if req.prompts.length > 0
|
62
|
+
[ req.password ]
|
63
|
+
else
|
64
|
+
[]
|
65
|
+
end
|
66
|
+
end
|
67
|
+
end
|
68
|
+
|
56
69
|
assert @userauth.authenticate( SERVICE, USER, PASSWORD )
|
70
|
+
assert_equal 2, called
|
57
71
|
end
|
58
72
|
|
59
73
|
def test_password
|
@@ -1,6 +1,6 @@
|
|
1
1
|
#--
|
2
2
|
# =============================================================================
|
3
|
-
# Copyright (c) 2004, Jamis Buck (
|
3
|
+
# Copyright (c) 2004,2005 Jamis Buck (jamis_buck@byu.edu)
|
4
4
|
# All rights reserved.
|
5
5
|
#
|
6
6
|
# This source file is distributed as part of the Net::SSH Secure Shell Client
|
data/test/util/tc_buffer.rb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
#--
|
2
2
|
# =============================================================================
|
3
|
-
# Copyright (c) 2004, Jamis Buck (
|
3
|
+
# Copyright (c) 2004,2005 Jamis Buck (jamis_buck@byu.edu)
|
4
4
|
# All rights reserved.
|
5
5
|
#
|
6
6
|
# This source file is distributed as part of the Net::SSH Secure Shell Client
|
@@ -79,10 +79,10 @@ class WriteBufferTester < BufferTester
|
|
79
79
|
end
|
80
80
|
|
81
81
|
def test_write_bignum
|
82
|
-
bn = OpenSSL::BN.new( 1 )
|
83
|
-
@buffer.write_bignum OpenSSL::BN.new( 1 ),
|
84
|
-
OpenSSL::BN.new(
|
85
|
-
OpenSSL::BN.new(
|
82
|
+
bn = OpenSSL::BN.new( "1" )
|
83
|
+
@buffer.write_bignum OpenSSL::BN.new( "1" ),
|
84
|
+
OpenSSL::BN.new( "12345678", 16 ),
|
85
|
+
OpenSSL::BN.new( "ABCDEF123456", 16 )
|
86
86
|
expect = "\x00\x00\x00\x01\x01" +
|
87
87
|
"\x00\x00\x00\x04\x12\x34\x56\x78" +
|
88
88
|
"\x00\x00\x00\x07\x00\xAB\xCD\xEF\x12\x34\x56"
|
metadata
CHANGED
@@ -1,14 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
|
-
rubygems_version: 0.8.
|
2
|
+
rubygems_version: 0.8.4
|
3
3
|
specification_version: 1
|
4
4
|
name: net-ssh
|
5
5
|
version: !ruby/object:Gem::Version
|
6
|
-
version: 0.
|
7
|
-
date:
|
6
|
+
version: 0.9.0
|
7
|
+
date: 2005-01-11
|
8
8
|
summary: Net::SSH is a pure-Ruby implementation of the SSH2 client protocol.
|
9
9
|
require_paths:
|
10
10
|
- lib
|
11
|
-
author: Jamis Buck
|
12
11
|
email: jgb3@email.byu.edu
|
13
12
|
homepage: http://net-ssh.rubyforge.org
|
14
13
|
rubyforge_project:
|
@@ -25,22 +24,27 @@ required_ruby_version: !ruby/object:Gem::Version::Requirement
|
|
25
24
|
version: 0.0.0
|
26
25
|
version:
|
27
26
|
platform: ruby
|
27
|
+
authors:
|
28
|
+
- Jamis Buck
|
28
29
|
files:
|
29
30
|
- doc/LICENSE-RUBY
|
30
31
|
- doc/manual-html
|
31
32
|
- doc/LICENSE-BSD
|
32
33
|
- doc/LICENSE-GPL
|
33
34
|
- doc/manual
|
34
|
-
- doc/manual-html/
|
35
|
+
- doc/manual-html/stylesheets
|
35
36
|
- doc/manual-html/chapter-1.html
|
36
37
|
- doc/manual-html/chapter-2.html
|
37
38
|
- doc/manual-html/chapter-3.html
|
38
39
|
- doc/manual-html/chapter-4.html
|
39
40
|
- doc/manual-html/chapter-5.html
|
40
41
|
- doc/manual-html/chapter-6.html
|
42
|
+
- doc/manual-html/chapter-7.html
|
41
43
|
- doc/manual-html/index.html
|
42
|
-
- doc/manual/manual.css
|
44
|
+
- doc/manual-html/stylesheets/manual.css
|
45
|
+
- doc/manual-html/stylesheets/ruby.css
|
43
46
|
- doc/manual/manual.yml
|
47
|
+
- doc/manual/stylesheets
|
44
48
|
- doc/manual/tutorial.erb
|
45
49
|
- doc/manual/parts
|
46
50
|
- doc/manual/chapter.erb
|
@@ -48,7 +52,11 @@ files:
|
|
48
52
|
- doc/manual/example.erb
|
49
53
|
- doc/manual/index.erb
|
50
54
|
- doc/manual/manual.rb
|
55
|
+
- doc/manual/stylesheets/manual.css
|
56
|
+
- doc/manual/stylesheets/ruby.css
|
51
57
|
- doc/manual/parts/channels_what_are.txt
|
58
|
+
- doc/manual/parts/shells_sync.txt
|
59
|
+
- doc/manual/parts/shells_channels.txt
|
52
60
|
- doc/manual/parts/forward_handlers.txt
|
53
61
|
- doc/manual/parts/exec_open.txt
|
54
62
|
- doc/manual/parts/session_start.txt
|
@@ -56,7 +64,9 @@ files:
|
|
56
64
|
- doc/manual/parts/proxy_socks.txt
|
57
65
|
- doc/manual/parts/forward_intro.txt
|
58
66
|
- doc/manual/parts/session_options.txt
|
67
|
+
- doc/manual/parts/shells_shell.txt
|
59
68
|
- doc/manual/parts/intro_license.txt
|
69
|
+
- doc/manual/parts/shells_intro.txt
|
60
70
|
- doc/manual/parts/intro_what_is_not.txt
|
61
71
|
- doc/manual/parts/proxy_intro.txt
|
62
72
|
- doc/manual/parts/proxy_http.txt
|
@@ -67,6 +77,7 @@ files:
|
|
67
77
|
- doc/manual/parts/intro_what_is.txt
|
68
78
|
- doc/manual/parts/intro_support.txt
|
69
79
|
- doc/manual/parts/channels_loop.txt
|
80
|
+
- doc/manual/parts/shells_clients.txt
|
70
81
|
- doc/manual/parts/forward_remote.txt
|
71
82
|
- doc/manual/parts/channels_types.txt
|
72
83
|
- doc/manual/parts/forward_local.txt
|
@@ -130,9 +141,14 @@ files:
|
|
130
141
|
- lib/net/ssh/proxy/socks4.rb
|
131
142
|
- lib/net/ssh/proxy/socks5.rb
|
132
143
|
- lib/net/ssh/proxy/errors.rb
|
144
|
+
- lib/net/ssh/service/shell
|
133
145
|
- lib/net/ssh/service/forward
|
134
146
|
- lib/net/ssh/service/services.rb
|
135
147
|
- lib/net/ssh/service/process
|
148
|
+
- lib/net/ssh/service/shell/driver.rb
|
149
|
+
- lib/net/ssh/service/shell/sync.rb
|
150
|
+
- lib/net/ssh/service/shell/services.rb
|
151
|
+
- lib/net/ssh/service/shell/shell.rb
|
136
152
|
- lib/net/ssh/service/forward/driver.rb
|
137
153
|
- lib/net/ssh/service/forward/remote-network-handler.rb
|
138
154
|
- lib/net/ssh/service/forward/services.rb
|
@@ -157,12 +173,16 @@ files:
|
|
157
173
|
- lib/net/ssh/userauth/methods/publickey.rb
|
158
174
|
- lib/net/ssh/userauth/methods/password.rb
|
159
175
|
- lib/net/ssh/userauth/methods/services.rb
|
176
|
+
- lib/net/ssh/userauth/methods/keyboard-interactive.rb
|
160
177
|
- examples/port-forward.rb
|
161
178
|
- examples/process-demo.rb
|
162
179
|
- examples/remote-port-forward.rb
|
180
|
+
- examples/shell-demo.rb
|
181
|
+
- examples/sync-shell-demo.rb
|
163
182
|
- examples/tail-demo.rb
|
164
183
|
- examples/remote-net-port-forward.rb
|
165
184
|
- examples/channel-demo.rb
|
185
|
+
- examples/ssh-client.rb
|
166
186
|
- test/util
|
167
187
|
- test/transport
|
168
188
|
- test/proxy
|