Skip to content

Instantly share code, notes, and snippets.

@ktolutom
Last active September 22, 2023 19:36
Show Gist options
  • Select an option

  • Save ktolutom/81c5349c642f96eb99c0bf04f5672386 to your computer and use it in GitHub Desktop.

Select an option

Save ktolutom/81c5349c642f96eb99c0bf04f5672386 to your computer and use it in GitHub Desktop.
ssh for GitHub #git
generate private and public key
$ cd ~/.ssh
$ ssh-keygen -o -t rsa -C "username@domain.com"
print the public key
$ ls
$ cat id_rsa.pub
copy the public key to Github > Settings > SSH and GPK keys > Add new SSH
can now clone the repo
git clone git@domain:KTOLUTOM/project.git
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment