Consentire l'XForwarding con una connessione ssh multihop: Difference between revisions

From RVM Wiki
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
 
Line 2: Line 2:
  ssh -t host.esterno ssh host.interno
  ssh -t host.esterno ssh host.interno


* Una possibile soluzione fa uso di netcat, che deve essere isntallato su host.esterno, usando l'opzione proxyxommand:
=OpenSSH >7.3=
* Si usa l'opzione -J
ssh -J host.esterno host.interno
 
=openSSH <7.3=
 
* Tramite l'opzione -W
ssh -o proxycommand="ssh -W host.interno:22 host.externo" username@host.interno
 
* Una possibile soluzione fa uso di netcat, che deve essere isntallato su host.esterno, usando l'opzione proxycommand:
  ssh -o proxycommand="ssh host.externo nc host.interno 22" host.interno
  ssh -o proxycommand="ssh host.externo nc host.interno 22" host.interno
{{Stub}}
*Verificare con -W


=Riferimenti=
=Riferimenti=
*[https://en.wikibooks.org/wiki/OpenSSH/Cookbook/Proxies_and_Jump_Hosts#Passing_Through_One_or_More_Gateways_Using_ProxyJump OpenSSH/Cookbook/Proxies and Jump Hosts - Wikibooks, open books for an open world]
*[https://serverfault.com/questions/53080/how-to-enable-ssh-x11-forwarding-through-additional-server linux - How to enable SSH X11 forwarding through additional server? - Server Fault]
*[https://serverfault.com/questions/53080/how-to-enable-ssh-x11-forwarding-through-additional-server linux - How to enable SSH X11 forwarding through additional server? - Server Fault]
*[https://www.cyberciti.biz/faq/linux-unix-ssh-proxycommand-passing-through-one-host-gateway-server/ SSH ProxyCommand example: Going through one host to reach another server - nixCraft]
*[https://www.cyberciti.biz/faq/linux-unix-ssh-proxycommand-passing-through-one-host-gateway-server/ SSH ProxyCommand example: Going through one host to reach another server - nixCraft]

Latest revision as of 12:29, 29 January 2018

  • Se si vuole usare un'applicatico X, ad esempio xclip, non è supportato da una semplice connessione multihop tipo
ssh -t host.esterno ssh host.interno

OpenSSH >7.3

  • Si usa l'opzione -J
ssh -J host.esterno host.interno

openSSH <7.3

  • Tramite l'opzione -W
ssh -o proxycommand="ssh -W host.interno:22 host.externo" username@host.interno
  • Una possibile soluzione fa uso di netcat, che deve essere isntallato su host.esterno, usando l'opzione proxycommand:
ssh -o proxycommand="ssh host.externo nc host.interno 22" host.interno

Riferimenti