SSHD Zugriff NUR mit Key

Hallo zusammen,

wie konfiguriere ich den UCS so, dass ssh Zugriffe nur mit Keys erlaubt sind?
Der sshd fragt, egal was ich an UCR Variablen ausprobiert habe, im Zweifelsfalle doch immer nach einem Passwort.
Er soll aber Verbindungen ablehnen, wenn der Auth Versuch nicht über Key erfolgt => “Permission denied (publickey)”

Für jeden Tip dankbar,
Christian

Hallo,

zumindest für root gehts:

# ucr search permitroot sshd/permitroot: yes Configures, whether the user root can login via SSH: The value 'yes' permits the login without limitations, 'without-password' only allows public key authentication without passwords and 'no' denies the root login altogether.

Viele Grüße,
Dirk Ahrnke

Mastodon