fab-user
[Top][All Lists]
Advanced

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

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


From: Jeff Forcier
Subject: Re: [Fab-user] How to do two-step ssh with sudo user
Date: Fri, 20 Feb 2015 12:57:54 -0800

Hi Hanks,

You should look into using ProxyCommand for that; the native gateway
in SSH does lower level networking to perform the bridge so it's not
able to do anything like escalating permissions or reading files on
the gateway. (I assume your need here is to leverage credentials only
present on the gateway?)

See 
http://docs.fabfile.org/en/1.10/usage/execution.html?highlight=proxycommand#leveraging-native-ssh-config-files

Best,
Jeff

On Mon, Feb 16, 2015 at 11:18 PM, Hanks <address@hidden> wrote:
> 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.
>
>
> _______________________________________________
> Fab-user mailing list
> address@hidden
> https://lists.nongnu.org/mailman/listinfo/fab-user
>



-- 
Jeff Forcier
Unix sysadmin; Python/Ruby engineer
http://bitprophet.org



reply via email to

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