Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 314
  • Last Modified:

how to access ftp site in internet using a linux machine via proxy?

I want to access to a ftp site using a Red Hat Linux (Enterprise edition  4) , using
command line.But in my environment has a proxy server named as proxyhost1 .

My question is what is the command line I should type in order for me to do
a ftp or YUM using linux command line ?

Supposing My domain userid is : user001, password is passcode123.
(For your information, if using graphical mode, Internet explorer to access
to ftp or website, I will be prompted to input my domain userid and password, then
I am able to access.  I need help in commandline to access to internet)

If I can recall, I need to type out a long statement,  followed by a second line, which contain "export" xxxx

Please advise .Thank you.
0
star8888
Asked:
star8888
  • 2
2 Solutions
 
arrkerr1024Commented:
If you have wget available you can first "export http_proxy="http://proxyhost1:proxyport" and then use wget as you normally would: "wget ftp://user:password@server/directory/file".
0
 
arrkerr1024Commented:
setting the http_proxy environment variable may/should work with other programs as well.

You could stick the "export http_proxy=proxyserver:proxyport" in your system .profile to have it load every time, or in your local login script, so that you don't have to do it every time.
0
 
manuelfluryCommented:
Depending of your proxy, you should try one of these :
Auth rules for FTP 		
Proxy type	Proxy	Proxy Authentification
		
FTP_2, FTP_3		
USER	login@host[[:]port]	login@proxylogin@host[[:]port]
PASS	pwd	pwd@proxypwd
		
FTP_4		
SITE	host[:port]	host[:port]
USER	login	login@proxylogin
PASS	pwd	pwd@proxypwd
		
FTP_5		
OPEN	host[:port]	host[:port]
USER	login	login@proxylogin
PASS	pwd	pwd@proxypwd

Open in new window

0
 
Computer101Commented:
Forced accept.

Computer101
Community Support Moderator
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now