Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
| efinf:blc2016:networks:ssh [2016/10/27 07:10] – [Login ohne Passwort] Ivo Blöchliger | efinf:blc2016:networks:ssh [2016/11/02 10:34] (current) – [Login ohne Passwort] Ivo Blöchliger | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | {{backlinks> | ||
| + | ===== SSH ===== | ||
| + | Die kryptographisch gesicherte eierlegende Wollmichsau. | ||
| + | ==== Secure SHell ==== | ||
| + | |||
| + | Login auf unseren Server: | ||
| + | <code bash> | ||
| + | ssh mycoolusername@fginfo.ksbg.ch | ||
| + | </ | ||
| + | Ändern des Passworts (wenn man einmal verbunden ist): | ||
| + | <code bash> | ||
| + | passwd | ||
| + | </ | ||
| + | |||
| + | Legen Sie auf dem Server in Ihrem Home-Directory einen Ordner ' | ||
| + | |||
| + | ==== Secure CoPy ==== | ||
| + | Kopieren von Dateien: | ||
| + | <code bash> | ||
| + | scp index.html mycoolusername@fginfo.ksbg.ch: | ||
| + | </ | ||
| + | |||
| + | ==== Login ohne Passwort ==== | ||
| + | Public/ | ||
| + | <code bash> | ||
| + | ssh-keygen | ||
| + | </ | ||
| + | Key kopieren: | ||
| + | <code bash> | ||
| + | ssh-copy-id mycoolusername@fginfo.ksbg.ch | ||
| + | </ | ||
| + | Jetzt kann sogar das login per Passwort unterbunden werden, bzw. ein supersicheres Passwort gesetzt werden. | ||
| + | |||
| + | === User und Hostname setzen === | ||
| + | Legen Sie eine Datei ~/ | ||
| + | <code txt> | ||
| + | # contents of $HOME/ | ||
| + | Host fginfo | ||
| + | HostName fginfo.ksbg.ch | ||
| + | User my_very_cool_but_too_long_username | ||
| + | </ | ||
| + | Sie können sich jetzt einfach mit | ||
| + | <code bash> | ||
| + | ssh fginfo | ||
| + | </ | ||
| + | verbinden. | ||