Skip to content

Commit

Permalink
Fix one-letter typo in -oKexAlgorithms=+diffie-hellman-group1-sha usage.
Browse files Browse the repository at this point in the history
  • Loading branch information
MegaManSec committed Jan 11, 2024
1 parent 1e96546 commit 6e54e54
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Snake.nocomments.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down
2 changes: 1 addition & 1 deletion Snake.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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")
}
Expand Down

0 comments on commit 6e54e54

Please sign in to comment.