Execute Commands
Run a command inside a pod without interactive SSH:-- separator is required to prevent flag parsing conflicts.
Examples
SSH Keys
Add an SSH Key
Push your local SSH public key to a pod:~/.ssh/authorized_keys inside the pod.
SSH Connection
Once your key is added, connect via SSH:SSH Security
InstaPods uses Trust On First Use (TOFU) for SSH host key verification:- On first connection, the host key is automatically accepted and saved
- On subsequent connections, the key is verified against the saved copy
- If the key changes (which shouldn’t happen for a running pod), you’ll get a warning
When you delete a pod and create a new one, the CLI automatically cleans up the old host key from your
~/.ssh/known_hosts file to prevent conflicts.