summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFabian Trampusch <fabian.trampusch@freenet.de>2014-12-16 22:02:27 +0100
committerFabian Trampusch <fabian.trampusch@freenet.de>2014-12-22 12:50:40 +0100
commit08067c1eb9c37966274bcfd0b2d7424ce6b7dd10 (patch)
treec76c6744d916ace6b010f024a891fb9024501c15
parent00490d67008b2528e9be30cb14c097fdc30d2c9d (diff)
downloadnet-ssh-08067c1eb9c37966274bcfd0b2d7424ce6b7dd10.tar.gz
added documentation about paranoid and own verifiers
-rw-r--r--lib/net/ssh.rb8
1 files changed, 6 insertions, 2 deletions
diff --git a/lib/net/ssh.rb b/lib/net/ssh.rb
index 37acea1..9dfbcd0 100644
--- a/lib/net/ssh.rb
+++ b/lib/net/ssh.rb
@@ -130,7 +130,7 @@ module Net
# the keepalive_interval seconds. Defaults to +false+.
# * :keepalive_interval => the interval seconds for keepalive.
# Defaults to +300+ seconds.
- # :keepalive_maxcount => the maximun number of keepalive packet miss allowed.
+ # * :keepalive_maxcount => the maximun number of keepalive packet miss allowed.
# * :kex => the key exchange algorithm (or algorithms) to use
# * :keys => an array of file names of private keys to use for publickey
# and hostbased authentication
@@ -147,7 +147,11 @@ module Net
# * :max_win_size => maximum size we tell the other side that is supported for
# the window.
# * :paranoid => either false, true, :very, or :secure specifying how
- # strict host-key verification should be (in increasing order here)
+ # strict host-key verification should be (in increasing order here).
+ # You can also provide an own Object which responds to +verify+. The argument
+ # given to +verify+ is a hash consisting of the +:key+, the +:key_blob+,
+ # the +:fingerprint+ and the +:session+. Returning true accepts the host key,
+ # returning false declines it and closes the connection.
# * :passphrase => the passphrase to use when loading a private key (default
# is +nil+, for no passphrase)
# * :password => the password to use to login