SSH
The redu ssh command lets you connect to a server by its name using SSH.
No manual SSH configuration is required — authentication and key handling are managed automatically by the CLI.
Usage
redu ssh <server_name>Description
This command connects you directly to a server using SSH.
You only need to provide the server name. The CLI takes care of resolving the connection details and opening an interactive SSH session.
Arguments
| Argument | Required | Description |
|---|---|---|
<server_name> | yes | Name of the server to connect to |
The server name must match the name shown in:
redu server listPrerequisites
Authentication
You must be authenticated before using this command:
redu auth -u <username>During authentication, the CLI automatically:
- generates an SSH keypair (if needed)
- uploads the public key to your account
You do not need to create or upload SSH keys manually.
Examples
Connect to a server named web-01:
redu ssh web-01Output
On success, the CLI opens an interactive SSH session.
If the connection cannot be established, a clear error message is shown.
Notes
- SSH access uses the default system SSH client.
- The SSH user is currently fixed to
ubuntu. - Server name matching is exact.
Exit codes
| Code | Meaning |
|---|---|
0 | SSH session exited normally |
1 | Connection error |