sshcfg command

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.

Table 1. sshcfg command.

The command table is a multi-row, four-column table where each row describes a CMM CLI command option: column one lists command function, column two provides a detailed command description, column three shows command-option syntax, and column four lists valid command targets.

Function What it does Command Target (see paths in Command targets)
Display SSH status Displays the SSH status of the CMM. Returned values are:
  • -cstatus: state of CLI SSH server (enabled, disabled)
  • -sftpstatus: state of secure FTP server (enabled, disabled)
  • CLI SSH port number
  • ssh-dss fingerprint
  • ssh-rsa fingerprint
  • number of SSH public keys installed
  • number of locations available to store SSH keys
Note: For scripting purposes, the "-v1 off" state is always displayed.
sshcfg
Primary CMM:
  • mm[p]
  • mm[P]
  • mm[x]
  • where x is the primary CMM bay number.
Display RSA host key information Displays RSA host key information for the CMM. sshcfg -hk rsa
Primary CMM:
  • mm[p]
  • mm[P]
  • mm[x]
  • where x is the primary CMM bay number.
Display DSA host key information Displays DSA host key information for the CMM. sshcfg -hk dsa
Primary CMM:
  • mm[p]
  • mm[P]
  • mm[x]
  • where x is the primary CMM bay number.
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:
  • Supervisor
  • Chassis configuration
See Commands and user authority for additional information.
Primary CMM:
  • mm[p]
  • mm[P]
  • mm[x]
  • where x is the primary CMM bay number.
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:
  • Supervisor
  • Chassis configuration
See Commands and user authority for additional information.
Primary CMM:
  • mm[p]
  • mm[P]
  • mm[x]
  • where x is the primary CMM bay number.
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:
  • Supervisor
  • Chassis configuration
See Commands and user authority for additional information.
Primary CMM:
  • mm[p]
  • mm[P]
  • mm[x]
  • where x is the primary CMM bay number.

Example:

To display SSH status, while the primary CMM in bay 1 is set as the persistent command environment, at the system:mm[1]> prompt, type
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]>