This is regarding SSH-Key for Windows version, hope it helps :)
Main Reference: Git and GitHub for Beginners - Crash Course
Author: Michelle Loh
- 14:30 cloning through VS Code - git clone ssh from github
- 17:30 git commit command - git status
- 18:15 git add command - git add.
- 19:15 committing - git commit -m "Title of changes" -m "Some descriptions"
- 20:20 git push command - git push
- 20:30 SSH Keys
-
Generating SSH key
Create a new key OR
a. Key inssh-keygen -t rsa -b 4096 -C "[email protected]"
b. Enter the key name(Let say you enter the key as thekey)Already have a key
a. Key in (Let say you enter the key as thekey)ssh-keygen -t rsa -b 4096 -C "[email protected]"
b. Choose whether to overwrite the key
Enter the passphrase
Enter passphrase (empty for no passphrase): [Type a passphrase] Enter same passphrase again: [Type passphrase again]
(if no passphrase just leave it empty by clicking on the "Enter" key)
-
Check whether the SSH key is generated
ls OR
a. Key inls
b. Notice that the last 2 rows are the generated key
thekey -- private (only you can access) thekey.pub -- public (open to the public to access)
ls -al ~/the-key-name.pub
a. Key inls -al ~/the-key-name.pub
(change the-key-name to the name you generated)
In our case will be:ls -al ~/thekey.pub
-
Copy the public key
-