lib/net/ssh.rb in net-ssh-2.0.24 vs lib/net/ssh.rb in net-ssh-2.1.0
- old
+ new
@@ -64,11 +64,11 @@
:auth_methods, :compression, :compression_level, :config, :encryption,
:forward_agent, :hmac, :host_key, :kex, :keys, :key_data, :languages,
:logger, :paranoid, :password, :port, :proxy, :rekey_blocks_limit,
:rekey_limit, :rekey_packet_limit, :timeout, :verbose,
:global_known_hosts_file, :user_known_hosts_file, :host_key_alias,
- :host_name, :user, :properties, :passphrase
+ :host_name, :user, :properties, :passphrase, :keys_only
]
# The standard means of starting a new SSH connection. When used with a
# block, the connection will be closed when the block terminates, otherwise
# the connection will just be returned. The yielded (or returned) value
@@ -123,9 +123,13 @@
# * :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
# * :key_data => an array of strings, with each element of the array being
# a raw private key in PEM format.
+ # * :keys_only => set to +true+ to use only private keys from +keys+ and
+ # +key_data+ parameters, even if ssh-agent offers more identities. This
+ # option is intended for situations where ssh-agent offers many different
+ # identites.
# * :logger => the logger instance to use when logging
# * :paranoid => either true, false, or :very, specifying how strict
# host-key verification should be
# * :passphrase => the passphrase to use when loading a private key (default
# is +nil+, for no passphrase)