This command sets and displays the SSH and SFTP status of the CMM.
If command syntax is not correctly entered, or if a command fails to run, an error message is returned. See Common errors for a list of error messages that apply to all commands or sshcfg command errors for a list of error messages that are specific to the sshcfg command.
Function | What it does | Command | Target (see paths in Command targets) |
---|---|---|---|
Display SSH status | Displays the SSH status of the CMM.
Returned values are:
Note: For scripting purposes, the "-v1 off" state is always displayed.
|
sshcfg | Primary CMM:
|
Display RSA host key information | Displays RSA host key information for the CMM. | sshcfg -hk rsa | Primary CMM:
|
Display DSA host key information | Displays DSA host key information for the CMM. | sshcfg -hk dsa | Primary CMM:
|
Generate host key | Generates a host key for the CMM. | sshcfg -hk gen This
command can only be run by users who have one or more of the following
command authorities:
|
Primary CMM:
|
Set state of CLI SSH server | Sets the state of the CLI SSH server for the CMM. | sshcfg
-cstatus state where state is enabled or disabled . This
command can only be run by users who have one or more of the following
command authorities:
|
Primary CMM:
|
Set state of CLI SFTP server | Sets the state of the CLI secure FTP (SFTP) server for the CMM. | sshcfg
-sftpstatus state where state is enabled or disabled . This
command can only be run by users who have one or more of the following
command authorities:
|
Primary CMM:
|
Example:
sshcfg
The following example shows the information that is returned from this command:
system:mm[1]> sshcfg -v1 off -cstatus enabled -sftpstatus enabled CLI SSH port 22 ssh-dss 1024 bit fingerprint: ac:8b:1d:65:7a:1a:99:66:17:11:13:7e:ee:5c:4b:4e ssh-rsa 2048 bit fingerprint: ef:28:85:ae:4f:0d:a7:5f:17:44:01:44:9e:ff:4b:4b 0 SSH public keys installed 32 locations available to store SSH public keys system:mm[1]>