Request an invite
Docs menu

osmates ssh

Open a shell in a machine with ssh, or run a command there.

Usage
osmates ssh [<options>] <machine> [-- <ssh-arguments> ...]

Runs /usr/bin/ssh with the OSMates configuration alone, so it offers the machine's key and no other. Arguments after -- go to ssh.

The machine must be running. Linux from the library always takes ssh. macOS needs Remote Login, and Windows needs OpenSSH Server, whose install commands the error gives.

The guest's host key is pinned at the first connection. When ssh can't reach the guest directly, as behind a firewall or a VPN, it goes through the guest agent and says so.

Keys, accounts and forwards: https://osmates.com/docs/ssh

Examples

sh
osmates ssh dev
osmates ssh dev -- uname -a
osmates ssh dev --user other

Arguments

<machine>Required

The machine's name or identifier.

--user <user>

The account to log in as. Default: the machine's account.

Another account needs its name each time: --user other, or ssh other@dev through the Include of osmates ssh-config install. On Windows, the key opens administrators' accounts only.

--renew-host-key

Pin the host keys the guest reports now, after they changed in the guest.

Until then, a different host key is refused.

<ssh-arguments>Repeatable

Arguments for ssh, after --.

Report a problem with this page