new: Git ssh key documentation hinzugefügt.
This commit is contained in:
parent
635084de16
commit
4368f792dc
1 changed files with 25 additions and 0 deletions
|
|
@ -26,3 +26,28 @@ And then in each repository set up individual configuration:
|
|||
git config user.name "FIRST_NAME LAST_NAME"
|
||||
git config user.email "ABBREVIATION@ypsomed.com"
|
||||
```
|
||||
|
||||
## Setup ssh keys
|
||||
|
||||
First, create a dedicated ssh key. Ensure to create seperated keys for different Azure DevOps organizations, for example for development, test or production environments and for sure for different customers.
|
||||
|
||||
```bash
|
||||
export KEY_NAME="key-azdoxwr-ssh" # choose your name here
|
||||
ssh-keygen -t rsa-sha2-512 -f ~/.ssh/$KEY_NAME -N ""
|
||||
```
|
||||
|
||||
Update your local `~/.ssh/config` file. The example below includes a customer example `yps` and the XWare example. The XWare example is special as we have very old Azure DevOps instance which used to have an old naming scheme. Thats why we hav the different host names.
|
||||
|
||||
```text
|
||||
Host ssh.dev.azure.com
|
||||
HostName ssh.dev.azure.com
|
||||
User git
|
||||
IdentityFile ~/.ssh/key-azdoyps-ssh
|
||||
IdentitiesOnly yes
|
||||
|
||||
Host vs-ssh.visualstudio.com
|
||||
HostName vs-ssh.visualstudio.com
|
||||
User git
|
||||
IdentityFile ~/.ssh/key-azdoxwr-ssh
|
||||
IdentitiesOnly yes
|
||||
```
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue