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

From DAVE Developer's Wiki
Jump to: navigation, search
(RSA key generation)
(RSA key generation)
Line 8: Line 8:
  
 
== 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]]).
  
* select your username (ad es. username@myhost.com)
+
* select your username (which usually is your email like <code>name.surname@company.com</code> or something releated to your host es. <code>username@myhost.com</code>)
 
* start the host machine and log in into it
 
* start the host machine and log in into it
* start a shell session
+
* start a shell session (usually with CTRL-ALT-T)
 
* enter the <code>.ssh</code> subdirectory into your home directory: <code>cd ~/.ssh/</code>
 
* enter the <code>.ssh</code> subdirectory into your home directory: <code>cd ~/.ssh/</code>
* launch the following command:<br>
+
* launch the following command:
 +
 
 
<pre>ssh-keygen -t rsa -C "username@myhost.com" -f username@myhost.com</pre>
 
<pre>ssh-keygen -t rsa -C "username@myhost.com" -f username@myhost.com</pre>
 +
 
* this command creates the files <code>~/.ssh/username@myhost.com</code> ('''private key''') and <code>~/.ssh/username@myhost.com.pub</code> ('''public key''')
 
* this command creates the files <code>~/.ssh/username@myhost.com</code> ('''private key''') and <code>~/.ssh/username@myhost.com.pub</code> ('''public key''')
 
* edit your <code>~/.ssh/config</code> by adding the following lines:
 
* edit your <code>~/.ssh/config</code> by adding the following lines:

Revision as of 08:37, 4 April 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 (which usually is your email like name.surname@company.com or something releated to your host es. 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.