this is probably a very simple question, I just couldn't find
an answer to it.
I like to ssh to Server via Gateway
Instead of
ssh Gateway
and there
ssh Server
is there a possibility to do it in one ssh command
(perhaps similar to port forwarding (tunneling))
Many thanks for a hint,
Helmut.
--
Helmut Jarausch
Lehrstuhl fuer Numerische Mathematik
RWTH - Aachen University
D 52056 Aachen, Germany
ssh -t gateway "ssh destination"
--
Mike Andrews, W5EGO
mi...@mikea.ath.cx
Tired old sysadmin
Sorry for answering my own question,
but after I've submitted it I had a look
at the ssh "proxy mode" before.
So Jacob suggested
ssh -o ProxyCommand="ssh <GATEWAY> netcat %h %p" <SERVER>
which works just fine.
Many thanks for that, Jacob.
Thanks Mike.
I wonder if there is a difference to the
ssh -o ProxyCommand="ssh <GATEWAY> netcat %h %p" <SERVER>
thing suggested by Jacob Nevins.
(Speed?)
> Sorry for answering my own question,
> but after I've submitted it I had a look
> at the ssh "proxy mode" before.
>
> So Jacob suggested
>
> ssh -o ProxyCommand="ssh <GATEWAY> netcat %h %p" <SERVER>
>
> which works just fine.
> Many thanks for that, Jacob.
Vielen Dank, Helmut. I just tried Jacob's proxy method, and that works
nicely. So now I have two ways to ssh through a gateway into a destination.
Jacob's method depends on netcat (or nc) being installed and findable on
the gateway, however, while `ssh -t gateway "ssh destination"' requires
only ssh on both.