Unterschiede

Hier werden die Unterschiede zwischen zwei Versionen angezeigt.

Link zu dieser Vergleichsansicht

Beide Seiten der vorigen RevisionVorhergehende Überarbeitung
Nächste Überarbeitung
Vorhergehende Überarbeitung
wiki:ssh_config [2016/11/21 16:08] wynekenwiki:ssh_config [2016/11/21 16:29] (aktuell) wyneken
Zeile 2: Zeile 2:
  
 <code> <code>
-User wyneken +ForwardX11 yes 
-      ForwardX11 yes +ForwardAgent yes
-      ForwardAgent yes +
- +
-User root +
-      ForwardX11 yes +
-      ForwardAgent yes+
  
 ################ ################
-Private netzer via khedira +Zugang zu PrivatePC via RZ 
-# +"PrivatePC" durch den gewünschten PC-Namen ersetzen. Aufruf
-# You can log in as root using+    ssh PrivatePC 
-  ssh -l root netzer +################
-Host netzer +
-     User wyneken +
-     Hostname netzer.physik.privat +
-    Hostname 10.5.81.177 +
-     ProxyCommand ssh khedira.physik.uni-freiburg.de -W %h:%p +
  
-################ +Host PrivatePC 
-# Private netzer via RZ +     Hostname PrivatePC.physik.privat
-Host netzer-rz +
-     User wyneken +
-     Hostname netzer.physik.privat +
-#     Hostname 10.5.81.177+
      ProxyCommand ssh login.uni-freiburg.de -W %h:%p       ProxyCommand ssh login.uni-freiburg.de -W %h:%p 
  
 ################ ################
-Root on private netzer +Hostname der Form "HOST/pgreift auf HOST.physik.privat zu. Aufruf
-+    ssh klose/p 
-# I actually expect the "User rootto result in us logging in as root +# greift auf klose.physik.privat zu. 
-# on netzer, but for some reason this doesn't work. +################
-+
-# Instead use -l on the command line+
-  ssh -l root netzer-r +
-Host netzer-r +
-     User root +
-     Hostname netzer.physik.privat +
-     ProxyCommand ssh -l root khedira.physik.uni-freiburg.de -W %h:%p+
  
- 
-################ 
-# Hosts of the from klose/p meaning klose.physik.privat 
 Host */p Host */p
-     User wyneken 
      Hostname "$(dirname %h).physik.privat"      Hostname "$(dirname %h).physik.privat"
-#     ProxyCommand ssh -W "$(dirname %h).physik.privat:%p khedira.physik.uni-freiburg.de +     ProxyCommand ssh -W %h:%p  login.physik.uni-freiburg.de
-     ProxyCommand ssh -W %h:%p  khedira.physik.uni-freiburg.de+
  
 ################ ################
-Hosts jump/goal: Login to "goal" by way of "jump"+Hostnamen der Form "jump/goal". 
 +# Anmelden auf "goal" über "jump". Aufruf: 
 +#     ssh login.uni-freiburg.de/klose.physik.privat 
 +################ 
 Host */* Host */*
    ProxyCommand ssh %r@$(dirname %h) -W $(basename %h):%p    ProxyCommand ssh %r@$(dirname %h) -W $(basename %h):%p
  
-################ 
-# General sample 
-# "Host" can be anything, not necessarily the host name. 
-# "User" is the username. Must be same on the jump and target host. 
-# "Hostname" is any name that can be resolved on the jump host, 
-#     i.e. .physik.uni-freiburg.de possibly not necessary. 
-Host test              
-  User wyneken            
-  HostName netzer.physik.privat       
-  ProxyCommand ssh login.uni-freiburg.de -W %h:%p 
-   
 </code> </code>
  
  

QR-Code
QR-Code Beispiel ~/.ssh/config für Zugang zu PCs im privaten Subnetz (erstellt für aktuelle Seite)