how to connect a remote host via ssh behind proxy
HI all
here is the situation... let say i deliver code to my client who is outside my network with ip 122.122.122.122 (say) now i can connect my client via ssh with IP i.e 115.115.115.115 (say) direct connection from server room but what i need to know is how can i connect to my client from my desk from my computer (ip 192.168.100.116) which is behind a squid proxy server. waiting for possible solutions Hope i described my problem briefly |
you want access 115.115.115.115 or 122.122.122.122 from your local system ??
I think you have a firewall between your local system to your data center right? sunil |
@ sunil
i want to connect 122.122.122.122 from my local system i have a proxy connection |
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 ? sunil |
Quote:
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:
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:
HOPE i am clear !!! |
can you upload output of tracert 115.115.115.115 command from your local system ?
sunil popaliya |
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 Code:
ssh -o 'ProxyCommand ssh %h nc 192.168.100.116 22' \ |
@ sunil bhai
Quote:
@ Turbocapitalist I think you didn't read my problem carefully i want to connect 122.122.122.122 via ssh from 192.168.100.116 and i am using windows machine plzz read above posts carefully and solvge my problem !! |
in windows machine go to command prompt and run this command.
I think turbocapitalist is correct. ssh has no concern with proxy. ssh to 122.122.122.122 from your local machine you should have proper route and you should have proper permission at your client end. sunil |
From local machine to able access your 115.x.x.x server through putty? then u are able access 122.x.x.x server also ( via 115)
|
@ a.abdulna
yes i know i can do that via (115.x.x.x.) but i want to do it from my ip i.e 192.168.100.116 using putty post something else ! |
hey man,
He is telling you to ssh 115.115.115.115 from your local system. if it will work, you can do ssh to 122.122.122.122 also. sunil |
@ 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 |
Which proxy ur having? like ( firewall, router or any proxy script ). or just try like any route add from ur putty, # route add 122.x.x.x gw x.x.x.x
please explain me your scenario.. |
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.
If any other query is there upload it. sunil |
All times are GMT -5. The time now is 12:40 PM. |