To clarify what I mentioned earlier, in my ~/.ssh/config file, I have
things that look similar to:

Host <external_host>
    User <username>
    Hostname 91.101.11.101 (<- only needed if you can't do proper DNS
from the DMZ machine, then put the IP here)
    ProxyCommand ssh <gateway_machine> nc %h 22

Many examples add a -w 1 option to the nc which will terminate the
proxy if no activity happens for 1 second, but this can cause some
annoying dropouts sometimes.  i.e.:

    ProxyCommand ssh <gateway_machine> nc -w 1 %h 22

Thanks

Steve


On Thu, Feb 24, 2011 at 6:33 PM, David Frascone <d...@frascone.com> wrote:
>
>
> On Thu, Feb 24, 2011 at 10:40 AM, Jan Kanis <j...@jankanis.nl> wrote:
>>
>>
>> On Thu, Feb 24, 2011 at 05:41, Martin Bähr
>> <mba...@email.archlab.tuwien.ac.at> wrote:
>>>
>>> On Thu, Feb 24, 2011 at 01:58:06AM +0100, Jan Kanis wrote:
>>> > - A command like 'fish -c "echo %self; exec ssh user@somewhere"' will
>>> > start
>>> > a new shell that will echo it's own pid and then exec ssh (keeping the
>>> > pid).
>>>
>>> it does not appear to keep the pid if i run ssh -f -N -q
>>
>> Apparently. The -f tells ssh to fork, giving it a new pid. The parent ssh
>> that asks for passphrases and such keeps the pid, but then forks off a child
>> to handle the rest of the connection and exits itself.
>>
>
> Right -- I'm experimenting with the proxy commands . . . I'll post what I
> end up using.
> -Dave
> ------------------------------------------------------------------------------
> Free Software Download: Index, Search & Analyze Logs and other IT data in
> Real-Time with Splunk. Collect, index and harness all the fast moving IT
> data
> generated by your applications, servers and devices whether physical,
> virtual
> or in the cloud. Deliver compliance at lower cost and gain new business
> insights. http://p.sf.net/sfu/splunk-dev2dev
> _______________________________________________
> Fish-users mailing list
> Fish-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/fish-users
>
>

------------------------------------------------------------------------------
Free Software Download: Index, Search & Analyze Logs and other IT data in 
Real-Time with Splunk. Collect, index and harness all the fast moving IT data 
generated by your applications, servers and devices whether physical, virtual
or in the cloud. Deliver compliance at lower cost and gain new business 
insights. http://p.sf.net/sfu/splunk-dev2dev 
_______________________________________________
Fish-users mailing list
Fish-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/fish-users

Reply via email to