diff options
author | Hans Nilsson <[email protected]> | 2015-06-08 21:43:23 +0200 |
---|---|---|
committer | Hans Nilsson <[email protected]> | 2015-06-09 14:55:18 +0200 |
commit | dc3b2ec3a2e89d48c9fb3329c756107cfb7442c2 (patch) | |
tree | 4c45dc2bd5d3b6c58a8ea7ed9811d69591d48510 /lib/ssh/src/ssh_connection_handler.erl | |
parent | 1e3637220afb2269a829ea0a15b98b05f38344a8 (diff) | |
download | otp-dc3b2ec3a2e89d48c9fb3329c756107cfb7442c2.tar.gz otp-dc3b2ec3a2e89d48c9fb3329c756107cfb7442c2.tar.bz2 otp-dc3b2ec3a2e89d48c9fb3329c756107cfb7442c2.zip |
ssh save keybard-interactive data in #ssh{}
Diffstat (limited to 'lib/ssh/src/ssh_connection_handler.erl')
-rw-r--r-- | lib/ssh/src/ssh_connection_handler.erl | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/ssh/src/ssh_connection_handler.erl b/lib/ssh/src/ssh_connection_handler.erl index 9bd49c5c05..d8bf66d2a8 100644 --- a/lib/ssh/src/ssh_connection_handler.erl +++ b/lib/ssh/src/ssh_connection_handler.erl @@ -1164,12 +1164,10 @@ init_ssh(server = Role, Vsn, Version, Options, Socket) -> s_version = Version, key_cb = KeyCb, io_cb = proplists:get_value(io_cb, Options, ssh_io), - opts = case lists:member("keyboard-interactive",AuthMethodsAsList) of - true -> [{max_kb_tries,3}|Options]; - false -> Options - end, + opts = Options, userauth_supported_methods = AuthMethods, userauth_methods = AuthMethodsAsList, + kb_tries_left = 3, peer = {undefined, PeerAddr}, available_host_keys = supported_host_keys(Role, KeyCb, Options) }. |