UPTERM(1) Upterm Manual UPTERM(1)

upterm-host - Host a terminal session

upterm host [flags]

Host a terminal session over a reverse SSH tunnel to the Upterm server with the IO of the host and the client attaching to the IO of a command. By default, the command authenticates against the Upterm server using the private key files located at ~/.ssh/id_dsa, ~/.ssh/id_ecdsa, ~/.ssh/id_ed25519, and ~/.ssh/id_rsa. If no private key file is found, the command reads private keys from SSH Agent. If no private key is found from files or SSH Agent, the command falls back to generate one on the fly. To permit authorized clients to join, client public keys can be specified with --authorized-key.

-a, --authorized-key="" an authorized_keys file that lists public keys that are permitted to connect.

-f, --force-command="" force execution of a command and attach its input/output to client's.

--github-user=[] this GitHub user public keys are permitted to connect.

--gitlab-user=[] this GitLab user public keys are permitted to connect.

-h, --help[=false] help for host

--known-hosts="/build/.ssh/known_hosts" a file contains the known keys for remote hosts (required).

-i, --private-key=[] private key file for public key authentication against the upterm server

-r, --read-only[=false] host a read-only session. Clients won't be able to interact.

--server="ssh://uptermd.upterm.dev:22" upterm server address (required), supported protocols are ssh, ws, or wss.


# Host a terminal session that runs $SHELL with
# client's input/output attaching to the host's
upterm host
# Host a terminal session that only allows specified public key(s) to connect
upterm host --authorized-key PATH_TO_PUBLIC_KEY
# Host a session with a custom command.
upterm host -- docker run --rm -ti ubuntu bash
# Host a session that runs 'tmux new -t pair-programming' and
# force clients to join with 'tmux attach -t pair-programming'.
# This is similar to tmate.
upterm host --force-command 'tmux attach -t pair-programming' -- tmux new -t pair-programming
# Use a different Uptermd server and host a session via WebSocket
upterm host --server wss://YOUR_UPTERMD_SERVER -- YOUR_COMMAND

upterm(1)

12-Aug-2022 Auto generated by spf13/cobra

Aug 2022 Upterm 0.9.0