Latest LQ Deal: Linux Power User Bundle
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 08-28-2007, 03:20 AM   #1
Registered: Oct 2005
Location: Bangladesh
Posts: 497

Rep: Reputation: 30
ftp to Linux server using One Line command


I want to "ftp' a Linux server from a windows machine directly .. i don't want to give username and password manually .

i.e. ,

ftp -n
And go to the machine's directory using no username or password . Or, use just One line with username & password .Is there any option ?
Old 08-28-2007, 03:45 AM   #2
Registered: Oct 2006
Distribution: usually use arch
Posts: 103

Rep: Reputation: 15
you could set the ftp server to allow anonymous logins. but this is VERY insecure, especially if you don't chroot those ftp logins into a directory tree they can't harm or see anything important. or are allowing access from outside of your LAN. both anon access and chrooting should be doable by editing the .conf file of your ftp daemon but we need to know which one to be of more help.

another option is to create a script that does the entire login process. I know how to do this in the bash shell but you will need to find someone who knows batch files written for DOS better than me to help you do it. [I am assuming this can be done because other command line environments do it, I may be wrong about DOS supporting it.
Old 08-28-2007, 04:20 AM   #3
LQ Guru
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 12,235

Rep: Reputation: 1685Reputation: 1685Reputation: 1685Reputation: 1685Reputation: 1685Reputation: 1685Reputation: 1685Reputation: 1685Reputation: 1685Reputation: 1685Reputation: 1685
Deleted as it was for a linux ftp client

Last edited by bathory; 08-28-2007 at 05:18 AM.
Old 08-28-2007, 04:46 AM   #4
Senior Member
Registered: Sep 2005
Location: Out
Posts: 3,307

Rep: Reputation: 55
ftp.exe -s
Put proper permissions on the file as it will contain user/password


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
FTP Command Line (Scripting Multiple FTP gets) Critcho Linux - Software 3 01-04-2007 11:57 PM
LXer: Ncftp: Weapons-grade FTP on the Linux command line LXer Syndicated Linux News 0 08-29-2006 06:03 PM
How to create FTP server/client the easiest way using command-line? mus1402 Linux - Networking 1 02-08-2006 06:16 AM
what is different with Ftp From browser and Ftp from command line zahra79 Linux - Networking 2 06-22-2005 03:26 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:54 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration