ssh-broker-ctl — SSH Tectia Connection Broker control utility
ssh-broker-ctl (ssh-broker-ctl.exe on Windows) is a control utility for Connection Broker (ssh-broker-g3). It can be used, for example, to view the status of Connection Broker, to reconfigure or stop the Connection Broker, or to load private keys to memory.
The following general options are available:
-a, --broker-address ADDRESSDefines an address to a separate SSH Tectia Connection Broker process to which a connection is made.
The same effect can be achieved by defining a Connection Broker address with
environment variable SSH_SECSH_BROKER.
-D, --debug LEVELDefines the debug level.
-e, --charset=CSDefines the character set to be used in the output.
The supported character sets are utf8, iso-8895-1,
latin1, iso-8859-15, latin9, and
ascii.
-q, --quiet Defines that little or no output is to be displayed, depending on the command.
-s, --shortDefines that a shorter, more machine readable, output format is to be used.
--time-format=FMTDefines the time format to be used in the output. The default depends on the system locale settings.
-v, --verbose Defines that more information, if available, is to be output.
-V, --versionPrints the version string.
-w, --wide Defines that the output will not not be truncated, even if it means long lines.
-h, --helpDisplays a context-sensitive help text on command-line options.
Help is available also on specific commands. For example, to get help on the
status command, run:
ssh-broker-ctl status --help
ssh-broker-ctl accepts the following commands:
add-key
Adds a new private key.
close-channel channel-id ...
Closes the defined channel. You can also enter multiple channel-IDs to close several channels.
close-connection connection-id ...
Closes the defined connection. You can also enter multiple connection-IDs to close several connections.
connection-status [--show-channels] [--write-hostkey=FILE] connection-ID
Displays a detailed connection status for the connection ID (the numeric identifier shown by command list-connections).
Options:
--show-channelsDisplays channel information.
--write-hostkey=FILEWrites the host key (public-key or x509 certificate) to the defined file.
debug [--append] [--clear] [--log-file=FILE] [--monitor] []debug-level
Sets the Connection Broker debug level to the defined level. If no debug-level
parameter is given here, the current debug level is not changed.
Options:
--appendOpens the log file in append mode.
--clearClears the debug settings. Closes any open log files and sets the debug level to 0.
--log-file=FILEWrites all debug messages to the defined file.
--monitorMonitors the Connection Broker debug output in stderr.
key-passphrase [--all] [--clear] [--passphrase-file= FILE] [--passphrase-string= passphrase] key-id | key-hash
Prompts the user private key passphrase or PIN code.
Options:
--allPrompts passphrase for all known keys that require it.
--clearClears cached private key data and possible cached authentication code for the key.
--passphrase-file=FILEInstead of prompting, read the passphrase from the defined file.
--passphrase-string=passphraseInstead of prompting for passphrase, use the passphrase provided on command-line.
list-channels [-s, --short]
Displays a list of the currently open connection channels, together with channel type and traffic statistics. Displays also the channel ID which is used by other commands to identify the connection.
Options:
-s, --shortDisplays a one-line description per channel.
list-connections [-s, --short] [--show-channels]
Displays a list of the currently open connections, together with connection parameters and traffic statistics. Displays also the connection ID which is used by other commands to identify the connection.
Options:
-s, --shortDisplays a one-line description per connection.
--show-channelDisplays a short description for each open channel.
list-keys [-s, --short]
Displays a list of the user private keys, together with the basic key attributes such as the key type, size, and possible file name or key provider information. Outputs also the fingerprint and the identifier of the key. The identifier is used by other Connection Broker commands to identify the private key.
Options:
-s, --shortDisplays a one-line description per user private key.
reload
Rereads the Connection Broker configuration file.
stop
Stops the Connection Broker.
status [-s, --short] [-q, --quiet] [--pid]
Without parameters, displays short statistics and a configuration summary for the currently running Connection Broker process.
Options:
-s, --shortDisplays a one-line output with the Connection Broker PID.
-qOutputs nothing; the exit status is 0 if the Connection Broker connection succeeded, and 1 if the connection failed.
--pidDisplays the PID, only.
view-key [-s, --short] [-v, --verbose] [--clear] [--write-key FILE] key-id
Displays information on the defined key. If the key has certificates, a short summary of them is also shown.
Options:
--clearClears cached private key data and cached authentication code for the key.
-s, --shortDisplays a one-line description per key.
-v, --verboseDisplays more detailed information on the key or certificate.
--write-key=FILEWrites the public-key or the certificate to the defined file.