From 0aff1d82c684118e49c5e2d23bc2e101ffa06296 Mon Sep 17 00:00:00 2001 From: David Wilson Date: Thu, 24 Aug 2017 16:29:37 +0530 Subject: [PATCH] Reads more neatly. --- docs/index.rst | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/index.rst b/docs/index.rst index d24e4b4e..c9e1c315 100644 --- a/docs/index.rst +++ b/docs/index.rst @@ -83,16 +83,16 @@ to your network topology**. ) ssh_account = router.sudo( + via=bastion_host, username='user_with_magic_ssh_key', password='sudo password', - via=bastion_host, ) internal_box = router.ssh( - hostname='billing0.internal.mycorp.com' via=ssh_account, + hostname='billing0.internal.mycorp.com' ) - + internal_box.call(os.system, './run-nightly-billing.py') The multiplexer also ensures the remote process is terminated if your Python