@@ -9,11 +9,11 @@ Since a few years, github has disabled access via password only for security rea
99so you need to cre
1010This aims to be as short and concise as possible, for more extenive information, [ see the github security documentation] [ github_security ] .
1111
12- ## Setup SSH Access
12+ ### Setup SSH Access
1313
1414An easy way to access github securely is to use SSH.
1515
16- ### Create SSH Key
16+ #### Create SSH Key
1717
1818For this, you first need to create a SSH key pair on your computer using the email address of your github account.
1919
@@ -35,7 +35,7 @@ while the other file is your private key and **should never be shared with anyon
3535!!! quote "Keep it secret, keep it safe!"
3636 _ Gandalf_ , about private SSH keys (probably).
3737
38- ### Add SSH Key to Github
38+ #### Add SSH Key to Github
3939
4040After creating the key, you need to add it to your github account.
4141For this you need to log into your github account, click on your avatar and go to ` Settings ` &rarr ; ` SSH and GPG keys ` .
@@ -44,7 +44,7 @@ Then click on [++"New SSH key"++{.green-gui-button}][github_new_ssh_key]{target=
4444Give it a resonable name in the ` Title ` field and leave the ` Key type ` as ` Authentication key ` .
4545Then click on ` Add SSH key ` and you are done.
4646
47- ### Configure SSH to use the key
47+ #### Configure SSH to use the key
4848
4949Next, you need to tell your local SSH client to use the key you created to connect to github.
5050For that, add the following lines to your ` ~/.ssh/config ` file:
@@ -62,7 +62,7 @@ or the path to your key you chose earlier.
6262 It is important that the ` User ` is ` git ` and ** not your git-username** !
6363 Github will identify you automatically based on the email address you used to create the SSH key.
6464
65- ### Test Access
65+ #### Test Access
6666
6767Now you can test that everything works by running the following command:
6868
@@ -76,7 +76,7 @@ which should then display
7676Hi <Username>! You've successfully authenticated, but GitHub does not provide shell access.
7777```
7878
79- ### Clone Repository
79+ #### Clone Repository
8080
8181When you clone a new repository, always use the SSH url
8282
@@ -100,7 +100,7 @@ which you can find from the ++"Clone"++{.green-gui-button} button of the reposit
100100 git remote -v
101101 ```
102102
103- ## Setup HTTPS Access
103+ ### Setup HTTPS Access
104104
105105You can setup https access by creating and using a personal access token or a password manager.
106106
0 commit comments