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

@ -16,8 +16,8 @@ bootstrap="${install_dir}/bootstrap-${v14}"
tgz14="${v14}.tar.gz"
path_v14="${install_dir}/${tgz14}"
new="go1.15"
new_sum="c8c1ab245204259a69d3f7ee8b58b4d0294f9b36a86b60dc686d3afa889c30b7"
new="go1.16"
new_sum="c03fb668e02d20bf56f19fbcfd1748ac8c225868c32912acbd0607130d44e4e4"
tgznew="${new}.tar.gz"
path_new="${install_dir}/${tgznew}"

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}