Загрузка...

Adding a new SSH key to your GitHub account

Get Git support Telegram https://t.me/LinuxGun

Adding a new SSH key to your GitHub account

You can access and write data in repositories on GitHub using SSH (Secure Shell Protocol). When you connect via SSH, you authenticate using a private key file on your local machine. For more information, see About SSH.

You can also use SSH to sign commits and tags. For more information about commit signing, see About commit signature verification.

https://youtu.be/ErGLfkUoEkc

After you generate an SSH key pair, you must add the public key to GitHub.com to enable SSH access for your account.

apt install git
git config --global user.name "name"
git config --global user.email mail@domain.com
ssh-keygen -t rsa -b 4096 -C "email@gmail.com"
eval "$(ssh-agent -s)"
ssh-add ~/.ssh/id_rsa
cat /root/.ssh/id_rsa.pub
# Add SSH Key the GitHub & GitLab
https://github.com/settings/keys
ssh -T git@github.com

Adding a new SSH key to your account
You can add an SSH key and use it for authentication, or commit signing, or both. If you want to use the same SSH key for both authentication and signing, you need to upload it twice.

After adding a new SSH authentication key to your account on GitHub.com, you can reconfigure any local repositories to use SSH. For more information, see Managing remote repositories.

#Git #GitHub #GitHubActions #githubcopilot #GitSupport

Видео Adding a new SSH key to your GitHub account канала Anything Linux
Яндекс.Метрика
Все заметки Новая заметка Страницу в заметки
Страницу в закладки Мои закладки
На информационно-развлекательном портале SALDA.WS применяются cookie-файлы. Нажимая кнопку Принять, вы подтверждаете свое согласие на их использование.
О CookiesНапомнить позжеПринять