Ubuntu – SSH – Onemogući prijavu lozinkom

Preduvjet: prvo omogući autentikaciju certifikatom (v. pod Ansible)

Onemogućidba

  • nano /etc/ssh/sshd_config

Dodaj ili promijeni:

PasswordAuthentication no

Spremi i:

  • service ssh restart

ssh xssh disable xdisable password xpassword nopassword xnopassword authentication xauthentication

image_pdfimage_print