Re: SSH through another computer
- From: Dominique Dumont <dominique.dumont@xxxxxx>
- Date: Mon, 30 Apr 2007 11:24:47 +0200
"Masatran, R. Deepak" <masatran@xxxxxxxxxxxxxxxxxxx> 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
--
To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx
with a subject of "unsubscribe". Trouble? Contact listmaster@xxxxxxxxxxxxxxxx
- References:
- SSH through another computer
- From: Masatran, R. Deepak
- SSH through another computer
- Prev by Date: sort packages by frequency?
- Next by Date: Re: grub and rootfs as LVM
- Previous by thread: Re: SSH through another computer
- Next by thread: configure a graphics card
- Index(es):
Relevant Pages
|
|