wer shell

Open an SSH shell to a running workstation.

Usage

wer shell [-n NAME] [flags] [--] [command...]

Description

The shell command establishes an SSH connection to a workstation and opens an interactive shell session. If no workstation name is specified with --name and only one workstation is running, it connects to that workstation automatically.

You can also run a single command on the remote workstation by passing it after --. Use -t to force TTY allocation for interactive commands, or -T to disable it for piping.

Flags

Flag Description
-n, --name Workstation name to connect to. Auto-detected if only one workstation is running
-t, --tty Force pseudo-terminal allocation (useful for interactive commands)
-T, --no-tty Disable pseudo-terminal allocation (useful for piping)

Examples

# Interactive shell (auto-selects if only one running workstation)
wer shell

# Interactive shell to a specific workstation
wer shell --name my-vm

# Run a command on the remote workstation
wer shell -- ls -la

# Run a command on a specific workstation
wer shell --name my-vm -- cat /etc/os-release

# Force TTY allocation (useful for interactive commands)
wer shell -t -- sudo -i

# Disable TTY (useful for piping)
wer shell -T -- cat /etc/passwd | grep root