I want to make an aws lambda function which connects to a server via ssh and private key authentication.
I am using the simple-ssh node module which uses the ssh2 module as base. I tried using OpenSSH and RSA format for generating a key pair but none of them worked.
The error message which is shown is always
Error: Cannot parse privateKey: Unsupported key format
Does anyone know the valid parameters for a ssh-keygen command which is compatible to the ssh2 node module?
Thanks in advance :)