Skip to content

Latest commit

 

History

History
46 lines (30 loc) · 700 Bytes

File metadata and controls

46 lines (30 loc) · 700 Bytes
  1. generate ssh key:
ssh-keygen -t ed25519 -C "your_email@example.com"
  1. add generated key to ssh client
ssh-add ~/.ssh/id_ed25519

NOTE if you got error:

Could not open a connection to your authentication agent.

run next command:

eval "$(ssh-agent -s)"

and will try again

  1. upload public key to github

  2. authenticate to github via ssh

ssh -T git@github.com

After this steps you can clone your repositories as

git clone git@github.com:username/repo.git

NOTE for repositories, that was downloaded earlier, you need update url:

git remote set-url origin git@github.com:username/your-repository.git