Open main menu

DAVE Developer's Wiki β

Changes

Accessing DAVE Embedded Systems restricted git repositories

848 bytes added, 14:11, 14 November 2022
fix mediawiki category typo
=== 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]]).
* select your username (pick you main corporate e.g. -mail and use it instead of <code>usernamemyname@myhostmycompany.com</code>)in the examples below
* start the host machine and log in into it
* start a shell session (usually with CTRL-ALT-T)
* launch the following command:
<pre>ssh-keygen -t rsa -C "usernamemyname@myhostmycompany.com" -f usernamemyname@myhostmycompany.com</pre>
* this command creates the files <code>~/.ssh/usernamemyname@myhostmycompany.com</code> ('''private key''') and <code>~/.ssh/usernamemyname@myhostmycompany.com.pub</code> ('''public key''')
* edit your <code>~/.ssh/config</code> by adding the following lines:
Hostname git.dave.eu
PreferredAuthentications publickey
IdentityFile ~/.ssh/usernamemyname@myhostmycompany.com
</pre>
{{ImportantMessage|text=Please make sure that <code>~/.ssh/config</code> has the right ownership/access right <pre>chmod 600 ~/.ssh/configchown $USER ~/.ssh/config</pre> Please refer to [https://linux.die.net/man/5/ssh_config ssh_config man page]}}  * Send the request for the creation of a new public git account associated to your username, to the following support email address: [mailto:supporthelpdesk@dave.eu supporthelpdesk@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
Upon next connection, ssh client will prompt the user to confirm ECDSA signature like it was the first time connecting to the server.
 
=== Your Identity ===
 
The first thing you should do when you install git is to set your user name and email address.
This is important because every git commit uses this information, and they are written into your commits:
 
<pre>
git config --global user.name "Name Surname"
git config --global user.email myname@mycompany.com
</pre>
 
Please find documentation [https://git-scm.com/book/en/v2/Getting-Started-First-Time-Git-Setup here] and [https://www.kernel.org/pub/software/scm/git/docs/git-config.html here] for more information.
== HTTPS access ==
770
edits