db2locssh - Run commands on a remote host as user root
The db2locssh command is an independent tool that is used run commands on a remote host as user root.
Authorization
RootRequired connection
NoneCommand syntax
Command parameters
- generate_keys
- Generates a pair of private and public keys on the host that the db2locssh command is executed on. The default value of keysize is 2048. If you want to specify a key size and exponent, you must use the -keysize and -exponent options.
- version
- Returns the current db2locssh version used on the local host.
- reset_config
- Reset the db2locssh configurations.
- display_config
- Display the current db2locssh configurations.
- set_gskit_path
- Specifies the file path to IBM Global Security Kit (GSKit) packages.
- discover_gskit
- Attempts to locate IBM Global Security Kit (GSKit) packages on an installed Db2® instance.
- set_time_delta
- Configure the amount of time allowed to elapse between issuing a command on the local host and receiving the command on the remote host. The unit of the provided value must be seconds. Default is 0 which means this check is disabled.
- set_debug_level
- 1
- Only log errors in the system log.
- 2
- Log errors and debug information in the system log.
- set_db2sshid
- Set the ID that the current host uses to establish an SSH connection to other hosts in the cluster.
- set_fips_mode
- off
- Disable the Federal Information Processing Standard (FIPS) off. This is the default setting.
- on
- Enable FIPS.
- root@<host>
- Run
command
on<host>
as user root.