Create Your ElastosID Account

Requirements

 * Java 1.6 JVM (or higher)
 * You can download it from http://java.sun.com/javase/downloads/


 * Python 2.5 -- 2.7
 * You can download it from http://www.python.org/download/


 * Git 1.7 (or higher)
 * You can download it from http://git-scm.com/download


 * Tofrodos
 * Tofrodos converts text files between the DOS/Windows format and the Unix format.
 * You can download it from http://www.thefreecountry.com/tofrodos/index.shtml

What is ElastosID?

 * The Elastos Developer Websites requires an ElastosID to login. The role of an ElastosID is similar to OpenID. It acts as a unique identification for any Elastos application developer who is working online. With the ElastosID Authentication system, your username is your URL, and your password stays safely stored on the ElastosID Provider.
 * If you don't have an ElastosID (OpenID), please sign up for one at [elastos.org]. Before you press http://elastos.org/register/ to sign up, make sure that you have an Invite Code.
 * Your ElastosID should be in this format: http://username.elastos.org

Setting Your ElastosID Account in Review

 * 1) Open your internet browser and visit http://elastos.org/review/
 * 2) Sign in with your Elastos ID.
 * 3) After logging in, your browser will redirect you to the welcome page. Fill in your full name and save your changes.
 * 4) Fill in a unique Username (your.name for example), which will be your email prefix.
 * 5) Click Select Username and Continue.


 * For your convenience, we suggest that you use the same Username for all the websites that included the Elastos Development Social Network Syetem, such as 'elastos.org', 'elastos.org/redmine', 'elastos.org/review',etc.

Creating SSH Keys
Input these commands in your terminal: $ cd ~ $ curl http://elastos.org/elorg_files/config.sh > config.sh   $ chmod a+x config.sh    $ ./config.sh
 * 1) Login to your Ubuntu 10.04 Desktop and access the Applications -> Accessories menu to open a Terminal.
 * 2) Get a wizard script(config.sh) from here (http://elastos.org/elorg_files/config.sh) and run it. The script will prepare your development environment automatically. For example, it will install any required programs, set up your SSH keys and add shortcuts to the code server. To see the contents of config.sh, click hereconfig.sh.
 * 3) Run config.sh to get a pair of SSH keys. If you already have the SSH keys, the public key is stored in：~/home/username/.ssh/id_rsa.pub.
 * 4. Provide your full name and email to config.sh.

================================   Configuring Git... ================================   Your Full Name [your.name]: Your Email [your.name@elastos.org]:
 * 5. Provide your code server login name to config.sh.

Your Username: your.name Generating key... ================================   Your Account Summary ================================   Full Name: Your.Name SSH Public Keys: ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAmLmwkzQDjEOW1Rj3TP5NldVDqUODVH9xuYrkeaSkxtdP J8D9Hz+XAWnGAXdaIkCVOw2YEfHKWSo6befgNxiS+AKS+S+wM/bJpc4qOLe5ozFjZPNRHcw5O8WkgP5g /wg2BOvxBqSKpsSzvi4rYVRLtl7TLVMyajhELiJ9GqT8f25gr3jFmtuQQIkRES1aC4oL2tHsn529POfP 1lPhh5tb2FbqEpm9L3779ljjkSX7mD4zza3zUckkuAIb5R7KSOrvPnJaEU903hrI0tx5omGyDy+h/2D1 h0aqHanPcU9Ml91ZpMKdpa0+FeVgs2M3LHYTNnvZ76ScV2VtUQwm3YEvjw== alex@smartarse.org

Installing The Key On Remote Machines

 * 1) Open your internet browser and visit http://elastos.org/review/#/settings/.
 * 2) Sign in to Gerrit Code Review with the OpenID you have obtained at Elastos.org.
 * 3) The first time you sign in to Code Review, we suggest you review your contact information.
 * 4) *Full Name:Type your name here.
 * 5) *Preferred Email: Click Register New Email..., then register the email account that you registered at elastos.org.
 * 6) *Login to your email, and find the verification message.Click the verification link inside.
 * 7) *Select a unique username: The username you registered in elastos.org.
 * 8) *Paste your ssh public keys in the Add SSH Public Key text box, and add.
 * 9) *[[Image:Redmine_Register.png]]
 * 10) If you have registered an account in Code Review, and want to add a new pair of SSH keys, you can do the following:
 * 11) *Click SSH Public Keys
 * 12) *Click Add Key ...
 * 13) *Paste your SSH public keys and Add.

Test Connection To The Code Server
$ ssh elastos.org ****   Welcome to Gerrit Code Review    ****

Hi XXX, you have successfully connected over SSH.

Unfortunately, interactive shells are disabled. To clone a hosted Git repository, use:

git clone ssh://your.name@elastos.org:29418/review/REPOSITORY_NAME.git

Connection to elastos.org closed.

'''Your ElastosID account should have been create. If you experience any difficulties, try checking below:'''

1. Permission denied (publickey)
With this error message, a SSH command to Gerrit is rejected if the SSH authentication is not successful.

The SSH protocol uses public-key cryptography for authentication. This means for a successful SSH authentication you need your private SSH key and the corresponding public SSH key must be known to Gerrit.

If you are facing this problem, do the following: i. Verify that you are using the correct username for the SSH command, and that it is typed correctly (case sensitive). You can look up your username in the Gerrit WebUI under Settings → Profile. ii. Verify that you have uploaded your public SSH key for your Gerrit account. To do this go to Settings → SSH Public Keys in the Gerrit WebUI and check that your public SSH key is there. If your public SSH key is missing, make sure to upload it. iii. Verify that you are using the correct private SSH key.

To find out which private SSH key is used test the SSH authentication as described below. From the trace you should see which private SSH key is used.

Test SSH Authentication

To test the SSH authentication, you can run the following SSH command. This command will print out a detailed trace which will help to analyze problems with the SSH authentication:

$ ssh -vv -p 29418 john.doe@git.example.com

If the SSH authentication is successful, you should find the following lines in the output: ...

debug1: Authentication succeeded (publickey).

...

****   Welcome to Gerrit Code Review    ****

Hi John Doe, you have successfully connected over SSH.

Unfortunately, interactive shells are disabled. To clone a hosted Git repository, use:

git clone ssh://john.doe@git.example.com:29418/REPOSITORY_NAME.git

...

2. Agent admitted failure to sign using the key. Permission denied (publickey).
Run this command in the Linux shell: $ssh-add The command ssh-add - adds RSA or DSA identities to the authentication agent.

Click here for more info: http://linux.die.net/man/1/ssh-add

Home