Skip to content

Instantly share code, notes, and snippets.

@annttu
Last active October 11, 2021 12:28
Show Gist options
  • Select an option

  • Save annttu/b7c55e99b656b7ade511e48e37edc258 to your computer and use it in GitHub Desktop.

Select an option

Save annttu/b7c55e99b656b7ade511e48e37edc258 to your computer and use it in GitHub Desktop.
Vammassh
#!/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 $@
@jhulkko
Copy link

jhulkko commented Nov 2, 2016

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

@ossimoi
Copy link

ossimoi commented Oct 21, 2018

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

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment