connectorctl sshd hostkey
To configure and show the list of Host key algorithms, use the connectorctl sshd hostkey command. Host key algorithms are used to verify the server's identity to the client. The server uses its private key to authenticate itself, and the client uses the server's public key to verify this identity.
connectorctl sshd hostkey
Syntax Description
Keywords and Variables | Description |
---|---|
show |
Shows the list of all Host key algorithms. |
remove -a |
Removes all the weak Host key algorithms. |
remove -r <algorithm names> |
Removes only the given comma separated Host key algorithms. |
reset |
Resets the Host key algorithm configuration. |
-h |
Shows the detailed help message. |
Command History
Release 3 |
This command is introduced. |
Examples
The following example shows the list of all Host key algorithms:
[spacesadmin@Connector3-June2024 ~]$ connectorctl sshd hostkey show
Executing command:sshd
Command execution status:Success
-----------------------
List of supported host Key algorithms is:
hostkeyalgorithms *
Examples
The following example shows how to remove all weak Host key algorithms:[spacesadmin@Connector3-June2024 ~]$ connectorctl sshd hostkey remove -a
Executing command:sshd
Command execution status:Success
-----------------------
Removing all unsupported weak algorithms
Successfully removed
x509v3-ecdsa-sha2-nistp256,
x509v3-ecdsa-sha2-nistp384,
x509v3-ecdsa-sha2-nistp521,
x509v3-ssh-rsa,
x509v3-rsa2048-sha256,
x509v3-sign-rsa,,,
ssh-ed25519,,
ecdsa-sha2-nistp256,
ecdsa-sha2-nistp384,
ecdsa-sha2-nistp521,
ssh-rsa key exchange algorithm(s)
Examples
The following example shows how to remove only the given comma separated Host key algorithms:[spacesadmin@Connector3-June2024 ~]$ connectorctl sshd hostkey remove -r x509v3-ecdsa-sha2-nistp256,x509v3-ecdsa-sha2-nistp384
Executing command:sshd
Command execution status:Success
-----------------------
Successfully removed
,,
x509v3-ecdsa-sha2-nistp521,
x509v3-ssh-rsa,
x509v3-rsa2048-sha256,
x509v3-sign-rsa,
x509v3-sign-dss,
x509v3-ssh-dss,
ssh-ed25519,
ssh-dss,
ecdsa-sha2-nistp256,
ecdsa-sha2-nistp384,
ecdsa-sha2-nistp521,
ssh-rsa key exchange algorithm(s)
Examples
The following example shows how to reset the Host key algorithm configuration:[spacesadmin@admin ~]$ connectorctl sshd hostkey reset
Executing command:sshd
Command execution status:Success
-----------------------
Successfully reset key exchange algorithms configuration
[spacesadmin@Connector3-June2024 ~]$ connectorctl sshd hostkey remove -a
Executing command:sshd
Command execution status:Success
-----------------------
Removing all unsupported weak algorithms
Successfully removed
x509v3-ecdsa-sha2-nistp256,
x509v3-ecdsa-sha2-nistp384,
x509v3-ecdsa-sha2-nistp521,
x509v3-ssh-rsa,
x509v3-rsa2048-sha256,
x509v3-sign-rsa,,,
ssh-ed25519,,
ecdsa-sha2-nistp256,
ecdsa-sha2-nistp384,
ecdsa-sha2-nistp521,
ssh-rsa key exchange algorithm(s)