/etc/ssh/sshd_config
PubkeyAuthentication yes PubkeyAcceptedKeyTypes=+ssh-rsa
Или более изящно
echo 'PubkeyAcceptedKeyTypes=+ssh-rsa' >/etc/ssh/sshd_config.d/pubkey_rsa.conf systemctl restart ssh
Аналогично предыдущему
echo 'PubkeyAcceptedKeyTypes=+ssh-dss' >/etc/ssh/sshd_config.d/pubkey_dss.conf systemctl restart ssh
нужно выполнить:
ssh-add
Сделать в файле ~/.ssh/config следующие строки
Host server_name server_ip KexAlgorithms +diffie-hellman-group14-sha1
Сделать в файле ~/.ssh/config следующие строки
Host server_name server_ip HostKeyAlgorithms +ssh-dss
#update-crypto-policies --show DEFAULT #update-crypto-policies --set LEGACY Setting system policy to LEGACY Note: System-wide crypto policies are applied on application start-up. It is recommended to restart the system for the change of policies to fully take place. #update-crypto-policies --show LEGACY
update-crypto-policies --set DEFAULT:SHA1