[SOLVED] how to connect a remote host via ssh behind proxy
Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
can you update output of tracert 122.122.122.122 from your local system?
Still i have doubt regarding your question. i want to know that 115.115.115.115 is your server which is situated at your data center right ? where 122.122.122.122 is placed ?
i want to know that 115.115.115.115 is your server
NO !!
actually it is a server with direct internet line having ip i.e 155.155.155.155 it is in our office placed in our server room
you don't have to provide proxy for browsing internet it runs on direct connection
Quote:
where 122.122.122.122 is placed ?
122.122.122.122 is our client computer IP address located some far away in same city
since our client has provided us with direct net connection (122.122.122.122). we can upload code to there machine through ssh and since i can't upload code from my desk machine as it is behind proxy so i need to go into server room and connet 122.122.122.122 from 155.155.155.155 via ssh
Quote:
can you update output of tracert 122.122.122.122 from your local system?
bash: command not found
HOPE i am clear !!!
Last edited by swaggerlee; 06-05-2013 at 07:58 AM.
Squid is for HTTP not SSH, so having Squid or not is irrelevant for your connection.
If you can log into 122.122.122.122 from the outside using and then from there to 192.168.100.116 again using SSH, you have several options. One is to chain ssh clients:
Code:
ssh -tt 122.122.122.122 ssh -tt 192.168.100.116
Another is to use netcat. It's a little more confusing, but provides you with a more direct connection.
There are other options and variations, including port forwarding. But like the above, they all depend on being able to ssh to 122.122.122.122 and from there to 192.168.100.116
@ sunil
the tracert output gives Request time out for 30 hops
as per ur comment can you suggest any "proper route" & "proper permission at my client end." so that i can connect 122.122.122.122 via ssh from my local machine
It is better now to contact your Network admin to provide you proper access to connect your server because i don't know about your network architecture.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.