Getting path to the SSH Key

I’m using a node-ssh script to connect via nodejs to my server and then deploy a website.

I need to provide a path to the SSH key.

There were no issues with adding environment variables and use it inside .js script, but I can’t find a directory to SSH key inside CircleCI.

Just suggesting, if you add ssh key in the configuration, did you also add the - add_ssh_keys in the config.yml? Supposed to be needing both and then they are supposed to be in ~/.ssh (Note: personally I I have another problem with that not working in one of my projects. so can’t vouch for that )

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.