/
Patient0
/
Docs
Обзор
Документация
Войти
/
Patient0
/
Docs
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
master
GeneratingSSH
24 строки
1 KB
Patient0
create GeneratingSSH
15 дек 2025, 16:29
15 дек 2025, 16:29
b2c3b44
Код
Авторство
О чём код?
# Generating a new SSH key and adding it to the ssh-agent * Generating a new SSH key 1. Open Terminal. 2. aste the text below, replacing the email used in the example with your GitHub email address. ssh-keygen -t ed25519 -C "your_email@example.com" Note If you are using a legacy system that doesn't support the Ed25519 algorithm, use: ssh-keygen -t rsa -b 4096 -C "your_email@example.com" This creates a new SSH key, using the provided email as a label. > Generating public/private ALGORITHM key pair. When you're prompted to "Enter a file in which to save the key", you can press Enter to accept the default file location. Please note that if you created SSH keys previously, ssh-keygen may ask you to rewrite another key, in which case we recommend creating a custom-named SSH key. To do so, type the default file location and replace id_ALGORITHM with your custom key name. > Enter a file in which to save the key (/Users/YOU/.ssh/id_ALGORITHM): [Press enter] 3. At the prompt, type a secure passphrase. For more information, see Working with SSH key passphrases. > Enter passphrase (empty for no passphrase): [Type a passphrase] > Enter same passphrase again: [Type passphrase again] https://docs.github.com/en/authentication/connecting-to-github-with-ssh/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent?platform=mac#generating-a-new-ssh-key