LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   ftp to Linux server using One Line command (https://www.linuxquestions.org/questions/linux-newbie-8/ftp-to-linux-server-using-one-line-command-580348/)

shipon_97 08-28-2007 03:20 AM

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 ?

farkus888 08-28-2007 03:45 AM

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.

bathory 08-28-2007 04:20 AM

***EDIT***
Deleted as it was for a linux ftp client

nx5000 08-28-2007 04:46 AM

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


All times are GMT -5. The time now is 08:59 AM.