diff options
author | turret <turret@duck.com> | 2023-10-04 14:09:20 -0500 |
---|---|---|
committer | turret <turret@duck.com> | 2023-10-04 14:09:20 -0500 |
commit | 26719337d8d4bc58faddf6b574672af4d855ec0a (patch) | |
tree | b1f5aee2063a7e980c48034f8717f31fc96b08db /repo-specific/github-ssh-wrapper | |
parent | a5e984df5ed5ec7a04558cd7b33bae43c0547f7a (diff) | |
download | hooks-26719337d8d4bc58faddf6b574672af4d855ec0a.tar.gz hooks-26719337d8d4bc58faddf6b574672af4d855ec0a.tar.bz2 hooks-26719337d8d4bc58faddf6b574672af4d855ec0a.zip |
meta: organise into directory
Diffstat (limited to 'repo-specific/github-ssh-wrapper')
-rwxr-xr-x | repo-specific/github-ssh-wrapper | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/repo-specific/github-ssh-wrapper b/repo-specific/github-ssh-wrapper new file mode 100755 index 0000000..b05ff4f --- /dev/null +++ b/repo-specific/github-ssh-wrapper @@ -0,0 +1,11 @@ +#!/bin/sh +# also ripped from gentoo's githooks (they're simply awesome) + +# Use via GIT_SSH +# OBSOLETE!!! Github is terrible and requires old ciphers/kex/macs +#CIPHERS='-o Ciphers=chacha20-poly1305@openssh.com,aes256-gcm@openssh.com,aes128-gcm@openssh.com,aes256-ctr,aes192-ctr,aes128-ctr,aes256-cbc,aes192-cbc,aes128-cbc' +#KEX='-o KexAlgorithms=curve25519-sha256@libssh.org,diffie-hellman-group-exchange-sha256,diffie-hellman-group14-sha1,diffie-hellman-group-exchange-sha1,diffie-hellman-group1-sha1' +#MACS='-o MACs=hmac-sha2-512-etm@openssh.com,hmac-sha2-256-etm@openssh.com,hmac-ripemd160-etm@openssh.com,umac-128-etm@openssh.com,hmac-sha2-512,hmac-sha2-256,hmac-ripemd160,hmac-sha1' + +# Now run it +exec ssh ${GIT_SSH_KEY:+-i} ${GIT_SSH_KEY} $CIPHERS $KEX $MACS "$@" |