Zum Hauptinhalt springen

Befehl „sshcfg“

Mit diesem Befehl können Sie SSH-Parameter anzeigen und konfigurieren.

Syntax:
sshcfg [-options]
Tabelle 1. sshcfg-Optionen
OptionBeschreibungWerte
-cstatusZustand von SSH-CLIenabled, disabled
-hk Serverschlüssel
  • gen: Privaten Schlüssel für SSH-Server generieren
  • all: Öffentlichen Schlüssel von Server anzeigen
Beispiel:
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...