Command: ssh
Syntax
Description
Thephala ssh command connects you to a CVM via SSH through the secure gateway tunnel. It handles all the gateway configuration automatically.
Examples
- Connect using phala.toml configuration
- Connect to a specific CVM
- Preview the SSH command without connecting
- Connect with verbose output for debugging
- Forward a local port to the CVM
- Set up a SOCKS proxy
- Execute a remote command
- Connect with a custom SSH key
- Offline mode (skip API lookup)
Pass-through Options
Any arguments after-- are passed directly to the underlying SSH command. Common options include:
| Option | Description |
|---|---|
-i <keyfile> | Use a specific identity file |
-L <local>:<remote> | Local port forwarding |
-R <remote>:<local> | Remote port forwarding |
-D <port> | Dynamic SOCKS proxy |
-v | SSH verbose mode |
The
-o ProxyCommand option is blocked since the CLI manages the proxy configuration automatically.
