I arrived here because I simply hadn't installed the program that gives the ssh-keygen
command.
This resource lists how to do that for just about any system:
- macOS:
brew install openssh
- Debian:
apt-get install openssh-client
- Ubuntu:
apt-get install openssh-client
- Alpine:
apk add openssh
- Arch Linux:
pacman -S openssh
- Kali Linux:
apt-get install openssh-client
- CentOS:
yum install openssh
- Fedora:
dnf install openssh
- Raspbian:
apt-get install openssh-client
- Docker:
docker run cmd.cat/ssh-keygen ssh-keygen
I was using Ubuntu so I ran apt-get update && apt-get install openssh-client
and then the ssh-keygen
command worked as expected.