The source repository for OpenMDAO is read-accessible to the public, so making a branch from it does not typically require that you have a Launchpad account. However, if you are behind a proxy, you may need to not only have a Launchpad account but also register your public SSH key with your Launchpad account before you can read or write to the repository. If you require write access to the OpenMDAO project on Launchpad, either to push changes directly to the trunk or to push up personal branches for merge approval, you will need to have a Launchpad account and to register your public SSH key with that account, regardless of whether you are behind a proxy or not. The following section describes how to register your SSH key with Launchpad.
These instructions assume that you already have a Launchpad account. If you do not, please go to https://launchpad.net and register for an account. Go ahead and log in to your Launchpad account, since you will need to be logged in to register your key.
Please follow these instructions for the SSH key creation/registration process if you use Linux or Mac OS X.
Note
In the unusual event that the ssh-keygen command fails, you may need to install OpenSSH. To do this requires that you have admin privileges. On Ubuntu, you can install OpenSSH by opening your terminal and typing: sudo apt-get install openssh-client.
You need to register and upload the public portion of your SSH key to Launchpad.
You need to provide Launchpad with your userid before you can merge from openmdao to your branch or push a branch back to openmdao. In your home directory on your Linux machine, type:
bzr launchpad-login userid
Note
If you do not know your userid, log in to Launchpad and click on your name in the upper right-hand corner. This takes you to an Overview page. In the first column, under User Information, you should see OpenID login. The web address will contain your userid.
If the above command failed, you may be missing an authentication.conf file or have incomplete information in your bazaar.conf file. To check whether you have these files, type the following commands:
[Launchpad]
host = .launchpad.net
scheme = ssh
user = <launchpad-userid>
See also
For information on creating a branch, building, and pushing a branch to openmdao on Launchpad, see Working on Your Branch.
If you use Windows, please follow these instructions for SSH key creation and registration.
In your user directory (on Vista, for example, C:\Users\<win-username-here>), create a new directory called .ssh. Creating this directory with Explorer will not work because of the leading dot! To create this directory, start a command prompt and navigate (using the cd command) to your user directory and type md .ssh.
Assuming PuTTY is installed in C:\Putty, go there and run PuTTYgen. If it isn’t installed, go to this page and download it.
Within PuTTYgen, click the Generate button and move your mouse around as instructed. Do not enter a key passphrase.
Once the key is generated, go to the Conversions menu and choose Export OpenSSH Key. (DON’T USE the Save Private Key button.) In the save dialog, navigate to the .ssh folder and save the key that you created in Step 1 above. Save the private key as id_rsa (no file extension). PuTTYgen will warn you that you’re making a key without a passphrase. Click YES to let PuTTYgen know that you are sure you want to save this key without a passphrase to protect it.
Check to make sure your key is not created with a .ppk extension. If it has an extension, use Explorer to navigate to this file and rename it so it has NO extension.
Keep your Putty Key Generator open for registering with Launchpad.
Note
If you do not know your userid, in Launchpad click on your name in the upper right-hand corner. This takes you to an Overview page. In the first column, under User Information, you should see OpenID login. The web address will contain your userid.