Prerequisites
- Phala CLI (latest version)
- CVM deployed with Development OS
Step 1: Configure SSH Keys
Start by adding your SSH keys in Account Settings > SSH Keys on the Phala Cloud dashboard. You can add keys manually or sync them from GitHub. All saved keys are automatically added to every new CVM you deploy. When creating a CVM, the SSH Authorization section lets you add one more public key just for that CVM. It is added alongside your account keys. Your keys are copied into the CVM when it starts for the first time. Adding a key to your account later does not reach a CVM that is already running. To add a key to a running CVM, use Code Update and set theDSTACK_ROOT_PUBLIC_KEY environment variable.
Why can’t I sign in with a password?
Since dstack 0.5.6, the SSH server rejects password logins. Only keys work.DSTACK_ROOT_PASSWORD still sets the Linux root password inside the CVM, but SSH will turn it down no matter what you set it to. Add a public key instead.
Step 2: Connect
Useful Options
Thephala ssh command supports several options:
Manual SSH Configuration
Manual SSH Configuration
If you prefer manual configuration or need to customize your setup, use This outputs a working SSH command you can adapt. The underlying mechanism uses OpenSSL to tunnel SSH through TLS:Replace
phala ssh --dry-run to generate the SSH config:<app-id> with your application ID and <cluster> with your cluster (e.g., dstack-pha-prod7).macOS users: If you encounter connection timeouts, you may have LibreSSL instead of OpenSSL. Install OpenSSL via Homebrew and use the full path: /opt/homebrew/bin/openssl.Windows users: Install OpenSSL via Chocolatey (choco install openssl) and use the full path in ProxyCommand. Alternatively, use WSL where the Linux instructions work directly.What You Can Do
Once connected, you have full access to debug and manage your CVM:Troubleshooting
For more detailed troubleshooting, see Networking Troubleshooting.

