Difference between revisions of "Accessing DAVE Embedded Systems restricted git repositories"

From DAVE Developer's Wiki
Jump to: navigation, search
(RSA key generation)
Line 4: Line 4:
 
{{InfoBoxBottom}}
 
{{InfoBoxBottom}}
 
__FORCETOC__
 
__FORCETOC__
 +
 
==Introduction==
 
==Introduction==
 +
 
Generally speaking, source code maintained by DAVE Embedded Systems is delivered to customers via restricted-access [https://git-scm.com git] repositories. To access these repositories a public key is required, as described in the following section.
 
Generally speaking, source code maintained by DAVE Embedded Systems is delivered to customers via restricted-access [https://git-scm.com git] repositories. To access these repositories a public key is required, as described in the following section.
  
 
== RSA key generation ==
 
== RSA key generation ==
 +
 
Please follow this procedure to generate the RSA ssh key. It is assumed that the host machine is Linux-based (such as [[::Category:DVDK|DVDKs]] and [[Managed_Virtual_Machine_(MVM)|MVMs]]).
 
Please follow this procedure to generate the RSA ssh key. It is assumed that the host machine is Linux-based (such as [[::Category:DVDK|DVDKs]] and [[Managed_Virtual_Machine_(MVM)|MVMs]]).
  
Line 31: Line 34:
  
 
* Send the request for the creation of a new public git account associated to your username, to the following support email address: [mailto:support@dave.eu support@dave.eu]. Please indicate in the subject the name of the product and/or the development kit. The technical support team will enable the account and send you a confirmation as soon as possible.
 
* Send the request for the creation of a new public git account associated to your username, to the following support email address: [mailto:support@dave.eu support@dave.eu]. Please indicate in the subject the name of the product and/or the development kit. The technical support team will enable the account and send you a confirmation as soon as possible.
 +
 +
* Once you have the confirm that your account has been enabled, the easier way to check that everything is configured correctly is to run the following command on you development workstation
 +
 +
<pre>
 +
ssh git@git.dave.eu
 +
</pre>
 +
 +
The output will show you not only that you have successfully login into DAVE git server but also which repository you can access and with what access rights. In the following example the user have access all [[AXEL ULite and SBC Lynx Embedded Linux Kit (XUELK)|XUELK]] repository in read-only mode:
 +
 +
<pre>
 +
bash# ssh git@git.dave.eu
 +
PTY allocation request failed on channel 0
 +
hello YOURNAME, this is gitolite 2.2-1 (Debian) running on git 1.7.9.5
 +
the gitolite config gives you the following access:
 +
    R    lynx/..*
 +
Connection to git.dave.eu closed.
 +
</pre>
 +
 +
In case of trouble use ssh verbose mode by using <code>-vvv</code> command line switch (<code>ssh -vvv git@git.dave.eu</code>) and send its output text to [mailto:support@dave.eu DAVE Embedded System support team].

Revision as of 08:48, 4 November 2016

Info Box
VirtualMachine.png Applies to DVDK
VirtualMachine.png Applies to MVM


Introduction[edit | edit source]

Generally speaking, source code maintained by DAVE Embedded Systems is delivered to customers via restricted-access git repositories. To access these repositories a public key is required, as described in the following section.

RSA key generation[edit | edit source]

Please follow this procedure to generate the RSA ssh key. It is assumed that the host machine is Linux-based (such as [[::Category:DVDK|DVDKs]] and MVMs).

  • select your username (e.g. username@myhost.com)
  • start the host machine and log in into it
  • start a shell session (usually with CTRL-ALT-T)
  • enter the .ssh subdirectory into your home directory: cd ~/.ssh/
  • launch the following command:
ssh-keygen -t rsa -C "username@myhost.com" -f username@myhost.com
  • this command creates the files ~/.ssh/username@myhost.com (private key) and ~/.ssh/username@myhost.com.pub (public key)
  • edit your ~/.ssh/config by adding the following lines:
Host git.dave.eu
    User git
    Hostname git.dave.eu
    PreferredAuthentications publickey
    IdentityFile ~/.ssh/username@myhost.com


  • Send the request for the creation of a new public git account associated to your username, to the following support email address: support@dave.eu. Please indicate in the subject the name of the product and/or the development kit. The technical support team will enable the account and send you a confirmation as soon as possible.
  • Once you have the confirm that your account has been enabled, the easier way to check that everything is configured correctly is to run the following command on you development workstation
ssh git@git.dave.eu

The output will show you not only that you have successfully login into DAVE git server but also which repository you can access and with what access rights. In the following example the user have access all XUELK repository in read-only mode:

bash# ssh git@git.dave.eu
PTY allocation request failed on channel 0
hello YOURNAME, this is gitolite 2.2-1 (Debian) running on git 1.7.9.5
the gitolite config gives you the following access:
     R     	lynx/..*
Connection to git.dave.eu closed.

In case of trouble use ssh verbose mode by using -vvv command line switch (ssh -vvv git@git.dave.eu) and send its output text to DAVE Embedded System support team.