Avoid typing FTP password

Asked by Wout De Nolf

I have a lightweight checkout of a branch located on an FTP server:
   bzr checkout --lightweight ftp://username:password@server/remotepath/ c:/localpath

If I want to update my checkout, it asks for a password
   cd c:/localpath
   bzr update
   FTP username@server password:
   Tree is up to date at revision 5 of branch ftp://username:password@server/remotepath/

Since I want to call "bzr update" from within PHP, I don't want to be prompted for a password. My current workaround is adding the password plaintext to c:/localpath/.bzr/branch/location
   ftp://username:password@server/remotepath/

Is there a better (more secure) way of doing this?

Question information

Language:
English Edit question
Status:
Solved
For:
Bazaar Edit question
Assignee:
No assignee Edit question
Solved by:
Wout De Nolf
Solved:
Last query:
Last reply:
Revision history for this message
Martin Pool (mbp) said :
#1

Yes, you can put it in ~/.bazaar/authentication.conf
http://doc.bazaar.canonical.com/developers/authentication-ring.html

Revision history for this message
Wout De Nolf (wout-de-nolf) said :
#2

Thanks!