Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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.

share|improve this question
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. –  DaveParillo Nov 4 '09 at 5:25
add comment

4 Answers

up vote 1 down vote accepted

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

share|improve this answer
add comment

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

share|improve this answer
    
@MrStatic:I'd like some commandline things. –  Jichao Nov 4 '09 at 6:59
add comment

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/

share|improve this answer
add comment

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

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.