Re: SSH through another computer
"Masatran, R. Deepak" <masatran@research.iiit.ac.in> writes:
> I am forced to SSH to host1, and SSH from there to host2.
>
> How can I do this in a single command?
>
> I have a private key in localhost, which is accepted for SSH by host2. How
> can I use this key in host2 without storing it in host1?
May be something like (untested):
$ ssh -N -L 20022:host2:22 host1
$ ssh -p 20022 localhost
The first command create a tunnel from localhost:22022 to host2 port 22
The second connects ssh to host2 through the tunnel.
HTH
--
Dominique Dumont
"Delivering successful solutions requires giving people what they
need, not what they want." Kurt Bittner
Reply to: