16 433
правки
(→Запрет авторизации по паролю: Поправил) |
|||
Строка 87: | Строка 87: | ||
nano /etc/ssh/sshd_config | nano /etc/ssh/sshd_config | ||
</syntaxhighlight> | </syntaxhighlight> | ||
# Измените | # Измените параметр PasswordAuthentication с yes на no: | ||
#:<syntaxhighlight lang="bash"> | #:<syntaxhighlight lang="bash"> | ||
PasswordAuthentication no | PasswordAuthentication no | ||
</syntaxhighlight> | </syntaxhighlight> | ||
# Измените параметр PubkeyAuthentication с no на yes: | |||
#:<syntaxhighlight lang="bash"> | |||
PubkeyAuthentication yes | |||
</syntaxhighlight> | |||
#{{Wbincludes:Save nano}} | #{{Wbincludes:Save nano}} | ||