Solved

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

Posted on 2007-12-02
6
309 Views
Last Modified: 2013-12-16
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
Comment
Question by:star8888
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
6 Comments
 
LVL 14

Expert Comment

by:arrkerr1024
ID: 20393399
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
 
LVL 14

Accepted Solution

by:
arrkerr1024 earned 25 total points
ID: 20393401
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
 
LVL 1

Assisted Solution

by:manuelflury
manuelflury earned 25 total points
ID: 20453552
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
 
LVL 1

Expert Comment

by:Computer101
ID: 20953327
Forced accept.

Computer101
Community Support Moderator
0

Featured Post

Are You Using the Best Web Development Editor?

The worlds of web hosting and web development are constantly evolving. Every year we see design trends change, coding standards adapt and new frameworks/CMS created. With such a quick pace of change it’s easy to get lost trying to keep up.

See if your editor made the list.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

1. Introduction As many people are interested in Linux but not as many are interested or knowledgeable (enough) to install Linux on their system, here is a safe way to try out Linux on your existing (Windows) system. The idea is that you insta…
In part one, we reviewed the prerequisites required for installing SQL Server vNext. In this part we will explore how to install Microsoft's SQL Server on Ubuntu 16.04.
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
Suggested Courses

624 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question