How to generate SSH keys using node-ssh
As of version v13.1.0
, node-ssh
does not support generating SSH keys by its own.
However, you can use the ssh2
library which is already used internally by node-ssh
.
See our post How to generate SSH public & private key in NodeJS using ssh2 library for more details.