Skip to content

mw cloudvps compute ssh

Releasev0.35.0 · cfeceb67

mw cloudvps compute ssh <instance-id> [flags] -- [command [args...]]

Connect using the instance’s eqiad1 Cloud VPS DNS name and your local SSH configuration. Use –jump for a bastion if it is not already configured in ~/.ssh/config. Remote command arguments are passed literally; use sh -c explicitly for shell expressions. With –script, upload a local Bash script to a private temporary file, run it with the arguments after –, and remove it afterwards. Use –tty for interactive prompts. –sudo runs the script through passwordless sudo.

--jump <string>
SSH jump host, e.g. primary.bastion.wmcloud.org
--project <string>
Project name (otherwise uses cloud_vps.default_project or the selected profile)
--script <string>
Upload and execute a local Bash script; arguments after -- are passed to it
--sudo
Run --script as root using sudo -n (requires passwordless sudo)
-t, --tty
Allocate a terminal for a remote command (automatic for interactive sessions)
--user <string>
SSH username (defaults to local SSH configuration)
--help
Help for this command
--no-interaction
Do not ask any interactive questions
--profile <string>
Saved Cloud VPS credential profile (login defaults to the project name)
-v, --verbose <count>
Increase output verbosity. Example: --verbose=2 or -vv
Terminal window
mw cloudvps compute ssh <instance-id> --project mwcli --user <shell-username> --jump primary.bastion.wmcloud.org
mw cloudvps compute ssh <instance-id> --project mwcli -- uname -a
mw cloudvps compute ssh <instance-id> --project mwcli --script tools/ci/runner.sh --sudo --tty -- setup
Report an issue with this page

Report a documentation issue

The report includes this page’s link, section and documentation version.

Review and submit on Phabricator, or run the command using your saved CLI profile. The command asks before creating the task.