Hier werden die Unterschiede zwischen zwei Versionen gezeigt.
Beide Seiten, vorherige Überarbeitung Vorherige Überarbeitung Nächste Überarbeitung | Vorherige Überarbeitung | ||
admin_grundlagen:ssh [2025/04/04 14:06] ingo_wichmann [Public-Key auf anderen Rechner übertragen] |
admin_grundlagen:ssh [2025/08/14 12:24] (aktuell) ingo_wichmann [Syntax prüfen] |
||
---|---|---|---|
Zeile 77: | Zeile 77: | ||
===== Serverseitig Passwortauthentifizierung abschalten ===== | ===== Serverseitig Passwortauthentifizierung abschalten ===== | ||
- | <file txt /etc/ssh/sshd_config.d/local.conf> | + | <file txt /etc/ssh/sshd_config.d/keyonly.conf> |
- | UsePAM no | + | |
- | PasswordAuthentication no | + | |
- | </file> | + | |
- | + | ||
- | Alternativ (CentOS 7) | + | |
- | <file txt /etc/ssh/sshd_config> | + | |
UsePAM yes | UsePAM yes | ||
- | ChallengeResponseAuthentication no | + | KbdInteractiveAuthentication no |
PasswordAuthentication no | PasswordAuthentication no | ||
</file> | </file> | ||
==== Syntax prüfen ==== | ==== Syntax prüfen ==== | ||
- | ssh -t | + | sshd -t |
==== Dienst neu starten ==== | ==== Dienst neu starten ==== |