Port 2222
PermitRootLogin no
PasswordAuthentication no
MaxAuthTries 3
AllowUsers deploy admin
Не закривайте поточну сесію до перевірки нових налаштувань:
sshd -t && systemctl reload sshdPort 2222
PermitRootLogin no
PasswordAuthentication no
MaxAuthTries 3
AllowUsers deploy admin
sshd -t && systemctl reload sshd