Aller au contenu principal

Commande sshcfg

Utilisez cette commande pour afficher et configurer les paramètres SSH.

Syntaxe :
sshcfg [-options]
Tableau 1. Options sshcfg
OptionDescriptionValeurs
-cstatusÉtat de l’interface de ligne de commande SSHenabled, disabled
-hk Clé de serveur
  • gen : générer la clé privée du serveur SSH
  • all : afficher la clé publique du serveur
Exemple :
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...