miércoles, 4 de septiembre de 2024

Deploy a new ssh key to GitHub


Generate the ssh key 
ssh-keygen -t ed25519 -C "github"

If your SSH public key file has a different name than the example code, modify the filename to match your current setup. When copying your key, don't add any newlines or whitespace.
$ pbcopy < ~/.ssh/id_ed25519.pub # Copies the contents of the id_ed25519.pub file to your clipboard

Tip: If pbcopy isn't working, you can locate the hidden .ssh folder, open the file in your favorite text editor, and copy it to your clipboard.

In the upper-right corner of any page on GitHub, click your profile photo, then click Settings.

In the "Access" section of the sidebar, click SSH and GPG keys.

Click New SSH key or Add SSH key.

In the "Title" field, add a descriptive label for the new key. For example, if you're using a personal laptop, you might call this key "Personal laptop".

Select the type of key, either authentication or signing. For more information about commit signing, see "About commit signature verification."

In the "Key" field, paste your public key.

Click Add SSH key.

If prompted, confirm access to your account on GitHub. For more information, see "Sudo mode."

Go to the terminal and execute:
git init
git remote add origin https://github.com/alegarciadelrio/sharepoint.git
git branch -M main
git push origin main

No hay comentarios:

Publicar un comentario