sftp through proxy?

concentricpuddle

Well-Known Member
Joined
Jul 8, 2009
Messages
241
Hey guys, does anyone know if it's possible to use sftp through a proxy? I need to upload some files through the varsity's proxy.
 

MyWorld

Executive Member
Joined
Mar 24, 2004
Messages
5,001
What type of proxy is it and what ports are open?
You will also need a FTP client that supports connections through a proxy, like Filezilla.
When using FTP through an HTTP Proxy, be aware that some HTTP proxies now include a configuration parameter called AllowCONNECT. This parameter lists the ports through which the HTTP Proxy allows outgoing connections when an HTTP CONNECT command is received. When you FTP through an HTTP Proxy, the FTP process uses passive mode. In passive mode, after the initial FTP connection, the FTP process receives a port number from the FTP server. The FTP server wants the client to use this port number when establishing a second connection, the data connection, to the FTP server. If this port number is not in the AllowCONNECT port list in the HTTP Proxy configuration, then the proxy does not allow the second connection to be established with the FTP server. Some FTP servers, as part of their configurations, allow the ports returned to the client to be restricted to a certain range. In this case, you must add all the port numbers within the range to the AllowCONNECT HTTP Proxy directive for the FTP session to connect through the HTTP Proxy.
 

fskmh

Expert Member
Joined
Feb 23, 2007
Messages
1,184
sftp should use port 22, so the proxy isn't involved. If port 22 is open on the varsity firewall for that box it should just work(TM).
 

concentricpuddle

Well-Known Member
Joined
Jul 8, 2009
Messages
241
I am (was) at the NMMU. I was able to get it working by using corkscrew, but the proxy (isa) doesn't allow connections through port 22 and sourceforge didn't want to connect through the couple of ports that were allowed. Thanks for the help. Will give it a try when I go to varsity.
 
Last edited:
Top