sshcfg command

This command sets and displays the SSH status of the management module.

Table 1. sshcfg command
Function What it does Command Valid targets
Display SSH status Displays the SSH status of the management module. Returned values are:
  • -v1 off
  • -cstatus: state of CLI SSH server (enabled, disabled)
  • CLI SSH port number
  • -sstatus: state of SMASH SSH server (enabled, disabled)
  • SMASH 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
                           -T system:mm[x]
                        

where x is the primary management-module bay number.

Display RSA host key information Displays RSA host key information for the management module. sshcfg -hk rsa
                           -T system:mm[x]
                        

where x is the primary management-module bay number.

Display DSA host key information Displays DSA host key information for the management module. sshcfg -hk dsa
                           -T system:mm[x]
                        

where x is the primary management-module bay number.

Generate host key Generates a host key for the management module. 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.
                           -T system:mm[x]
                        

where x is the primary management-module bay number.

Set state of CLI SSH server Sets the state of the CLI SSH server for the management module. 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.
                           -T system:mm[x]
                        

where x is the primary management-module bay number.

Set state of SMASH SSH server Sets the state of the SMASH SSH server for the management module. sshcfg -sstatus 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.
                           -T system:mm[x]
                        

where x is the primary management-module bay number.

Example:

To display SSH status, while management module 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
CLI SSH port 22
-sstatus disabled
SMASH SSH port 50024
ssh-dss 2048 bit fingerprint: 27:ee:bd:a9:27:28:d8:a5:93:03:3d:8e:77:d0:38:2c
ssh-rsa 2048 bit fingerprint: 66:c9:73:4f:18:11:02:10:f3:05:6e:d7:27:05:a5:01
2 SSH public keys installed
10 locations available to store SSH public keys
system:mm[1]>