Skip to main content

sshcfg command

Use this command to display and configure SSH parameters.

Syntax:
sshcfg [-options]
Table 1. sshcfg options
OptionDescriptionValues
-cstatusState of SSH CLIenabled, disabled
-hk Server key
  • gen: Generate SSH server private key
  • all: Display server public key
Example:
system> sshcfg
-cstatus:enabled
-CLISSH port:22
384 bit fingerprint: PBB5aRshJC0P9Bd8Lvf+RALAH1reYMVHxefGg+hUdxw
521 bit fingerprint: hDsmmGDW+6g/CT67VZ8Pc1maIZQU2dY6TVi2VlYoJxM
2 SSH public keys (ECDSA) installed

4096 bit fingerprint: DHxDn5lnpscA7uCBgCL2TLSQ4UevxaxjDlU7rd9Dog4
1 SSH public keys (RSA) installed

SSH client option HostKeyAlgorithm impacts the negotiation result of using host key.
system> sshcfg -hk all
384 bit fingerprint: PBB5aRshJC0P9Bd8Lvf+RALAH1reYMVHxefGg+hUdxw
521 bit fingerprint: hDsmmGDW+6g/CT67VZ8Pc1maIZQU2dY6TVi2VlYoJxM
2 SSH public keys (ECDSA) installed

4096 bit fingerprint: DHxDn5lnpscA7uCBgCL2TLSQ4UevxaxjDlU7rd9Dog4
1 SSH public keys (RSA) installed

system> sshcfg -hk gen
Regenerating SSH keys...