forked from extern/SSH-Snake
Fix one-letter typo in -oKexAlgorithms=+diffie-hellman-group1-sha usage.
This commit is contained in:
parent
1e965466e4
commit
6e54e542a9
@ -390,7 +390,7 @@ ssh_extra_options=(-oHostkeyAlgorithms=+ssh-rsa -oKexAlgorithms=+diffie-hellman-
|
||||
for ssh_extra_option in "${ssh_extra_options[@]}"; do
|
||||
[[ "$(ssh "$ssh_extra_option" 2>&1)" =~ Bad\ protocol\ 2\ host\ key\ algorithms|Bad\ SSH2\ KexAlgorithms|Bad\ key\ types|diffie-hellman-group1-sha1|ssh-rsa ]] || ssh_options+=("$ssh_extra_option")
|
||||
done
|
||||
ssh_extra_options="-oPubkeyAcceptedKeyTypes=+ssh-rsa"
|
||||
ssh_extra_option="-oPubkeyAcceptedKeyTypes=+ssh-rsa"
|
||||
[[ "$(ssh "$ssh_extra_option" 2>&1)" =~ Bad\ configuration\ option|pubkeyacceptedkeytypes ]] || ssh_options+=("$ssh_extra_option")
|
||||
}
|
||||
init_current_ips() {
|
||||
|
2
Snake.sh
2
Snake.sh
@ -664,7 +664,7 @@ check_ssh_options() {
|
||||
for ssh_extra_option in "${ssh_extra_options[@]}"; do
|
||||
[[ "$(ssh "$ssh_extra_option" 2>&1)" =~ Bad\ protocol\ 2\ host\ key\ algorithms|Bad\ SSH2\ KexAlgorithms|Bad\ key\ types|diffie-hellman-group1-sha1|ssh-rsa ]] || ssh_options+=("$ssh_extra_option")
|
||||
done
|
||||
ssh_extra_options="-oPubkeyAcceptedKeyTypes=+ssh-rsa"
|
||||
ssh_extra_option="-oPubkeyAcceptedKeyTypes=+ssh-rsa"
|
||||
[[ "$(ssh "$ssh_extra_option" 2>&1)" =~ Bad\ configuration\ option|pubkeyacceptedkeytypes ]] || ssh_options+=("$ssh_extra_option")
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user