0

I created recipes in chef solo with following command

bzr init

bzr branch sftp://username@ip/~/branch-name

up to bzr init it will work but second command it requires password for username is there any method or option that i can use to send password with it or any way that does not require password

ilanco
  • 9,581
  • 4
  • 32
  • 37
Rupesh
  • 1

2 Answers2

2

You should be able to add the password to the URL:

bzr branch sftp://username:password@ip/~/branch-name
jelmer
  • 2,405
  • 14
  • 27
  • yes but this will also not working when giving the command as u put after that it will ones again ask for password and as per my search, this feature is going to add in bzr 2.6b2 version and it will release in august2012 if any changes or any information i miss plz update me thanks Rupesh – Rupesh Jun 15 '12 at 06:19
0

You can append the login info to ~/.bazaar/authentication.conf eg.:

# Identity on foo.net
[foo.net]
scheme=ftp
host=foo.net
user=joe
password=secret-pass

See this for more info: http://doc.bazaar.canonical.com/developers/authentication-ring.html

AmanicA
  • 4,659
  • 1
  • 34
  • 49
  • after this we have set BZR_SSH=paramiko then we can use bzr branch sftp://username:password@ip/~/branch-name – Rupesh Jun 19 '12 at 06:50