(https://github.com/abu2020/)
https >> git clone https://github.com/USERNAME/REPOSITORY.git
SSH >> git clone [email protected]: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