diff options
author | Remco de Man <gitlab@remcodeman.nl> | 2023-01-05 10:12:09 +0100 |
---|---|---|
committer | Remco de Man <gitlab@remcodeman.nl> | 2023-01-05 10:12:09 +0100 |
commit | efbaadb5598217cd215ece30bd7243bea4128ef2 (patch) | |
tree | cf54ceaed282ef4c2c461457c25a59149437db91 /lib/net/ssh.rb | |
parent | 8a176a6ea0db1b59a21834df806a257a0b76e943 (diff) | |
download | net-ssh-efbaadb5598217cd215ece30bd7243bea4128ef2.tar.gz |
Accept pubkey_algorithms option when starting a new connection
Diffstat (limited to 'lib/net/ssh.rb')
-rw-r--r-- | lib/net/ssh.rb | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/net/ssh.rb b/lib/net/ssh.rb index b72ab7f..7578d40 100644 --- a/lib/net/ssh.rb +++ b/lib/net/ssh.rb @@ -73,7 +73,7 @@ module Net max_win_size send_env set_env use_agent number_of_password_prompts append_all_supported_algorithms non_interactive password_prompt agent_socket_factory minimum_dh_bits verify_host_key - fingerprint_hash check_host_ip + fingerprint_hash check_host_ip pubkey_algorithms ] # The standard means of starting a new SSH connection. When used with a @@ -170,6 +170,11 @@ module Net # * :properties => a hash of key/value pairs to add to the new connection's # properties (see Net::SSH::Connection::Session#properties) # * :proxy => a proxy instance (see Proxy) to use when connecting + # * :pubkey_algorithms => the public key authentication algorithms to use for + # this connection. Valid values are 'rsa-sha2-256-cert-v01@openssh.com', + # 'ssh-rsa-cert-v01@openssh.com', 'rsa-sha2-256', 'ssh-rsa'. Currently, this + # option is only used for RSA public key authentication and ignored for other + # types. # * :rekey_blocks_limit => the max number of blocks to process before rekeying # * :rekey_limit => the max number of bytes to process before rekeying # * :rekey_packet_limit => the max number of packets to process before rekeying |