Douglas Kojetin said the following on 4/23/04 7:29 PM:

hi all-

i ssh to a computer computer behind a firewall that has access to other computers behind the network that i frequently need to ssh to. what i normally do is

ssh [EMAIL PROTECTED]
ssh [EMAIL PROTECTED]

is there a shortcut i can take so that i don't ssh twice? i've setup aliases and 'no-password authentication' to ease things, but it would be nice to do the above in one command if possible.

You could have the first ssh execute the second. If you just put the two commands together, you'll noticed, however, that it doesn't work. Ssh doesn't automatically allocate a psuedo-tty when executing a command so you must force it to using the -t option.

So, try:

ssh -t [EMAIL PROTECTED] ssh [EMAIL PROTECTED]

That should do what you want.

Cheers,
Tanner
--
Tanner Lovelace       | Don't move! Or I'll fill ya full of... little
[EMAIL PROTECTED] | yellow bolts of light! - Commander John Crichton
--
TriLUG mailing list        : http://www.trilug.org/mailman/listinfo/trilug
TriLUG Organizational FAQ  : http://trilug.org/faq/
TriLUG Member Services FAQ : http://members.trilug.org/services_faq/
TriLUG PGP Keyring         : http://trilug.org/~chrish/trilug.asc

Reply via email to