From 4dae51950b62603662ed408c33d18a51d8bff8e6 Mon Sep 17 00:00:00 2001 From: Alexis Ben Miloud--Josselin Date: Tue, 12 Dec 2023 11:29:03 +0100 Subject: [PATCH] HowtoOpenSSH: Mettre commande dans balise code --- HowtoOpenSSH.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/HowtoOpenSSH.md b/HowtoOpenSSH.md index 7acc6207..5c5eb829 100644 --- a/HowtoOpenSSH.md +++ b/HowtoOpenSSH.md @@ -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 :