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.
The
db2ssh is installed in the /var/db2/db2ssh directory.
It consists of three executable:db2locssh, which is invoked on the local hostdb2remssh, which thedb2locsshprogram invokes on the remote host, starting version 12.1.3.0,db2remsshis located at /opt/ibmdb2scp, which uses both thedb2locsshanddb2remsshfiles
Note: Support for the
sftp protocol with db2scp is added in Db2
version 12.1.3.0. If the file /etc/ssh/disable_scp exists,
db2scp will use the sftp protocol for file transfer. The
scp command line utility is required for db2scp, regardless of
which file transfer protocol is used.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
commandon<host>as user root.
