Networking Forums

Networking Forums > Computer Networking > Linux Networking > FTP via Proxy server - syntax of command?

Reply
Thread Tools Display Modes

FTP via Proxy server - syntax of command?

 
 
Cameron Kerr
Guest
Posts: n/a

 
      05-24-2004, 06:01 AM
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!
 
Reply With Quote
 
 
 
 
petes
Guest
Posts: n/a

 
      05-24-2004, 08:12 AM
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
 
Sven Vermeulen
Guest
Posts: n/a

 
      05-24-2004, 08:47 AM
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

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
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Windows Server 2008 as Proxy Server Auxiliaire Tournée 1 Windows Networking 6 11-03-2008 08:39 AM
Windows Server testing - need batch file syntax which will resume virtual machines from a paused state Spin Windows Networking 1 02-28-2008 02:54 AM
Using an outside proxy server form behind a proxy server UnaCoder Linux Networking 6 02-22-2006 07:53 PM
MS Command Line Syntax Geoff Lane Home Networking 10 12-08-2004 09:12 PM
Command syntax Invisible Windows Networking 0 02-12-2004 09:20 AM



1 2 3 4 5 6 7 8 9 10 11