1820561 Members
2036 Online
109626 Solutions
New Discussion юеВ

FTP command line/proxy

 
SOLVED
Go to solution
Pedro Cirne
Esteemed Contributor

FTP command line/proxy

Hi,

I have a hp-ux server and using Mozzila I can ftp to servers outside the intranet.

My problem is that from the hp-ux command line I can't ftp to the same servers, I think the problem should be related with using the proxy.

How can I ftp to servers from the command line through the proxy?

Thks,
7 REPLIES 7
A. Clay Stephenson
Acclaimed Contributor

Re: FTP command line/proxy

ftp
proxy open hostname
If it ain't broke, I can fix that.
Pedro Cirne
Esteemed Contributor

Re: FTP command line/proxy

Thks, but how do I define the proxy IP adress?
A. Clay Stephenson
Acclaimed Contributor

Re: FTP command line/proxy

proxy open ip_address.
If it ain't broke, I can fix that.
Peter Nikitka
Honored Contributor

Re: FTP command line/proxy

Hi,

I think you cannot do this with the standard ftp. You'll have to use wget or something like that.

My point of knowledge is, that the term 'proxy' in regard to browsers means something different to the one of the ftp protocoll:

The use of the ftp proxy command would require first a ftp connection to the proxy-server (configured in the browser).
Then you could 'proxy open' the host, which you really want to connect with.

Nearly 100% of network/firewall configurations won't meet those requirements.

mfG Peter
The Universe is a pretty big place, it's bigger than anything anyone has ever dreamed of before. So if it's just us, seems like an awful waste of space, right? Jodie Foster in "Contact"
Steven E. Protter
Exalted Contributor
Solution

Re: FTP command line/proxy

Shalom,

Most of the tools like wget and such let you set a variable. In that variable you set the proxy server address and then commands work normally.

It also seems A. Clay gave you the answer twice.

I think wget is a better tool for this anyway, if you are looking for an opinion.

:-)

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
VK2COT
Honored Contributor

Re: FTP command line/proxy

Hello,

Lot of my customers use one of the two
tools:

curl
wget

Both work very well in HP-UX.

Simple example for wget. Set up
environment variables:

http_proxy=http://myproxysrv.domain.dom:3128/
ftp_proxy=http://myproxysrv.domain.dom:3128/
https_proxy=http://myproxysrv.domain.dom:3128/

For curl, one way is to use command line:

curl --proxy myproxysrv.domain.dom:3128

It is obvious that my examples showed
Squid proxy server :)

VK2COT
VK2COT - Dusan Baljevic
Pedro Cirne
Esteemed Contributor

Re: FTP command line/proxy

Thank you all