Use current bettercrypto ssh parameters
This commit is contained in:
parent
27d1b85abb
commit
5bf98b34f8
|
@ -121,6 +121,8 @@ function configure_ssh_client {
|
||||||
sudo mv ~/ssh_config /etc/ssh/ssh_config
|
sudo mv ~/ssh_config /etc/ssh/ssh_config
|
||||||
sudo chown root:root /etc/ssh/ssh_config
|
sudo chown root:root /etc/ssh/ssh_config
|
||||||
fi
|
fi
|
||||||
|
sudo sed -i "s/HostKeyAlgorithms.*/#HostKeyAlgorithms $SSH_HOST_KEY_ALGORITHMS/g" /etc/ssh/ssh_config
|
||||||
|
|
||||||
sudo sed -i "s/Ciphers.*/Ciphers $SSH_CIPHERS/g" /etc/ssh/ssh_config
|
sudo sed -i "s/Ciphers.*/Ciphers $SSH_CIPHERS/g" /etc/ssh/ssh_config
|
||||||
if ! grep -q "Ciphers " /etc/ssh/ssh_config; then
|
if ! grep -q "Ciphers " /etc/ssh/ssh_config; then
|
||||||
sudo cp /etc/ssh/ssh_config ~/ssh_config
|
sudo cp /etc/ssh/ssh_config ~/ssh_config
|
||||||
|
|
|
@ -30,10 +30,10 @@
|
||||||
|
|
||||||
SSH_PORT=2222
|
SSH_PORT=2222
|
||||||
|
|
||||||
# ssh (from https://stribika.github.io/2015/01/04/secure-secure-shell.html)
|
# Settings from bettercrypto.org
|
||||||
SSH_CIPHERS="chacha20-poly1305@openssh.com,aes256-gcm@openssh.com,aes128-gcm@openssh.com,aes256-ctr,aes192-ctr,aes128-ctr"
|
SSH_CIPHERS="aes256-gcm@openssh.com,aes128-gcm@openssh.com,aes256-ctr,aes128-ctr"
|
||||||
SSH_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,umac-128@openssh.com"
|
SSH_MACS="hmac-sha2-512-etm@openssh.com,hmac-sha2-256-etm@openssh.com,umac-128-etm@openssh.com,hmac-sha2-512,hmac-sha2-256,hmac-ripemd160"
|
||||||
SSH_KEX="curve25519-sha256@libssh.org,diffie-hellman-group-exchange-sha256"
|
SSH_KEX="diffie-hellman-group-exchange-sha256,diffie-hellman-group14-sha1,diffie-hellman-group-exchange-sha1"
|
||||||
SSH_HOST_KEY_ALGORITHMS="ssh-ed25519-cert-v01@openssh.com,ssh-rsa-cert-v01@openssh.com,ssh-rsa-cert-v00@openssh.com,ssh-ed25519,ssh-rsa"
|
SSH_HOST_KEY_ALGORITHMS="ssh-ed25519-cert-v01@openssh.com,ssh-rsa-cert-v01@openssh.com,ssh-rsa-cert-v00@openssh.com,ssh-ed25519,ssh-rsa"
|
||||||
|
|
||||||
function configure_ssh {
|
function configure_ssh {
|
||||||
|
|
Loading…
Reference in New Issue