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 have two linux computers in two different institutes. Computer1 is username1 with host1(internal ip connected to server1(public ip Second Computer2 is username2 with host2(internal ip connected to server2(public ip ). I want to connect to Computer2 from Computer1 using ssh. Please tell me, How can I do?

Thanking you.

share|improve this question
Take a look into this: – Danny Archer Nov 29 '14 at 10:07

Try to make ssh tuneling

for example if you want to connect from Computer1 to Computer2 through Server1 and Server2

on Computer1 run

 ssh user@server1_internal_IP -L2002:

on server1 run

ssh user@server2_external_IP -L2002:

on server2 run

ssh username2@Computer2 -L2002:

Then after these operation on Computer1

run ssh username2@ -p 2002
share|improve this answer
Problem here is I can't run commands on neither server1 nor server2. They are institute's server. – parmeshwar89 Mar 21 '13 at 12:02
So, what have you got?? – esperanto Mar 24 '13 at 19:37
@esperanto I have got two computers computer1 and computer2 which are connected to server1 and server2 respectively. – parmeshwar89 Mar 25 '13 at 7:08

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.