update go1.16 and ssh

This commit is contained in:
ston1th 2021-02-26 18:02:43 +01:00
commit e1a40570bf
2 changed files with 8 additions and 6 deletions

View file

@ -45,14 +45,16 @@ echo "writing ssh config"
cat <<EOF> ${ssh_config}
HostKey /etc/ssh/ssh_host_ed25519_key
HostKey /etc/ssh/ssh_host_rsa_key
KexAlgorithms curve25519-sha256@libssh.org,diffie-hellman-group-exchange-sha256
Ciphers chacha20-poly1305@openssh.com,aes256-gcm@openssh.com,aes128-gcm@openssh.com,aes256-ctr
MACs umac-128-etm@openssh.com,umac-64-etm@openssh.com,hmac-sha2-512-etm@openssh.com,hmac-sha2-256-etm@openssh.com
KexAlgorithms curve25519-sha256,curve25519-sha256@libssh.org,diffie-hellman-group-exchange-sha256
Ciphers chacha20-poly1305@openssh.com,aes256-gcm@openssh.com,aes128-gcm@openssh.com
MACs umac-128-etm@openssh.com,hmac-sha2-512-etm@openssh.com,hmac-sha2-256-etm@openssh.com
PermitRootLogin no
ChallengeResponseAuthentication no
PasswordAuthentication no
Subsystem sftp internal-sftp
HostbasedAuthentication no
KerberosAuthentication no
PrintMotd no
Subsystem sftp internal-sftp
EOF
[ "${UNAME}" = "Linux" ] && cat <<EOF>> ${ssh_config}