> For the complete documentation index, see [llms.txt](https://notes.tatusl.dev/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://notes.tatusl.dev/infosec/ssh.md).

# SSH

## Create keypair and write private key to STDOUT

```bash
mkfifo key && ((cat key ; rm key)&) && (echo y | ssh-keygen -N '' -q -f key -t ed25519 -b 4096 > /dev/null
```

Source: <https://gist.github.com/kraftb/9918106?permalink\\_comment\\_id=2733298#gistcomment-2733298>
