Files
agt-practice/ssh-keygen.md

26 lines
801 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# agt-practice
Расположение публичного ключа после генерации по умолчанию в windows будет находиться в
```bash
c:\users\<пользователь>\.ssh\ed25519.pub
```
Генерация SSH ключа с именем по умолчанию
```bash
ssh-keygen -t ed25519 -C "comment"
```
Генерация ключа с пользовательским названием ключа
```bash
ssh-keygen -f <absolute_filepath> -t ed25519 -C "comment"
```
Расположение файла с авторизованными ключами SSH на сервере.
```bash
~/.ssh/authorized_keys
```
Если данного файла нет, необходимо его создать
```bash
touch ~/.ssh/authorized_keys
```