Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am looking for a solution to this problem:

  1. At the end there are 3 different Linux servers (let's name them probe1,probe2,probe3)
  2. There's a win2k8 gateway to access them via ssh (22) (let's name it probeGTW)
  3. There's another win2k8 gateway which I have to use to access probeGTW (don't ask me...) (let's name it GTW)
  4. Monitoring server (another win2k8) has unlimited access to GTW.
  5. I need to be able to access probe1-3 directly from monitoring server to automate the monitoring process (need to run 'ps' command on Linux probes).

Is it possible with using just plink or any other similar solution that I could run as a service (so the requirement is for this to be a command-line tool)?

share|improve this question

Assuming all the machines in the chain have an ssh (command line) client installed, you could just run that on each hop. So, assuming you have a command line ssh client on the original host you could run this:

ssh user@GTW -- ssh user@probeGTW -- ssh user@probe1 -- ps

You might want to enable agent forwarding for the authentication part on all the hosts involved.

share|improve this answer
Thanks for quick reply, I'm currently only limited to plink.exe which is putty command-line tool - maybe you could suggest a windows ssh client that would work with your solution ? I'm working within corporate environment so some open-source/freeware stuff might not be appropriate... – Blichew Jan 15 '13 at 14:18
I think this solution is apt. You could use PuTTY to initially connect to the linux box and from there run the ssh command. – slm Jan 15 '13 at 14:38
Well, from what I can tell on its doc page, plink.exe would work precisely the same as ssh - although you might need to drop the --: – Magnus Jan 15 '13 at 15:41

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.