|
||||||||
|
|
|||||||
![]() |
|
|
Thread Tools | Display Modes |
|
#1
|
|
petes <(E-Mail Removed)> wrote:
> I want to connect to a ftp server - lets call it "B". The proxy > servers name is "A". No login is needed on "A" but user and password > is needed on "B". Most half-way descent software (ie, not the 'ftp' command) ought to respect the ftp_proxy environment variable. I know lynx does this, and it can view FTP sites as well. If for instance you're running a Squid-cache proxy, you could put these lines in your login script. export http_proxy='http://myproxy.domain:3128/' export ftp_proxy='http://myproxy.domain:3128/' And yes, that is http: for the ftp_proxy value, as between the proxy and the client it uses HTTP, even though the connection the proxy will make is FTP. Then a lynx ftp://your.site/path will take you to the FTP site you want (defaulting to anonymous access). lynx will also properly respect Proxy authentication too. -- Cameron Kerr (E-Mail Removed) : http://nzgeeks.org/cameron/ Empowered by Perl! Cameron Kerr |
|
#2
|
|||
|
|||
|
I want to connect to a ftp server - lets call it "B". The proxy
servers name is "A". No login is needed on "A" but user and password is needed on "B". I tried to read the man pages but did not succed in my effords to connect to the ftp site... Pls, is there someone who knows the syntax to connect to a ftp server via a proxy? Thanks for all replys... :-) |
|
#3
|
|||
|
|||
|
On 24 May 2004 01:12:00 -0700, petes <(E-Mail Removed)> wrote:
> I want to connect to a ftp server - lets call it "B". The proxy > servers name is "A". No login is needed on "A" but user and password > is needed on "B". > > I tried to read the man pages but did not succed in my effords to > connect to the ftp site... This is very application-specific. For instance, when you use ncftp you need to edit ~/.ncftp/firewall. This file is automatically created the first time you run ncftp and contains lots of documentation as comments. For instance, """ ( ~/.ncftp/firewall ) firewall-type=4 firewall-host=proxy.yourcompany.com firewall-user=anonymous # Optional; type4 doesn't use auth firewall-password=foobar # Optional; type4 doesn't use auth firewall-port=8021 """ Then connect to the FTP server using: """ $ ncftp -u username -p 'y0urp455w0rd' ftp.server.com """ Wkr, Sven Vermeulen -- Bent Hindrup Andersen, Danish MEP, about the Software Patent Directive: The approach of the Commission and Council in this directive is shocking. They are making full use of all the possibilities of evading democracy that the current Community Law provides. <http://lwn.net/Articles/84009/> |
![]() |
| Tags |
| command, ftp, proxy, server, syntax |
| Thread Tools | |
| Display Modes | |
|
|