pull/35/head
David Wilson 7 years ago
parent 8d9c7245ec
commit b52a556abd

@ -146,8 +146,8 @@ example enforce an interactive sudo TTY and account password.
bastion = router.ssh(hostname='bastion.mycorp.com')
webserver = router.ssh(via=bastion, hostname='webserver')
fileserver = router.ssh(via=bastion, hostname='fileserver')
webapp = router.sudo(via=webserver, username='webapp')
fileserver = router.ssh(via=bastion, hostname='fileserver')
# Transparently tunnelled over fileserver -> .. -> sudo.webapp link
fileserver.call(econtext.fakessh.run, webapp, [

Loading…
Cancel
Save