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

Re: command execution upon ssh



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

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.
> oops.
> 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 <baloo@ursine.ca>
: :'  :    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)

iD8DBQE/BAzLJ5vLSqVpK2kRArP/AJ49yWQFmMFZzaz8wgqH2gzdyuPlEACgg65/
6oFUhMAmZvWw7NeKG2zdHdI=
=uHiE
-----END PGP SIGNATURE-----



Reply to: