Deepnote research: our notes on building agents
Get started

SSH key

SSH key integration is the recommended way to store SSH keys in Deepnote. When you connect the integration to a project, Deepnote will add your private key as environment variable so you can use it to connect to remote machines, or create tunnels to service within cloud services not accessible on public internet.

This integration is useful if you already have a private key you want to use to connect to a private network, and you are not able to add the public key of your Deepnote workspace to the remote resource.

spaces%2FtfH69m1V6bYYvquUay8O%2Fuploads%2Ftx9JBkYu6gwXGSzSeJpH%2FScreen%20Shot%202022-03-30%20at%203.45.17%20PM.png

Copy the private key, commonly stored as a .pem file, into the text box and give the integration a descriptive name, such as AWS Redshift Tunnel key. After creating the integration, connect it to your project. The example below shows how to use the key with ssh-agent.

eval "$(ssh-agent)" > /dev/null && \
source <(/compute-helpers/code/print-integration-env-vars.py) && \
echo "$TEST_SSH_KEY" | ssh-add - > /dev/null && \
ssh <user>@<host>