Ssh
Ssh to a remote machine
Usage: clan ssh
Positional arguments
- machine:
<MACHINE>
Machine to ssh into (uses clan.core.networking.targetHost from configuration).
Options
- -j, --json: Deployment information as a JSON string or path to a JSON file (generated by starting the clan installer).
- -P, --png: Deployment information as a QR code image file (generated by starting the clan installer).
- --host-key-check: (Default:
tofu
) Host key (.ssh/known_hosts) check mode. - --ssh-option:
<('name', 'value')>
SSH option to set (can be specified multiple times) - -c, --remote-command:
<COMMAND>
Command to execute on the remote host, needs to be the LAST argument as it takes all remaining arguments. - --debug: Enable debug logging
- --option:
<('name', 'value')>
Nix option to set - --flake:
<PATH>
path to the flake where the clan resides in, can be a remote flake or local, can be set through the [CLAN_DIR] environment variable
This subcommand allows seamless ssh access to the nixos-image builders or a machine of your clan.
Examples
$ clan ssh berlin
Will ssh in to the machine called berlin
, using the
clan.core.networking.targetHost
specified in its configuration
$ clan ssh --json [JSON] --host-key-check none
Will ssh in to the machine based on the deployment information contained in the json string. [JSON] can either be a json formatted string itself, or point towards a file containing the deployment information
For more detailed information, visit: deploy