HowtoOpenSSH: Mettre commande dans balise code

This commit is contained in:
Alexis Ben Miloud--Josselin 2023-12-12 11:29:03 +01:00
parent 5abbbf9837
commit 4dae51950b

View file

@ -680,7 +680,9 @@ Il se peut qu'on doive passer par une machine pour se connecter en SSH à une ma
On peut ainsi se connecter avec `-o ProxyCommand` :
ssh -o ProxyCommand="ssh -W cible.example.com:22 bastion.example.com" cible.example.com
~~~
$ ssh -o ProxyCommand="ssh -W cible.example.com:22 bastion.example.com" cible.example.com
~~~
Dans les versions récentes d'OpenSSH (notamment sur Debian 9) il existe une méthode plus simple :