Merci du signalement! En tapant man:

>      -J [user@]host[:port]
>              Connect to the target host by first making a ssh connection to 
> the
>              jump host and then establishing a TCP forwarding to the ultimate 
> des-
>              tination from there.  Multiple jump hops may be specified 
> separated by
>              comma characters.  This is a shortcut to specify a ProxyJump 
> configu-
>              ration directive.





> Le 2 mai 2018 à 07:40, felix <[email protected]> a écrit :
> 
> Bonjour,
> 
> Pour joindre avec ssh, une machine distante non accessibles aux reseaux
> auxquels je suis connecté, il faut passer par une machine qui est connecté
> à ladite machine et connecté sur Internet ou un de mes reseaux...
> 
> Quelque chose comme:
> 
> $ ssh -o ProxyCommand='ssh -e none proxyuser@proxyhost nc finaldest 22' 
> user@finaldest
> 
> ou
> 
> $ ssh -f -L 2222:finaldest:22 proxyuser@proxyhost sleep 5 &&
>      ssh -p 2222 -o HostKeyAlias=finaldest -l user localhost
> 
> mais voici la nouvelle option `-J` de ssh:
> 
> $ ssh -J proxyuser@proxyhost user@finaldest
> 
> C'est plus court et plus lisible.
> 
> -- 
> Félix
> _______________________________________________
> gull mailing list
> [email protected]
> http://forum.linux-gull.ch/mailman/listinfo/gull
> 

_______________________________________________
gull mailing list
[email protected]
http://forum.linux-gull.ch/mailman/listinfo/gull

Répondre à