Ssh jump-host: Unterschied zwischen den Versionen

Aus Xinux Wiki
Zur Navigation springen Zur Suche springen
Zeile 1: Zeile 1:
=Auf dem Host eintragen=
=Auf dem Host eintragen=
*cat ~/.ssh/config
*cat ~/.ssh/config
Host fw
  Hostname 192.168.HS.2XX
  User kit 
 
  Host ns
  Host ns
     Hostname 10.81.213.21
     Hostname 10.81.2XX.21
     User kit
     User kit
     ProxyJump kit@192.168.10.213:6666
     ProxyJump fw
   
   
  Host rocky
  Host www
     Hostname 10.88.213.81
     Hostname 10.88.2XX.11
     User kit
     User kit
     ProxyJump 192.168.10.213:6666
     ProxyJump fw


=Einlogen vom Host=
=Einlogen vom Host=

Version vom 7. Juli 2026, 09:01 Uhr

Auf dem Host eintragen

  • cat ~/.ssh/config
Host fw
 Hostname 192.168.HS.2XX
 User kit   
 
Host ns
    Hostname 10.81.2XX.21
    User kit
    ProxyJump fw

Host www
    Hostname 10.88.2XX.11
    User kit
    ProxyJump fw

Einlogen vom Host

  • ssh ns

Voraussetzung

Auf dem Jump Host muss folgendes in der /etc/ssh/sshd_config aktiv sein.

AllowTcpForwarding yes

Manuell ohne Konfigurationsdatei

  • ssh -J kit@192.168.10.213:6666 kit@10.88.213.21