@@ -24,7 +24,7 @@ Before we create a new SSH key,
2424let's check if you already have one on your system.
2525Open a terminal and type
2626```
27- $ ls ~/.ssh
27+ ls ~/.ssh
2828```
2929
3030GitHub supports three types of keys.
@@ -45,7 +45,7 @@ proceed to the next section.
4545To create a new SSH key,
4646type the following into a terminal:
4747```
48- $ ssh-keygen -t ed25519 -C "YOUR EMAIL"
48+ ssh-keygen -t ed25519 -C "YOUR EMAIL"
4949```
5050The ` -t ` flag specifies the type of key to create;
5151in this case,
@@ -56,7 +56,7 @@ Follow the prompts and enter a passphrase for the key.
5656
5757Check the contents of your ** .ssh** directory (which will now exist if it didn't before):
5858```
59- $ ls ~/.ssh
59+ ls ~/.ssh
6060id_ed25519 id_ed25519.pub
6161```
6262You now have an SSH key pair (private, public).
@@ -75,7 +75,7 @@ we need to add the public key to GitHub.
7575Start by copying the public key.
7676Print the key to the terminal with ` cat ` :
7777```
78- $ cat ~/.ssh/id_ed25519.pub
78+ cat ~/.ssh/id_ed25519.pub
7979ssh-ed25519 AA4WC3NzqC45ZD81NTR5AQAAIBbFO9USDsVFLRIiBJ9Y6wJil4AFrW5ysRrGNCd5wDvy [email protected] 8080```
8181then select the text and copy it.
@@ -96,7 +96,7 @@ That's it!
9696
9797To check that GitHub has your SSH key, type the following in a terminal:
9898```
99- 99+ 100100```
101101You'll be prompted to enter the passphrase for your key.
102102
0 commit comments