Solved

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

Posted on 2007-12-02
6
308 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

NFR key for Veeam Backup for Microsoft Office 365

Veeam is happy to provide a free NFR license (for 1 year, up to 10 users). This license allows for the non‑production use of Veeam Backup for Microsoft Office 365 in your home lab without any feature limitations.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
CentOS 7 Linux for HP DL380 G4 32Bits 7 104
Upgraded from Debian 7 to 8.7 and got black screen 20 123
NFS v4 7 76
Allow offline access point to have internet 5 35
Little introduction about CP: CP is a command on linux that use to copy files and folder from one location to another location. Example usage of CP as follow: cp /myfoder /pathto/destination/folder/ cp abc.tar.gz /pathto/destination/folder/ab…
The purpose of this article is to demonstrate how we can upgrade Python from version 2.7.6 to Python 2.7.10 on the Linux Mint operating system. I am using an Oracle Virtual Box where I have installed Linux Mint operating system version 17.2. Once yo…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:

751 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