|
|
|
@@ -19,6 +19,14 @@ fi |
|
|
|
sed -i 's/#HostKey \/etc\/ssh\/ssh_host_rsa_key/HostKey \/etc\/ssh\/ssh_host_rsa_key/g' /etc/ssh/sshd_config |
|
|
|
echo "HostKeyAlgorithms ssh-rsa" >> /etc/ssh/sshd_config |
|
|
|
|
|
|
|
# https://www.leonardw.de/en/blog/brother-ads-2400n-paperless-ngx/ |
|
|
|
# Force old algorithms that the scanner (OpenSSH 6.0) understands |
|
|
|
echo "KexAlgorithms diffie-hellman-group14-sha1" >> /etc/ssh/sshd_config |
|
|
|
echo "Ciphers aes128-cbc,aes256-cbc,3des-cbc" >> /etc/ssh/sshd_config |
|
|
|
echo "MACs hmac-sha1" >> /etc/ssh/sshd_config |
|
|
|
echo "HostKeyAlgorithms +ssh-rsa" >> /etc/ssh/sshd_config |
|
|
|
echo "PubkeyAcceptedAlgorithms +ssh-rsa" >> /etc/ssh/sshd_config |
|
|
|
|
|
|
|
# https://bugs.launchpad.net/ubuntu/+source/openssh/+bug/45234 |
|
|
|
mkdir -p /var/run/sshd |
|
|
|
|