Last active
October 11, 2021 12:28
-
-
Save annttu/b7c55e99b656b7ade511e48e37edc258 to your computer and use it in GitHub Desktop.
Vammassh
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| OPTS="" | |
| OPTS="$OPTS -o HostKeyAlgorithms=+ssh-rsa,ssh-dss " | |
| OPTS="$OPTS -o Ciphers=+aes128-cbc,3des-cbc,aes192-cbc,aes256-cbc " | |
| OPTS="$OPTS -o Macs=+hmac-sha1,hmac-sha1-96,hmac-md5,hmac-md5-96 " | |
| OPTS="$OPTS -o KexAlgorithms=+diffie-hellman-group-exchange-sha256,diffie-hellman-group14-sha1,diffie-hellman-group1-sha1 " | |
| OPTS="$OPTS -o PubkeyAcceptedKeyTypes=+ssh-rsa,ssh-dss " | |
| # OPTS="$OPTS -o IdentityFile=none -o IdentityAgent=none " # Enable if you don't want to pass ssh keys or agent | |
| unset SSH_AUTH_SOCK | |
| exec ssh $OPTS $@ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment

The default ssh client in OSX doesn't understand the '+' notation in any of these opts. (El Capitan)