Networking Forums  

Go Back   Networking Forums > Networking Newsgroups > Linux Networking

FTP via Proxy server - syntax of command?

Reply
 
Thread Tools Display Modes
  #1  
Old 05-24-2004, 07:01 AM
Default Re: FTP via Proxy server - syntax of command?



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
Reply With Quote
  #2  
Old 05-24-2004, 09:12 AM
petes
Guest
 
Posts: n/a
Default FTP via Proxy server - syntax of command?

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... :-)
Reply With Quote
  #3  
Old 05-24-2004, 09:47 AM
Sven Vermeulen
Guest
 
Posts: n/a
Default Re: FTP via Proxy server - syntax of command?

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/>
Reply With Quote
Reply

Tags
command, ftp, proxy, server, syntax

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT. The time now is 03:55 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.