Hier werden die Unterschiede zwischen zwei Versionen angezeigt.
| Beide Seiten der vorigen RevisionVorhergehende Überarbeitung | |||
| en:howtos:ssh [2022/02/18 08:39] – [Schritt 5: nicht öffentliche Services lokal nutzen] morquai | en:howtos:ssh [2022/02/18 08:40] (aktuell) – [Fazit: Beispiel einer .ssh/config] morquai | ||
|---|---|---|---|
| Zeile 121: | Zeile 121: | ||
| Oh yes, what does the entry in .ssh/config look like? | Oh yes, what does the entry in .ssh/config look like? | ||
| DynamicForward 3128 | DynamicForward 3128 | ||
| - | ==== Fazit: Beispiel einer .ssh/config ==== | + | ==== Conclusion: Example of a .ssh/config ==== |
| - | # Ersteinmal die Einstellungen, | + | # First of all the settings that should apply to all computers |
| - | | + | |
| - | # ssh-agent | + | # ssh-agent |
| ForwardAgent yes | ForwardAgent yes | ||
| - | # Bei Ungereimtheiten mit Host Keys wollen wir gefragt werden | + | # If there are any inconsistencies with host keys, we want to be asked |
| StrictHostKeyChecking ask | StrictHostKeyChecking ask | ||
| - | # den Wert mancher Variablen wollen wir mitschleppen, | + | # We want to carry the value of some variables with us, here those |
| - | # die sich auf die Sprachumgebung beziehen | + | # related to the locale |
| SendEnv LANG LC_* | SendEnv LANG LC_* | ||
| - | # Wo steht nochmal unser Private Key? | + | # Where is our private key again? |
| - | IdentityFile | + | IdentityFile ~/ |
| - | # Nun zu Server.example.com | + | # Now to Server.example.com |
| - | # Da die für alle Hosts geltenden Einstellungen hier ebenfalls gültig sind, brauchen wir nur | + | # Since the settings that apply to all hosts are also valid here, we only need |
| - | # anzugeben, was sich ändert oder was hinzukommt | + | # indicate what changes or what is added |
| Host Server.example.com | Host Server.example.com | ||
| - | # wie lautet unser Benutzename | + | # what is our username |
| User user | User user | ||
| - | # unser netter | + | # our nice Socks 5 proxy |
| - | DynamicForward | + | DynamicForward 3128 |
| - | # Der lokale Forward um den Webserver auf server.example.com | + | # The local forward to reach the web server on server.example.com |
| - | # ist ja eigentlich unnötig, denn wir haben ja einen Dynamic Forward | + | # is actually unnecessary, because we have a dynamic forward |
| - | LocalForward | + | LocalForward 1234 localhost: |
| - | # Hier mal ein Beispiel für mehrere Server | + | # Here is an example for multiple servers |
| Host *.example.com | Host *.example.com | ||
| User user | User user | ||
| - | Die Grundlagen sind gelegt und die meisten Fragen beantwortet. Weitergehende | + | The basics have been laid and most questions have been answered. Further |
| - | + | ||