Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I have two linux computers in two different institutes. Computer1 is username1 with host1(internal ip 192.168.1.115) connected to server1(public ip 59.162.19.43). Second Computer2 is username2 with host2(internal ip 192.168.1.120) connected to server2(public ip 158.144.176.220 ). 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: http://www.phys.ufl.edu/cms/emu/fast/FAST-DAQ/ssh_between_2.html –  Gowtham Nov 29 at 10:07

1 Answer 1

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:127.0.0.1:2002

on server1 run

ssh user@server2_external_IP -L2002:127.0.0.1:2002

on server2 run

ssh username2@Computer2 -L2002:127.0.0.1:22

Then after these operation on Computer1

run ssh username2@127.0.0.1 -p 2002
share|improve this answer
1  
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

 
discard

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.