Skip to content
pols.so docs
Esc
↑↓navigate↵open⌘Jpreview
On this page

pols ssh

Open an SSH session in a sandbox through the SSH gateway

Run ssh to the sandbox through the pols SSH gateway (ssh <sandbox>@ssh.pols.so), as the sandbox user, or with --user as a user added with pols users add (ssh <user>@<sandbox>@ssh.pols.so). The API names the gateway’s port: 22 on pols.so, which answers on 2222 as well. SANDBOX is its ID, name, host label or a host it is served on, like braveotterk3f9-desktop.on.pols.so; pols checks it with the API first, also for --print. Register your public key first with pols ssh-key add. Arguments after -- are the remote command. Use --print for the plain ssh command, to add your own ssh options, scp or sftp.

Usage

pols ssh SANDBOX [-- COMMAND...] [flags]

Examples

pols ssh-key add ~/.ssh/id_ed25519.pub
pols ssh web
pols ssh web --user alice
pols ssh web -- uname -a
pols ssh web --print
pols ssh braveotterk3f9-desktop.on.pols.so

Flags

-h, --help              help for ssh
    --print             print the ssh command instead of running it
-u, --user pols users   log in as this sandbox user (see pols users; default: user)

The global flags work with this command too.