Re: command execution upon ssh
-----BEGIN PGP SIGNED MESSAGE-----
On Wed, Jul 02, 2003 at 12:21:20PM -0400, nori heikkinen wrote:
> i want to ssh to a remote machine (firewall), and then immediately
> upon success, ssh to another remote machine. i don't want to put this
> in my .login, because i don't want it to always happen -- i want to be
> able to *just* ssh to the first box, too, or have the option of going
> through to the 2nd.
ssh -C -X -c 'ssh -C -X <second host>' <first host> should do
something approximately what you're looking for.
> it seems this should have to do with the '-n' option for ssh.
- -n means "No terminal." I've never found it useful.
> however (here's the problem), i can't type in the resultant terminals.
> how can i fix this? it would be great to have this capability ...
Avoid -n until you've got a clear need for it.
.''`. Paul Johnson <email@example.com>
: :' : proud Debian admin and user
`- Debian - when you have better things to do than fix a system
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2 (GNU/Linux)
-----END PGP SIGNATURE-----