system/notes/ssh.md

18 lines
240 B
Markdown
Raw Normal View History

2022-10-15 23:51:15 +03:00
# Get key for machine
```sh
ssh-keyscan <host>
```
If you want to get key for the current machine you can use the following code
```sh
ssh-keyscan localhost
```
2023-03-17 12:17:21 +03:00
# Generate new ssh key
```
ssh-keygen -t ed25519 -C "bob@example.com"
```