admin_grundlagen:ssh
Unterschiede
Hier werden die Unterschiede zwischen zwei Versionen gezeigt.
| Beide Seiten, vorherige ÜberarbeitungVorherige ÜberarbeitungNächste Überarbeitung | Vorherige Überarbeitung | ||
| admin_grundlagen:ssh [2023/12/27 10:45] – [mit authorized_keys command] ingo_wichmann | admin_grundlagen:ssh [2026/10/23 14:13] (aktuell) – [Serverseitig Passwortauthentifizierung abschalten] ingo_wichmann | ||
|---|---|---|---|
| Zeile 69: | Zeile 69: | ||
| ===== Public-Key auf anderen Rechner übertragen ===== | ===== Public-Key auf anderen Rechner übertragen ===== | ||
| - | ssh-copy-id | + | ssh-copy-id nutzer05@notebook06 |
| oder von Hand: | oder von Hand: | ||
| ssh nutzer05@notebook06 'mkdir -m 700 ~/ | ssh nutzer05@notebook06 'mkdir -m 700 ~/ | ||
| Zeile 77: | Zeile 77: | ||
| ===== Serverseitig Passwortauthentifizierung abschalten ===== | ===== Serverseitig Passwortauthentifizierung abschalten ===== | ||
| - | <file txt / | + | <file txt / |
| - | UsePAM no | + | UsePAM |
| - | PasswordAuthentication no | + | KbdInteractiveAuthentication |
| + | PasswordAuthentication no | ||
| </ | </ | ||
| - | Alternativ (CentOS 7) | + | ==== Syntax prüfen ==== |
| - | <file txt / | + | |
| - | | + | |
| - | | + | ==== Dienst neu starten ==== |
| - | | + | Debian: |
| - | </ | + | |
| + | Rocky Linux: | ||
| + | systemctl restart sshd.service | ||
| ===== ssh-agent ===== | ===== ssh-agent ===== | ||
| Zeile 102: | Zeile 105: | ||
| ===== Nutzer Zugriff beschränken ===== | ===== Nutzer Zugriff beschränken ===== | ||
| ==== mit authorized_keys command ==== | ==== mit authorized_keys command ==== | ||
| - | //Problem: die Datei '' | + | //Problem: die Datei '' |
| <file txt ~/ | <file txt ~/ | ||
| Zeile 142: | Zeile 145: | ||
| ssh notebook02 | ssh notebook02 | ||
| - | Bei älteren SSH-Versionen: | + | ++++ Bei älteren SSH-Versionen |
| centos 7, debian 8, ubuntu 16.04: | centos 7, debian 8, ubuntu 16.04: | ||
| Zeile 166: | Zeile 169: | ||
| ProxyCommand ssh -q notebook01.linuxhotel.de nc %h %p | ProxyCommand ssh -q notebook01.linuxhotel.de nc %h %p | ||
| </ | </ | ||
| + | ++++ | ||
| ===== Hop Server ===== | ===== Hop Server ===== | ||
| // | // | ||
admin_grundlagen/ssh.1703673956.txt.gz · Zuletzt geändert: 2023/12/27 10:45 von ingo_wichmann
