Skip to main content
Every pod has a dedicated SSH port, allowing you to connect directly to your container with any SSH client.

Connection Details

Find your pod’s SSH details on the SSH tab of the pod detail page. It shows the exact ssh command for your pod, plus ready-made scp and sftp commands. The SSH connection format is:
For example:

Adding SSH Keys

Via CLI

Via Dashboard

  1. Go to your pod’s SSH tab
  2. Paste your public key in the text field
  3. Click Add Key
Paste the contents of your .pub file: one line that starts with ssh-ed25519, ssh-rsa, ecdsa-sha2- or sk-ssh-. A key fingerprint (SHA256:...) is not a key and is rejected, and so is more than one key in a single paste - add them one at a time.

Via API

At Pod Creation

You can also include an SSH key when creating a pod:

Host Key Verification

InstaPods uses Trust On First Use (TOFU) for SSH security:
  • First connection: The host key is automatically accepted and saved to ~/.ssh/known_hosts
  • Subsequent connections: The saved key is verified. If it matches, you connect normally
  • Key mismatch: You’ll see a warning. This shouldn’t happen for a running pod
When you delete a pod, the CLI automatically removes the old host key from your known_hosts file to prevent conflicts when the SSH port is reused.

SSH Port Allocation

Each pod gets a unique SSH port in the range 2200–3200. Ports are assigned automatically at pod creation. To prevent host key conflicts, deleted pods’ ports are not reused for 7 days.

SCP / SFTP

SCP and SFTP use the same host, port and key as SSH. The only difference is the port flag: ssh takes a lowercase -p, while scp and sftp take a capital -P. The SSH tab shows both commands ready to copy.
Don’t copy the -p PORT from the ssh command into scp. To scp, lowercase -p means “preserve file times”, so it fails with stat local "2201": No such file or directory. Leaving the port out fails too: scp connects to the server’s port 22 instead of your pod and gets Permission denied (publickey).
Or use SFTP for interactive file management:
For large or repeated transfers, tar over SSH is faster than copying many small files one by one: