08-20-07 12:22 AM
On 2007-06-20, Martin Gagnon wrote:
> You may want to use ssh trampoline. For this, you need to have netcat
> (or "nc") installed in "main_computer". (the main_computer from your port
> forwarding example)
>
> You just have to edit your ~/.ssh/config file and add something like the
> following:
>
> ========================================
==============================
> Host my_computer # you can do an alias in /etc/hosts if
> # this intra-net IP exist in your intra-net at
> # home..
> ProxyCommand ssh main_computer "netcat %h %p" # you need
> # netcat in
> # main_computer (replace
> # netcat by "nc" in
> # some OS)
> ========================================
==============================
>
> with that, you can access "my_computer" just by typing: ssh my_computer.
> You can do "scp", sftp, tunnels etc.. like if you have directly access
> to my_computer..
>
> It's very convenient to use ssh-agent in such configuration, too don't
> have to type password many times.
Thanks very much for this very useful tip!
I've noticed, however, that the related processes don't terminate, so
every now and then I notice that `ps ux` includes several old ones
with the descriptions "sshd: adam@pts/0" and "sshd: adam@notty". I
can kill them without any problem and AFAIK they don't cause trouble,
but is this a normal result of ssh trampoline?
[ Post a follow-up to this message ]
|