[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: SSH through another computer



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Masatran, R. Deepak wrote:
> 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?
> 

Try something like this
ssh-add -t 100 /path/to/host2/key ; ssh -t -A host1 ssh host2

It's not 1 command though =)

- --
Saludos,
Alejandro Bárcena Campos

How do you power off this machine?
  -- Linus, when upgrading linux.cs.helsinki.fi, and after using the
     machine for several months
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFGLm2QpZP6bMridNYRAtnNAJ0cXG/b64JOJXcn7Bu8uEl/l9ciwgCgjzTl
zCP9/zDEo7yaJ+T/RlhDoSs=
=C+Mm
-----END PGP SIGNATURE-----



Reply to: