Benutzer-Werkzeuge

Webseiten-Werkzeuge


en:howtos:ssh

Unterschiede

Hier werden die Unterschiede zwischen zwei Versionen angezeigt.

Link zu dieser Vergleichsansicht

Beide Seiten der vorigen RevisionVorhergehende Überarbeitung
Nächste Überarbeitung
Vorhergehende Überarbeitung
en:howtos:ssh [2022/02/18 08:30] – [SSH - Das Tool der Wahl] morquaien:howtos:ssh [2022/02/18 08:40] (aktuell) – [Fazit: Beispiel einer .ssh/config] morquai
Zeile 2: Zeile 2:
 Everyone who has to administer a server knows ssh, the secure tool for establishing a connection to a (Unix/Linux) server. But the real possibilities of this all-round tool only become apparent when you deal with it in detail. Here are the insights I've gathered so far. Everyone who has to administer a server knows ssh, the secure tool for establishing a connection to a (Unix/Linux) server. But the real possibilities of this all-round tool only become apparent when you deal with it in detail. Here are the insights I've gathered so far.
 ===== ssh-config ===== ===== ssh-config =====
-  ssh -p 921 -L 1234:server2:80 -L 3210:server3:3128 -D 3129 username@server1.example.com +   ssh -p 921 -L 1234:server2:80 -L 3210:server3:3128 -D 3129 username@server1.example.com 
-Dieser kryptische Befehl fließt nicht jedem flüssig aus der FederEin besseres Verständnis hat man, wenn man in der Datei .ssh/config die entsprechenden Einträge machtSehen wir uns das Ganze mal aus der Nähe an+This cryptic command does not flow smoothly from everyone's penYou can get a better understanding if you make the appropriate entries in the .ssh/config fileLet's take a closer look
-  Host server1 +   host server1 
-        HostName        server1.example.com +         HostName server1.example.com 
-        Port            921 +         Port 921 
-        User            username +         User username 
-        DynamicForward  3129 +         DynamicForward 3129 
-        LocalForward    1234 server2:80 +         LocalForward 1234 server2:80 
-        LocalForward    3210 server:3128 +         LocalForward 3210 server:3128 
-So sieht es lesbarer aus und der Befehl +So it looks more readable and the command 
-  ssh server1  +   ssh server1 
-reicht nun aus um denselben Effekt zu erzielenWir wollen jetzt noch nicht versuchendas Ganze im Detail zu verstehen, bekommen aber einen Eindruck davon, warum die Pflege einer Konfigurationsdatei für ssh Aufrufe sinnvoll istAlle weiteren Tipps zu ssh werde ich als Command und als Eintrag in der .ssh/config beschreiben.+is now sufficient to achieve the same effectWe don't want to try to understand the whole thing in detail just yetbut we'll get an impression of why maintaining a configuration file for ssh calls makes senseI will describe all other tips for ssh as a command and as an entry in .ssh/config. 
 +===== PuTTY or openssh ===== 
 +PuTTY is often mentioned as the tool of choice when talking about an ssh client under Windows. Unfortunately, most of the tricks are also possible with PuTTY, but you can't find them on the internet. The search for ssh options looks much better, which then has to be laboriously transferred to PuTTY. PuTTY is a ssh client with terminal emulation, openssh-client is just a ssh client without terminal emulation. \\ 
 +On Windows I only use (oops, there is one exception) [[https://cygwin.org/|Cygwin]] to use ssh connections. Beyond openssh, Cygwin on Windows allows me to use the oh-so-helpful Unix tools. Of course, Cygwin delivers the terminal emulation free of charge. Since openssh is maintained much better under Cygwin, new functionalities are available to me more quickly. \\ 
 +Result: I am using openssh (the original) and not PuTTY. 
 +==== Step 1: Login to a server ====
  
-===== PuTTY oder Openssh ===== +   ssh -l user server.example.com # or other 
-PuTTY wird oft als das Tool der Wahl genannt, sobald von einem ssh client unter Windows die Rede ist. Dummerweise sind die meisten  Tricks mit PuTTY ebenfalls möglich, man kann sie aber nicht im Internet finden. Viel besser sieht da die Recherche nach ssh Möglichkeiten aus, die man dann mühsam auf PuTTY übertragen muss. PuTTY ist ein ssh Client mit Terminal Emulation, openssh-client ist nur ein ssh client ohne eine Terminalemulation. \\ +   ssh user@server.example.com 
-Unter Windows verwende ich ausschliesslich (Uups, eine Ausnahme gibt es) [[https://cygwin.org/|Cygwin]] um ssh Verbindungen zu nutzen. Über openssh hinaus ermöglicht mir Cygwin unter Windows die Benutzung der ach so hilfreichen Unix Tools. Natürlich liefert Cygwin die Terminalemulation frei Haus. Da openssh unter Cygwin wesentlich besser gepflegt wird, stehen mir neue Funktionalitäten schneller zu Verfügung. \\ +Both commands are identical, openssh allows the user "user" to log in to the server "server.example.com"The corresponding entry in .ssh/config is 
-Ergebnis: Ich benutze openssh (das Original) und nicht PuTTY. +   Host server.example.com 
- +      User user 
-==== Schritt 1: Die Anmeldung an einem Server ==== +After entering 
- +   ssh server.example.com 
-  ssh -l user server.example.com # oder anders +you will be promptly asked for your password
-  ssh user@server.example.com +==== Step 2: this can also be done without a password ==== 
-Beide Befehle sind identisch, openssh ermöglicht einen Login des Benutzers "user" auf dem Server "server.example.com"Der entsprechende Eintrag in der .ssh/config lautet. +Of coursethe user has to identify himself, but this does not necessarily require a passwordAn SSH key (a kind of IDis also sufficientbut must first be createdI STRONGLY recommend protecting the key with a password ("passphrase"). The SSH key can then only be used once the password has been enteredSuch an SSH key is generated with the command
-  Host   server.example.com +  ssh-keygen -t rsa -b 2048 -f <filename
-     User  user +If you omit "-f <filename>", a file called "id_rsa" is created.
-Nach der Eingabe von +
-  ssh server.example.com +
-wird man freundlich nach dem Passwort gefragt+
-==== Schritt 2: geht das auch ohne Passwort ==== +
-Natürlich muss der Benutzer sich ausweisendafür ist aber nicht unbedingt ein Passwort erforderlichEin SSH Key (eine Art Ausweisreicht auch ausmuss aber erstmal angelegt werdenIch empfehle DRINGEND den Schlüssel mit einem Passwort ("passphrase"geschützt wirdEine Benutzung des SSH Keys ist dann nur möglich, wenn man das Passwort eingegeben hatDie Generierung eines solchen SSH Keys geschieht mit dem Befehl+
-  ssh-keygen -t rsa -b 2048 -f <dateiname+
-Lässt man "-f <dateiname>" wegwird eine Datei Namens "id_rsa" angelegt+
   ssh-keygen -t rsa -b 2048 -f /tmp/rsakey   ssh-keygen -t rsa -b 2048 -f /tmp/rsakey
     Generating public/private rsa key pair.     Generating public/private rsa key pair.
Zeile 42: Zeile 40:
     The key fingerprint is:     The key fingerprint is:
     SHA256:QNdA4hMYyLtz+Z5PZdgxxa2lRZSmygYf1xZQLz8SX1I beckhart@DESKTOP-JMK2FGP     SHA256:QNdA4hMYyLtz+Z5PZdgxxa2lRZSmygYf1xZQLz8SX1I beckhart@DESKTOP-JMK2FGP
-    The key'randomart image is:+    The key'random art image is:
     +---[RSA 2048]----+     +---[RSA 2048]----+
     | . ..o+.+o .o*+.E|     | . ..o+.+o .o*+.E|
-    |  o .o +  ... Bo | +    | o .o + ... Bo | 
-    |       Xo.o| +    | . + o Xo.o| 
-    |     o.o.o= =+.| +    | . o.o.o= =".| 
-    |   . .  S+++ o o.| +    | . . S+++ o o.| 
-    |  o o    o=   . .| +    | o o o= . .| 
-    |   o .  ..       +    | o . .. | 
-    |      .o         +    | .o | 
-    |     .o..        |+    | .o.. |
     +----[SHA256]-----+     +----[SHA256]-----+
-Zur Sicherheit besteht der Schlüssel aus zwie Teileneinem öffentlichender zur Verschlüsselung dient, und einem privaten Teil, der der Entschlüsselung dientDer obige Befehl hat zwei Dateien angelegt, "/tmp/rsakey" (der private Teilund /tmp/rsakey.pub (der öffentliche Teil). Die beiden Teile werden Public Key und Private Key genannt. \\ +For securitythe key consists of two partsa public part that is used for encryption and a private part that is used for decryptionThe above command created two files, "/tmp/rsakey" (the private partand /tmp/rsakey.pub (the public part). The two parts are called public key and private key. \\ 
-Um sich zu authentifizieren muss auf dem Server der Public Key und auf dem Client der Private Key "eingetragenseinAuf dem Client gehört die Datei nach ~/.ssh/id_rsa. Die Datei darf nur für den Benutzer lesbar seingenau wie das ~/.ssh Verzeichnis auchDer Public Key darf von jedermann (daher öffentlichgelesen werden.+In order to authenticate yourself, the public key must be "enteredon the server and the private key on the clientOn the client, the file goes after ~/.ssh/id_rsa. The file must be user-readablejust like the ~/.ssh directoryThe public key may be read by anyone (therefore public).
   mv /tmp/rsakey* ~/.ssh   mv /tmp/rsakey* ~/.ssh
   ls -ld / /home/ /home/user/ /home/user/.ssh /home/user/.ssh/rsa*   ls -ld / /home/ /home/user/ /home/user/.ssh /home/user/.ssh/rsa*
-    drwxr-xr-x   32 root     system         4096 Jul 17 15:49 / +    drwxr-xr-x 32 root system 4096 Jul 17 15:49 / 
-    drwxr-xr-x  261 bin      bin           16384 Sep 11 00:55 /home +    drwxr-xr-x 261 am 16384 am Sep 11 00:55 /home 
-    drwxr-xr-x   14 user     gruppe         4096 Sep 18 14:23 /home/user +    drwxr-xr-x 14 user group 4096 Sep 18 14:23 /home/user 
-    drwx------    3 user     gruppe         4096 Sep 08 12:23 /home/user/.ssh +    drwx------ 3 user group 4096 Sep 08 12:23 /home/user/.ssh 
-    -rw-------    1 user     gruppe         1679 Aug 30 2016  /home/user/.ssh/rsakey +    -rw------- 1 user group 1679 Aug 30 2016 /home/user/.ssh/rsakey 
-    -rw-r--r--    1 user     gruppe         1679 Aug 30 2016  /home/user/.ssh/rsakey.pub +    -rw-r--r-- 1 user group 1679 Aug 30 2016 /home/user/.ssh/rsakey.pub 
-Damit haben wir auf der Client Seite erstmal alles erledigt und können nun der Public Key auf den Server packenDie einfachste Methde ist der folgende (siehe unsere .ssh/config) Befehl+We have now done everything on the client side and can now pack the public key on the serverThe simplest method is the following (see our .ssh/config) command
   ssh-copy-id -i /home/user/.ssh/rsakey.pub server.example.com   ssh-copy-id -i /home/user/.ssh/rsakey.pub server.example.com
-Dabei wird, letztmalig, das Passwort des Benutzers "user" auf dem Server abgefragtJetzt passen wir noch die .ssh/config an, weil unsere Datei nicht "id_rsa" (einer der Default Werteheißt.  +The password of the user "user" on the server is queried for the last timeNow we adjust the .ssh/config because our file is not called "id_rsa" (one of the default values). 
-  Host server1 +  host server1 
-      HostName        server1.example.com +      HostName server1.example.com 
-      Port            921 +      Port 921 
-      User            username +      User username 
-      DynamicForward  3129 +      DynamicForward 3129 
-      LocalForward    1234 server2:80 +      LocalForward 1234 server2:80 
-      LocalForward    3210 server:3128 +      LocalForward 3210 server:3128 
-      IdentityFile    ~/.ssh/rsakey +      IdentityFile ~/.ssh/rsakey 
-Damit haben wir die Passwort Abrage des Servers deaktiviert und müssen nun die Passphrase des SSH Keys eingebenDamit haben wir aber leider nur die eine Passwortabfrage durch eine andere ersetzt+We have deactivated the server's password query and now have to enter the passphrase of the SSH keyUnfortunately, we have only replaced one password query with another
-==== Schritt 3: Eine Passwortabfrage pro Tag ==== +==== Step 3: One password request per day ==== 
-Die openssh Entwickler sind anscheinend ziemlich faule GesellenIm Paket openssh befindet sich auch ein Agent, der die Aufgabe hat sich die SSH Keys im RAM zu merken und bei Bedarf zur Verfügung zu stellenDie Ablage im RAM erfolgt natürlich nach allen Regeln der SicherheitUnter Linux (auch Cygwin) wird der Agent folgendermaßen benutzt+The openssh developers are apparently pretty lazy fellowsThe openssh package also contains an agent that has the task of remembering the SSH keys in RAM and making them available when neededOf course, the storage in RAM follows all the rules of securityUnder Linux (also Cygwin) the agent is used as follows
-  ssh-agent+  ssh agent
     SSH_AUTH_SOCK=/tmp/ssh-YYMhp1JPZkWu/agent.25166028; export SSH_AUTH_SOCK;     SSH_AUTH_SOCK=/tmp/ssh-YYMhp1JPZkWu/agent.25166028; export SSH_AUTH_SOCK;
     SSH_AGENT_PID=10682402; export SSH_AGENT_PID;     SSH_AGENT_PID=10682402; export SSH_AGENT_PID;
     echo Agent pid 10682402;     echo Agent pid 10682402;
-Damit ist der Agent gestartet und die Befehle, die eine Benutzung ermöglichen, werden ausgegebenDer Agent bleibt bis zum nächsten Reboot aktivalso können wir die Befehle in eine Datei schreiben und dann in der aktuellen Shell ausführenNennen wir die Datei ~/ssh-agent-vars.sh und füllen sie mit InhaltAnschliessend führen wir sie in der aktuellen Shell aus.+The agent is now started and the commands that enable use are issuedThe agent stays active until the next rebootso we can write the commands to a file and then run them in the current shellLet's name the file ~/ssh-agent-vars.sh and fill it with contentThen we run it in the current shell.
   SSH_AUTH_SOCK=/tmp/ssh-YYMhp1JPZkWu/agent.25166028; export SSH_AUTH_SOCK;   SSH_AUTH_SOCK=/tmp/ssh-YYMhp1JPZkWu/agent.25166028; export SSH_AUTH_SOCK;
   SSH_AGENT_PID=10682402; export SSH_AGENT_PID;   SSH_AGENT_PID=10682402; export SSH_AGENT_PID;
   echo Agent pid 10682402;   echo Agent pid 10682402;
-Und nun die Ausführungder Punkt am Anfang signalisiert, das das Script in der aktuellen Shell ausgeführt wird:+And now the executionthe dot at the beginning signals that the script is executed in the current shell:
   . ~/ssh-agent-vars.sh   . ~/ssh-agent-vars.sh
-Nachdem der Agent gestartet wurde und die Benutzung eingerichtet istmüssen wir nun dem Agenten den Private Key zur Verfügung stellen+After the agent has been started and the use has been set upwe now have to provide the agent with the private key
   ssh-add ~/.ssh/rsakey   ssh-add ~/.ssh/rsakey
-Der Agent fordert uns auf die Passphrase einzugeben und kann nun die Aufgabe, den Private Key bei Bedarf zur Verfügung zu stellen, übernehmenDie Anmeldung kann nun ohne jede Passwort Abfrage gemacht werden.+The agent asks us to enter the passphrase and can now take over the task of providing the private key if requiredThe registration can now be made without any password query.
   ssh server.example.com   ssh server.example.com
-Geschafftdie Passworteingabe ist ab nun nicht mehr erforderlichWir müssen nur nach einen Reboot daran denken den Agenten erneut zu starten und die ausgegebenen Befehle in die Datei ~/ssh-agent-vars.sh zu schreibenAuch der Private Key muss einmalig wieder geladen werden. \\ +Made itfrom now on it is no longer necessary to enter a passwordWe only have to remember to start the agent again after a reboot and write the issued commands to the ~/ssh-agent-vars.sh fileThe private key must also be reloaded once. \\ 
-Wenn wir eine neue Shell starten muss natürlich auch hier die ~/ssh-agent-vars.sh in der aktuellen Shell ausgeführt werdenMan kann dies in der ~/.bashrc hinterlegen.+Of course, if we start a new shell, ~/ssh-agent-vars.sh must also be executed in the current shellYou can store this in ~/.bashrc.
  
-**Hinweiswer PuTTY und openssh unter Cygwin parallel benutzt sollte sich die Benutzung von PAGEANT (PuTTY) und die Zusammenarbeit mit ssh-pageant (openssh unter Cygwin) anschauen. [[https://mplx.eu/tech/ssh-key-agents-linux-windows-cygwin|Hier ein Link zum Einstieg]] **+**Noteif you use PuTTY and openssh under Cygwin in parallel, you should look at using PAGEANT (PuTTY) and working with ssh-pageant (openssh under Cygwin). [[https://mplx.eu/tech/ssh-key-agents-linux-windows-cygwin|Here is a link to get started]] ** 
 +==== Step 4: Use the SSH key also from server.example.com ====
  
-==== Schritt 4: Den SSH Key auch von server.example.com aus benutzen ==== +Often you will find a whole server landscape on which you can registerOnce you have deposited the public part of the SSH key on all serversyou can log on to any server from the client without an additional passwordBut if you now want to jump from one server to the otheryou will be asked for the password againbecause the agent only runs on our clientIt is now an unforgivable sin to copy the private key to the servers in the example.com domain. \\ 
- +**A private key must NEVER leave the client.**\\ 
-Oft findet man eine ganze Serverlandschaftauf der man sich anmelden kannWenn man erst einmal den öffentlichen Teil des SSH Keys auf allen Servern hinterlegt hatkann man sich vom Client aus auf jedem Server ohne weiteres Passwort anmelden. Wenn man nun aber von einem zum anderen Server springen will, wird man wieder nach dem Passwort gefragt, denn der Agent läuft ja nur auf unserem ClientEine unverzeihliche Sünde ist es nun den Private Key auf die Server in der Domain example.com zu kopieren. \\ +Of course, openssh has a solution herebecause the ssh-agent can do even moreThe private key can be used in a whole chain of consecutive SSH sessionsThe "-A" switch ensures that the private key is passed on through all ssh instances:
-**Ein Private Key darf den Client NIEMALS verlassen.**\\ +
-Natürlich hat openssh hier eine Lösung paratdenn der ssh-agent kann noch mehrDer Private Key kann in einer ganze Kette aufeinander folgende SSH Sessions benutzt werdenDer Schalter "-A" sorgt dafür, das der Private Key durch alle ssh Instanzen weiter gereicht wird:+
   client: ssh -A server.example.com   client: ssh -A server.example.com
   server.example.com: ssh server2.example.com   server.example.com: ssh server2.example.com
-Auch der auf "server.example.com" abgesetzte ssh Befehl erforder kein Passwortder ssh-agent befriedigt die Anfrage des Private Keys problemlossofern mittels "ssh-copy-id" der öffentliche Schlüssel auf server2.example.com bereitgestellt wurdeDie Entsprechung in der .ssh/config lautet+The ssh command sent to "server.example.com" also does not require a passwordthe ssh-agent satisfies the request for the private key without any problemsprovided the public key was provided on server2.example.com using "ssh-copy-id"The equivalent in the .ssh/config is
   host *   host *
     ForwardAgent yes     ForwardAgent yes
-Und wieder etwas gelerntman kann für die Definitionen in der .ssh/config Wildcards ("*" und "?"verwendenAber AchtungEs werden alle Definitionen in allen Gruppen angewendet, auf die die Wildcards zutreffen. +And learned something againyou can use wildcards ("*" and "?"for the definitions in the .ssh/config. But be carefulAll definitions in all groups to which the wildcards apply are used
-   +==== Step 5: Use non-public services locally ==== 
-==== Schritt 5: nicht öffentliche Services lokal nutzen ==== +What do you mean with thatA web server runs on server.example.com, which cannot be reached from the Internet, but which we want to address on our clientA web server is addressed on port 80 (unencryptedor 443 (encrypted). However, this port is blocked by a firewallThe solution isport forwardingwhich is not a problem with openssh.
-Was ist damit gemeintAuf server.example.com läuft ein WebServerder aus dem Internet nicht erreichbar istden wir aber auf unserem Client ansprechen wollenEin WebServer wird auf Port 80 (unverschlüsseltoder 443 (verschlüsseltangesprochenDieser Port wird aber von einer Firewall geblocktDie Lösung lautetPort Forwardingwas mit openssh kein Problem ist+
   ssh -L 1234:localhost:443 server.example.com   ssh -L 1234:localhost:443 server.example.com
-Was will uns der Dichter damit sagenDie SSH Session wird überredet, auf dem Client den Port 1234 zu öffnen und jeglichen Traffic auf diesem Port an den Port 443 auf server.example.com ("localhost", aus dessen SichtweiterzuleitenIm Browser reicht nun die Eingabe von +What is the poet trying to tell usThe SSH session is persuaded to open port 1234 on the client and forward all traffic on that port to port 443 on server.example.com ("localhost", from his point of view). Entering in the browser is now sufficient
   https://localhost:1234   https://localhost:1234
-um den Webserver zu erreichen. \\+to reach the web server. \\
  
-Der Eintrag in der .ssh/config lautet +The entry in the .ssh/config is 
-  LocalForward    1234 localhost:443+  LocalForward 1234 localhost:443
  
-VerwirrendDas liegt an der Doppelnutzung von "localhost"Dieser Rechnername "localhost" bezieht sich immer auf den Rechner, auf dem er interpretiert wird. In dem SSH Command wird "localhost" aus Sicht von "server.example.com" interpretiertim Browserder ja auf dem Client läuftwird es natürlich als "Clientinterpretiert. \\ +ConfusingThis is due to the dual use of "localhost"This computer name "localhost" always refers to the computer on which it is interpreted. In the SSH command, "localhost" is interpreted from the point of view of "server.example.com", in the browserwhich runs on the clientit is of course interpreted as "client". \\ 
-Aber in der Serverlandschaft hinter server.example.com laufen mehrere WebServerfür jeden einzelnen ein Port Forwarding einzurichten ist wohl ein wenig aufwendigAber natürlich hat openssh alles zur HandWir richten uns einfach einen Socks Proxy einden wir im Browser eintragen und schon stehen alle WebServer mit einem einzigen Eintrag im SSH Command zur Verfügung.+But in the server landscape behind server.example.com there are several web servers runningand setting up port forwarding for each one is probably a bit time-consumingBut of course openssh has everything at handWe simply set up a socks proxywhich we enter in the browser and all web servers are available with a single entry in the SSH command.
   ssh -D 3128 server.example.com   ssh -D 3128 server.example.com
-Wie immer was es das schon. Nur noch im Browse die Proxy Einstellungen einstellen und die alle Webserverdie server.example.com erreichen kann, stehen zur VerfügungUnschön ist das Verhalten, wenn man Namen statt IP-Adressen benutztNormalerweise sprechen wir Webseiten nach dem Schema <hostname>.<domain> (z.B. www.google.de) anDer DNS nimmt uns die Arbeit ab, die Namen in IP Adressen zu übersetzenDa das DNS Protokoll auf UDP basiert, ssh aber nur TCP zur Verfügung stelltmüssen die Namen entweder im öffentlichen DNS auflösbar sein oder in der lokalen Hosts Datei gepflegt sein. \\ +As alwaysthat's it. Just set the proxy settings in the browser and all web servers that can reach server.example.com are availableThe behavior is unpleasant if you use names instead of IP addressesNormally we address websites according to the scheme <hostname>.<domain> (e.g. www.google.de). The DNS does the work for us to translate names into IP addressesSince the DNS protocol is based on UDP, but ssh only provides TCP, the names must either be resolvable in public DNS or maintained in the local hosts file. \\ 
-Ach jawie sieht denn der Eintrag in der .ssh/config aus+Oh yeswhat does the entry in .ssh/config look like
-  DynamicForward  3128+  DynamicForward 3128 
 +==== Conclusion: Example of a .ssh/config ====
  
- +  First of all the settings that should apply to all computers 
-==== Fazit: Beispiel einer .ssh/config ==== +  hosting 
- +    # ssh-agent should provide the private keys
-  Ersteinmal die Einstellungen, die für alle Rechner gelten sollen +
-  Host +
-    # ssh-agent soll die private Keys zur Verfügung stellen+
     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, hier diejenigen+    # We want to carry the value of some variables with ushere 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    ~/.ssh/rsakey +    IdentityFile ~/.ssh/rsakey 
-  # Nun zu Server.example.com +  # Now to Server.example.com 
-  # Da die für alle Hosts geltenden Einstellungen hier ebenfalls gültig sindbrauchen wir nur  +  # Since the settings that apply to all hosts are also valid herewe 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 Socks 5 Proxy +    # our nice Socks 5 proxy 
-    DynamicForward  3128 +    DynamicForward 3128 
-    # Der lokale Forward um den Webserver auf server.example.com zu erreichen +    # The local forward to reach the web server on server.example.com 
-    # ist ja eigentlich unnötigdenn wir haben ja einen Dynamic Forward +    # is actually unnecessarybecause we have a dynamic forward 
-    LocalForward    1234 localhost:443 +    LocalForward 1234 localhost:443 
-  # 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 beantwortetWeitergehende HowTo'zu SSH folgen.... +The basics have been laid and most questions have been answeredFurther HowTo'for SSH will follow....
-         +
en/howtos/ssh.1645173017.txt.gz · Zuletzt geändert: 2022/02/18 08:30 von morquai