ssh

The SSH commands in Site Wrangler are for managing SSH keys, not the SSH daemon itself.

list

sw ssh list
sw ssh list example_username

List all enabled SSH keys with access to the system; however, if a user is given, disabled keys are shown as well.

The SSH commands are geared towards managing SSH keys that have access to the system. Site Wrangler does not manage the server’s SSH daemon.

import

sw ssh import
sw ssh import example_username

Adds an SSH public key to a server user to allow remote access to that server user. It will ask for the key, include everything from “ssh-rsa” through “user@Hostname.local”. It will then ask which user to add it to. You can add the same key to multiple server users and you can add keys from multiple devices to the same server user. It will make sure your key is not already authorized before adding it to the appropriate configuration file.

disable

sw ssh disable
sw ssh disable example_username
sw ssh disable example_username example_key

Disable an SSH key.

enable

sw ssh enable
sw ssh enable example_username
sw ssh enable example_username example_key

Enable a disabled SSH key.

remove

sw ssh remove
sw ssh delete
sw ssh remove example_username
sw ssh remove example_username example_key

Remove an SSH key.