

Administer Operator Categories and Custom Operator Groups › Configuring Operator Categories › Configure Command Execution: Default SSH Properties
Configure Command Execution: Default SSH Properties
When you configure the default SSH properties, you configure the following items:
- The terminal type specifications
- The authentication details for logging on to a remote host
- (Optional) Whether to switch users after login
Follow these steps:
- Click the Configuration tab, select Domain, and click Lock.
- Click the Modules tab, right-click Command Execution, and select Edit.
- Select the Default SSH Properties tab.
- Select the default pseudo terminal type to request on the SSH connection.
Note: VT100 typically works with Linux hosts; VT400 typically works with Windows hosts.
- Select the default port with which to connect to the remote host.
Note: Port 22 is the system TCP/UDP port for the Secure Shell (SSH) Protocol.
- Enter the default for the user name with which to log in to the remote host.
- Specify the private key defaults:
- Indicate whether to use a private key to log in.
Note: The alternative is to use the password information.
- Enter the default password with which to log in to the remote host.
- Click Browse (...) and retrieve the private key content (that is, the content of a default private key with which to log in to the remote host).
- Enter the path to a default private key with which to log in to the remote host.
- Enter the passphrase with which to unlock the content of the default private key.
Note: The passphrase is required if the default private key was created with a passphrase.
- Specify the defaults for running the script or specified commands as a different user.
- Indicate whether to run the script or the specified commands as a different user.
- Enter the operating system-specific command to switch the user on the remote host. The command "su -root" switches users to the root user. For example:
su - <username>
sudo su - <username>
- Enter a regular expression for the default text prompt if the remote host requires a password to switch users.
The text prompt is typically "Password: " or "password: ". The regular expression, ".*assword: " matches any input (including new lines) and an uppercase "P" or lowercase "p" followed by “assword: “.
- Enter the default password to enter at the text prompt if the remote host requires a password to switch users.
- Enter a regular expression for the command prompt that indicates that the remote host is ready for commands as the switched user.
Typical command prompts are # (hash), > (greater than), and ? (question mark). The entry .*[$>?:#] matches any input (including new lines) that is followed by a #, >, ?, $ (dollar symbol), or : (colon). Consider the following examples:
.*[$]
.*[$>?:#]
Note: When you use a dollar symbol in a regular expression, enclose it in square brackets. A dollar symbol without brackets has a special meaning in regular expressions.
- Click Save and Close.
- Click Save.
- Select Domain and click Unlock.
More information:
About Command Execution
Override Settings Inherited by a Category of Operators
Category Configuration and Operator Inheritance
Configuring Operator Categories
Copyright © 2014 CA.
All rights reserved.
 
|
|