LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices



Reply
 
Search this Thread
Old 08-28-2007, 04:20 AM   #1
shipon_97
Member
 
Registered: Oct 2005
Location: Bangladesh
Posts: 448

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


friends,

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 192.168.10.1
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, 04:45 AM   #2
farkus888
Member
 
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, 05:20 AM   #3
bathory
Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 10,975

Rep: Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343
***EDIT***
Deleted as it was for a linux ftp client

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

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


Reply


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-05-2007 12:57 AM
LXer: Ncftp: Weapons-grade FTP on the Linux command line LXer Syndicated Linux News 0 08-29-2006 07:03 PM
How to create FTP server/client the easiest way using command-line? mus1402 Linux - Networking 1 02-08-2006 07:16 AM
what is different with Ftp From browser and Ftp from command line zahra79 Linux - Networking 2 06-22-2005 04:26 AM


All times are GMT -5. The time now is 02:38 AM.

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