Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
02-10-2005, 12:59 PM
|
#1
|
Member
Registered: Mar 2003
Location: Macondo
Distribution: Mandrake 9.1, 10.1, SuSE 8.1 pro, 10.1, Red Hat 8.0/9.0
Posts: 380
Rep:
|
ftp & wget login not working
Hello All,
I'm trying to recursively download a buch of files from a site, and thus I have to use wget.
I'm trying to login wget ftp://servername but I then get booted out because I didn't include the username / password. How do I include the username password in ONE string using both wget and ftp?
Any thoughts?
|
|
|
02-10-2005, 01:24 PM
|
#2
|
Senior Member
Registered: Sep 2004
Location: Savannah, GA
Distribution: Ubuntu, Gentoo, Mythbuntu, ClarkConnect
Posts: 1,154
Rep:
|
wget:
Quote:
--http-user=user
--http-passwd=password
Specify the username user and password password on an
HTTP server. According to the type of the challenge,
Wget will encode them using either the "basic" (inse_
cure) or the "digest" authentication scheme.
Another way to specify username and password is in the
URL itself. Either method reveals your password to
anyone who bothers to run "ps". To prevent the pass_
words from being seen, store them in .wgetrc or
.netrc, and make sure to protect those files from
other users with "chmod". If the passwords are really
important, do not leave them lying in those files
either---edit the files and delete them after Wget has
started the download.
|
ftp:
Quote:
user user-name [password] [account]
Identify yourself to the remote FTP server. If the password
is not specified and the server requires it, ftp will prompt
the user for it (after disabling local echo). If an account
field is not specified, and the FTP server requires it, the
user will be prompted for it. If an account field is speci_
fied, an account command will be relayed to the remote server
after the login sequence is completed if the remote server
did not require it for logging in. Unless ftp is invoked
with ``auto-login'' disabled, this process is done automati_
cally on initial connection to the FTP server.
|
|
|
|
02-10-2005, 01:58 PM
|
#3
|
Member
Registered: Mar 2003
Location: Macondo
Distribution: Mandrake 9.1, 10.1, SuSE 8.1 pro, 10.1, Red Hat 8.0/9.0
Posts: 380
Original Poster
Rep:
|
It still says I'm logging in as anonymous
wget -r user administrator ftp://XXXXX
Any other thoughts?
Has anyone ever tested this really; anybody have the whole string that needs to be used?
|
|
|
02-10-2005, 02:05 PM
|
#4
|
Member
Registered: Mar 2003
Location: Macondo
Distribution: Mandrake 9.1, 10.1, SuSE 8.1 pro, 10.1, Red Hat 8.0/9.0
Posts: 380
Original Poster
Rep:
|
Hello secesh, from that man you posted...
would you know how to disable the local echo?
That is actually the problem, that he doesn't prompt me for the password and just refuses the connection...
|
|
|
02-10-2005, 02:10 PM
|
#5
|
Member
Registered: Mar 2003
Location: Macondo
Distribution: Mandrake 9.1, 10.1, SuSE 8.1 pro, 10.1, Red Hat 8.0/9.0
Posts: 380
Original Poster
Rep:
|
This is the actual string I use:
wget -r ftp://administrator@XXXXX
...
Logging in as administrator ...
Login incorrect.
unlink: No such file or directory
*** At this stage is where I would expect a prompt from the server so I could type in my password, but that's what not happening...
Any thoughts?
|
|
|
02-10-2005, 02:22 PM
|
#6
|
Member
Registered: Mar 2003
Location: Macondo
Distribution: Mandrake 9.1, 10.1, SuSE 8.1 pro, 10.1, Red Hat 8.0/9.0
Posts: 380
Original Poster
Rep:
|
Got it:
"wget -r ftp://username assword@SERVERNAME/directory"
Hope it helps someody out!
Last edited by vous; 02-10-2005 at 02:23 PM.
|
|
|
All times are GMT -5. The time now is 10:15 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|