SSH Zugriff
| File-/Folder Structure |
Description |
Security |
SSH Ordner im Home Verzeichnis
chmod 700 ~/.ssh
~/.ssh/config
Erstelle eine eigene SSH Config, der Aufbau sollte wie folgt aussehen:
Host SomeHostAliasName
HostName domain.tld # or IP
User root # or another user
Eine Verbindung kann dann ssh SomeHostAliasName
durchgeführt
chmod 600 ~/.ssh/config
~/.ssh/id_rsaDein Private Key (niemals an andere übermitteln!!)
chmod 600 ~/.ssh/id_rsa
~/.ssh/id_rsa.pubDein Public Key (zum übermitteln an Dritte für Remote-Server Einrichtung)
chmod 600 ~/.ssh/id_rsa.pub
~/.ssh/authorized_keysPublic Keys die Zugriff auf den aktuellen Host haben
chmod 600 ~/.ssh/authorized_keys
~/.ssh/known_hostsEinträge zu (trusted) Hosts (Einträge werden i.d.R. automatisch ermittelt und per User Prompt zur Bestätigung erfragt)
chmod 600 ~/.ssh/known_hosts
| SSH Commands |
Description |
| ssh-keygen -t rsa -b 4096 -C "your_email@example.com" | Erstelle einen SSH Key mit 4096Bit Encryption |
| ssh -Tv git@github.com | Prüfe eine SSH Verbindung auf Korrektheit |