fab-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Fab-user] How to do two-step ssh with sudo user


From: Hanks
Subject: [Fab-user] How to do two-step ssh with sudo user
Date: Tue, 17 Feb 2015 16:18:46 +0900

​Hi,

I want to implement command below: 

localhost->host1->host2

1. ssh host1 [from localhost]
2 .sudo -u superuser ssh host2 [from host1]
3. command [from host2]

How to use fabfile to do things like that. I find gateway can jump from localhost to host2, but how to transfer sudo user in host1.

Thank you for your time.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]