0

I have to ftp one server many times on day and I want to avoid retyping username and password.So I want to set default username and password for ftp client for spec ip/site, or configure the ftp daemon to make it keep ftp session as long as it could.

Is there any method for the first quesiton under windows and the second question under linux?

+clarify: I need something could do it within commandline.

thanks.

1
  • 1
    is ssh an option? You could put your public key on the server & not have to supply a password for either windows or linux. Nov 4, 2009 at 5:25

4 Answers 4

1

With ncftp you can specify username on password, and also let you create bookmarks that include password. ncftpput/ncftpget are better options for scripting.

1

You could just use FileZilla as a ftp client. Set a profile for this specific site. FileZilla works on both windows and linux.

1
  • @MrStatic:I'd like some commandline things.
    – Jichao
    Nov 4, 2009 at 6:59
0

I think you can use a file which contains the username and password and reference it via the ftp command (-s:filename option in windowsXP) in the commandline. I dont know the exact syntax of the file that contains the username and password but i think this page may help.

http://www.howtogeek.com/howto/windows/how-to-automate-ftp-uploads-from-the-windows-command-line/

0

You could use the CrossFTP client, available on Windows, Linux and Mac.
The freeware version has Favorites, among many other features.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .