2

I have configured bzr to push updates and now it's using ssh for downloading all the branches too. Is it possible to use ssh only for uploading?

2 Answers 2

3

You can use different branch URLs for push and pull. First check the current related branches with bzr info:

$ bzr info
Standalone tree (format: 2a)
Location:
  branch root: .

Related branches:
    push branch: bzr+ssh://somehost.example.org/home/user/foo/
  parent branch: bzr+ssh://somehost.example.org/home/user/foo/

To switch any of these, just issue the push or pull command with the --remember option, such as:

$ bzr pull --remember http://somehost.example.org/~user/foo/

After that, you can verify the new setting with bzr info again.

1

Why not using a public key for password-less SSH logins?

Fast instructions:

  1. Generate a new key-pair:

    $ ssh-keygen -t rsa

  2. Copy you public key the SSH server:

    $ ssh-copy-id -i ~/.ssh/id_rsa.pub YourUserName@SSH-Server-Host

Permanent ssh-add keys with password

4
  • it is a passphrase request for the key, actually
    – int_ua
    May 30, 2012 at 22:10
  • I have linked a question of mine to permanent store keys with password
    – pl1nk
    May 30, 2012 at 22:27
  • 1
    I don't see how this answer is related to the question.
    – raimue
    Jun 13, 2012 at 8:18
  • @Raim This is how you set up ssh to grab the files using an ssh key instead of a password. When Bazaar is configured to go over ssh this eliminates the prompt for the ssh password.
    – k-den
    Mar 31, 2015 at 18:48

You must log in to answer this question.

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