Сервер SSH, файл sshd_config
https://vds-admin.ru/ssh/nastroika-servera-ssh-vo-freebsd-fail-sshdconfig
Сервер SSH, файл sshd_config
конфигурация sshd
Проверка существующей конфигурации SSHD
sshd -T | grep "\(ciphers\|macs\|kexalgorithms\)"
Редактирование конфигурации SSHD
/etc/ssh/sshd_config
И добавляем следующие строки
Для alpain
rc-service sshd reload
Для debian
systemctl force-reload sshd
sshd -T | grep "\(ciphers\|macs\|kexalgorithms\)"
Редактирование конфигурации SSHD
/etc/ssh/sshd_config
И добавляем следующие строки
Код: Выделить всё
#ciphers aes128-ctr,aes192-ctr,aes256-ctr,aes128-cbc
#macs hmac-sha1,[email protected],hmac-sha2-256,hmac-sha2-512
ciphers [email protected],aes128-ctr,aes192-ctr,aes256-ctr,[email protected],[email protected]
macs [email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],hmac-sha2-256,hmac-sha2-512,hmac-sha1
kexalgorithms curve25519-sha256,[email protected],ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group-exchange-sha256,diffie-hellman-group16-sha512,diffie-hellman-group18-sha512,diffie-hellman-group14-sha256,diffie-hellman-group14-sha1
KexAlgorithms +diffie-hellman-group1-sha1,diffie-hellman-group-exchange-sha1
HostkeyAlgorithms +ssh-dss,ssh-rsa
rc-service sshd reload
Для debian
systemctl force-reload sshd
Re: Сервер SSH, файл sshd_config
для аутентификации по ключу добавить в
/etc/ssh/sshd_config
Для alpain
Для debian
Для devuan с системой инициализации runit ( ps -p 1 -o comm= )
/etc/ssh/sshd_config
Код: Выделить всё
HostkeyAlgorithms +ssh-rsa
PubkeyAcceptedAlgorithms +ssh-rsa
Код: Выделить всё
rc-service sshd reloadКод: Выделить всё
systemctl force-reload sshdКод: Выделить всё
sudo sv force-reload ssh