(https://github.com/abu2020/)
https >> git clone https://github.com/USERNAME/REPOSITORY.git
SSH >> git clone git@github.com:USERNAME/REPOSITORY.git
ssh-keygen
- skip all questions
- now you have ssh key pair in ~/.ssh/
- ( id_rsa ) > (private key)
- ( id_rsa.pub ) > (public key)
- note: now you can send your public key (id_rsa.pub) anywhere you wanna have ssh access.
go to:
- setting
- SSH and GPG keys
- new ssh key
- enter a title
- copy the content of your id-rsa.pub into the Key field
- submit add key
- Done