Skip to content

Latest commit

 

History

History
46 lines (30 loc) · 700 Bytes

git_using_ssh.md

File metadata and controls

46 lines (30 loc) · 700 Bytes
  1. generate ssh key:
ssh-keygen -t ed25519 -C "[email protected]"
  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

After this steps you can clone your repositories as

git clone [email protected]:username/repo.git

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

git remote set-url origin [email protected]:username/your-repository.git