CLI
SSH

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

ArgumentRequiredDescription
<server_name>yesName of the server to connect to

The server name must match the name shown in:

redu server list

Prerequisites

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-01

Output

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

CodeMeaning
0SSH session exited normally
1Connection error