App SSH Keys
In some cases, it may be necessary to connect to an external service directly from your app through a secure SSH connection. To make this possible, each app is given its own set of SSH Keys. These are handy for things like loading private git submodules or setting up an backup process using SCP. This doc walks through what you need to know about using an app's SSH keys to access external services. After reading it, you should be familiar with:
- Where to find your app’s Public SSH Key
- SSH connections from your app
App Public SSH Keys
Every app on Pagoda Box has its own set of SSH keys. SSH keys allow for secure connections between servers without ever having to send a password over the network. You can find your app’s public SSH key in your dashboard under Dev Config > Public SSH Key.
For obvious security reasons, Pagoda Box does not make private SSH keys available. All outbound SSH connections from your app will use your app’s SSH key pair.
Granting Your App SSH Access to External Services
To grant your app access to external services through an SSH connection, simply add your app’s Public SSH Key to the external service’s list of authorized keys. How and where you add the key completely depends on the service. For example, on Github, you would add the Public SSH Key to your user’s list of SSH keys. On a self-managed remote server, you would add the Public SSH Key to the server’s list of authorized keys.
If you have any questions, suggestions, or corrections, let us know.