You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We do support ssh certificates, thats what the privateKeyPath (file) and privateKey (buffer) parameters in connect() are for. Have you tried them and found that they don't work?
Well, I need to add the certificate somewhere, right? I'd need to call connect() with some additional parameter that sends the certifcate (containing the signed pubkey) to the server.
I've consulted my AI, which found that node-ssh and the underlying ssh2 did not support ssh-certificates, too.
I had it implement the necessary changes in ssh2 and node-ssh, and got it working.
Now: If it works without any changes to node-ssh and ssh2 I'd be all the happier.
Activity
steelbrain commentedon Mar 27, 2026
Hi @marcvs!
We do support ssh certificates, thats what the
privateKeyPath(file) andprivateKey(buffer) parameters inconnect()are for. Have you tried them and found that they don't work?marcvs commentedon Mar 30, 2026
Well, I need to add the
certificatesomewhere, right? I'd need to callconnect()with some additional parameter that sends the certifcate (containing the signed pubkey) to the server.I've consulted my AI, which found that
node-sshand the underlyingssh2did not support ssh-certificates, too.I had it implement the necessary changes in
ssh2andnode-ssh, and got it working.Now: If it works without any changes to
node-sshandssh2I'd be all the happier.marcvs commentedon Mar 30, 2026
I've added a PR for this here #483