Logo

Command Palette

Search for a command to run...

ssh

Allows direct SSH shell into your servers by opening the firewall temporarily for the source IP address and starting a SSH session with one command.

You need to add your public (local) SSH key to your Cloud 66 account before running this command. You also need to have “shell to server” rights on the application to use this command.

If your server deployed behind a gateway, you need to provide the private key in order to pass through the gateway.

$ cx ssh  [--gateway-key <path to gateway key>] --stack <application name> <server name>|<server ip>|<server role> --vv [-i <your private key>]

Options

ArgumentRequired?DefaultDescription
--stack, -s <application name>yesName of the application
--gateway-key <path to gateway key>noPath to the private key for the gateway server (Rails only)
-v, --vv, --vvvnoSet the verbosity level of the output
<server name>either/orThe name of the server to access
<server IP>either/orThe IP address of the server to access
<server role>either/orRole of the server to access (e.g. web)
-inoSpecify a (local) private key to use when connecting via SSH

Examples

$ cx ssh -s myapp lion
$ cx ssh -s myapp 52.65.34.98
$ cx ssh -s myapp web
$ cx ssh --gateway-key ~/.ssh/bastion_key  -s mystack db