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
I need my node.js app to connect to a target machine using a key signed by a certificate authority.
When connecting from a terminal, the following 3 commands work: eval "$(ssh-agent -s)" ssh-add ssh -i <path to signed key> [email protected]
In order to do it from my node.js app, I first start the ssh-agent and add the identity: eval "$(ssh-agent -s)" ssh-add
and launch the following node.js app with the environment variables of the ssh agent: SSH_AUTH_SOCK=<socket> SSH_AGENT_PID=<pid> node app.js
privateKey value does not contain a (valid) private key
I struggled with the code, tried it with few configurations and couldn't find the right way to make it work.
Any idea how I should start this connection?
The text was updated successfully, but these errors were encountered:
noamshalev
changed the title
Connect with a key signed by certificate authority
How to connect with a key signed by a certificate authority
Dec 6, 2019
noamshalev
changed the title
How to connect with a key signed by a certificate authority
How to connect with a key signed by a certificate authority?
Dec 6, 2019
I need my node.js app to connect to a target machine using a key signed by a certificate authority.
When connecting from a terminal, the following 3 commands work:
eval "$(ssh-agent -s)"
ssh-add
ssh -i <path to signed key> [email protected]
In order to do it from my node.js app, I first start the ssh-agent and add the identity:
eval "$(ssh-agent -s)"
ssh-add
and launch the following node.js app with the environment variables of the ssh agent:
SSH_AUTH_SOCK=<socket> SSH_AGENT_PID=<pid> node app.js
This is the code I'm using to connect:
When trying to connect I get the error:
I struggled with the code, tried it with few configurations and couldn't find the right way to make it work.
Any idea how I should start this connection?
The text was updated successfully, but these errors were encountered: