[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Fab-user] Best way of making proposals for Fabric?
From: |
Michael Gliwinski |
Subject: |
Re: [Fab-user] Best way of making proposals for Fabric? |
Date: |
Thu, 3 Mar 2011 09:44:19 +0000 |
User-agent: |
KMail/1.13.5 (Linux/2.6.35-24-generic; KDE/4.5.5; x86_64; ; ) |
On Wednesday 02 Mar 2011 19:41:58 Rory Campbell-Lange wrote:
> 3. setup and teardown
> I have a situation where I have lots of hosts hidden behind a
> gateway, so I have to connect to the gateway and then generate a lot
> of port forwarding connections, one for each host.
> As there doesn't appear to be a way of generating port forwarding
> connections easily through Fabric (despite the promise of the port
I'm actually in similar situation and what I actually do is I have a special
gateway connection defined in ~/.ssh/config like so:
Host foogateway
BatchMode yes
HostName real_gateway_hostname
User foo
LocalForward X H:P
...
Then I just start that connection with 'ssh -fN foogateway' in the background.
This actually has an advantage that it is setup once and keeps running until
you shut it down; consider that doing it in Fabric in setup/teardown would
actually do it for each fab invocation.
--
Michael Gliwinski
Henderson Group Information Services
9-11 Hightown Avenue, Newtownabby, BT36 4RT
Phone: 028 9034 3319
**********************************************************************************************
The information in this email is confidential and may be legally privileged.
It is intended solely for the addressee and access to the email by anyone else
is unauthorised.
If you are not the intended recipient, any disclosure, copying, distribution or
any action taken or omitted to be taken in reliance on it, is prohibited and
may be unlawful.
When addressed to our clients, any opinions or advice contained in this e-mail
are subject to the terms and conditions expressed in the governing client
engagement leter or contract.
If you have received this email in error please notify address@hidden
John Henderson (Holdings) Ltd
Registered office: 9 Hightown Avenue, Mallusk, County Antrim, Northern Ireland,
BT36 4RT.
Registered in Northern Ireland
Registration Number NI010588
Vat No.: 814 6399 12
*********************************************************************************