Skip to content

Instantly share code, notes, and snippets.

@levid0s
Last active December 23, 2023 20:56
Show Gist options
  • Save levid0s/e4f219ff9d27741173fd56e93741211e to your computer and use it in GitHub Desktop.
Save levid0s/e4f219ff9d27741173fd56e93741211e to your computer and use it in GitHub Desktop.
SSH: Unable to negotiate, no matching key exchange method found
$ ssh [email protected]
Unable to negotiate with 192.168.1.1 port 22: no matching key exchange method found. Their offer: diffie-hellman-group14-sha1,diffie-hellman-group1-sha1,[email protected]
$ ssh -oKexAlgorithms=+diffie-hellman-group1-sha1 -o PubkeyAuthentication=no -o PreferredAuthentications=password -o HostKeyAlgorithms=+ssh-rsa [email protected]
BusyBox v1.23.2 (2019-02-19 01:57:00 UTC) built-in shell (ash)
# sources:
# https://unix.stackexchange.com/questions/15138/how-to-force-ssh-client-to-use-only-password-auth
# https://unix.stackexchange.com/questions/340844/how-to-enable-diffie-hellman-group1-sha1-key-exchange-on-debian-8-0
# Tunnel web admin via jumpbox
ssh -L 8082:192.168.1.1:80 user@jumpbox
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment