Update github-ssh-auth.md

This commit is contained in:
Руслан 2023-10-09 01:48:48 +06:00 committed by GitHub
parent 866c950a41
commit 0842dfebf1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -6,13 +6,13 @@ tags: [linux, git, ssh]
--- ---
## Генерация ключа ## Генерация ключа
```shell ```bash
ssh-keygen -t ed25519 -C "<your>@<ema.il>" ssh-keygen -t ed25519 -C "<your>@<ema.il>"
``` ```
## Вывод публичного ключа ## Вывод публичного ключа
```shell ```bash
cat ~/.ssh/id_ed25519.pub cat ~/.ssh/id_ed25519.pub
``` ```
@ -22,6 +22,6 @@ cat ~/.ssh/id_ed25519.pub
## Аутентификация в GitHub ## Аутентификация в GitHub
```shell ```bash
git remote set-url origin git@github.com:<username>/<reponame>.git git remote set-url origin git@github.com:<username>/<reponame>.git
``` ```