System Administration
cancel
Showing results for 
Search instead for 
Did you mean: 

sftp connect to remote host via proxy

Canon_3
Occasional Advisor

sftp connect to remote host via proxy

Hi Experts,

Could someone help me, how can i establish a connection using sftp to the remote host (external) through proxy server.
May i know what is the exact command?


Thanks in advance.
5 REPLIES
Kapil Jha
Honored Contributor

Re: sftp connect to remote host via proxy

how you trying to connect to the server?
you should make sure if you able to able to connect to the port...
what exact error.

Verify that the server you are connecting to supports SFTP connections.

BR,
Kapil+
I am in this small bowl, I wane see the real world......
Canon_3
Occasional Advisor

Re: sftp connect to remote host via proxy

Hi Kapil,

The ssh is able to accept the connections but i don't know the proper command to execute to connect to the remote host (which is the external server) via proxy server.
This is for our business requirement.

When i checked with our N/W team they said that they have successfully established the connection to remote host using FileZilla but i don't know what is the command in HP-UX to connect.

Kindly help me.

Thank you.
Aneesh Mohan
Honored Contributor

Re: sftp connect to remote host via proxy

johnsonpk
Honored Contributor

Re: sftp connect to remote host via proxy

Hi Swetha,

download corkscrew from site http://www.ifost.org.au/Software/

unpack software and compile it

#sh configure --host=-hpux

#make install


add below lines to ~/.ssh/config file (for proxy without authentication)

ProxyCommand /usr/local/bin/corkscrew %h %p

if your proxy need authentication , update your ~/.ssh/config like below


ProxyCommand /usr/local/bin/corkscrew %h %p ~/.ssh/myauth

And add username and password in the ~/.ssh/myauth file in the below format

:



run ssh or sftp as normal and it will proxied through your mentioned proxy server in the config file


regards!
Johnson
nightwich
Valued Contributor

Re: sftp connect to remote host via proxy

Hi Narayana


If they use Filezzila .


sftp should work.

You need to have ssh installed in the client side.


The try and post the output of the following command:

sftp name_server.

Regards