client-known-host
This command adds or removes an SSH peer as an SSH known host to the SSH client profile.
Syntax
client-known-host host type key
no client-known-host host
Parameters
- host
- Specifies the fully-qualified hostname or IP address for the SSH peer.
- type
- Specifies the key type for key authentication with SSH.
ssh-rsa- Use
ssh-rsakey authentication. ecdsa-sha2-nistp256-cert-v01_AT_openssh.com- Use
ecdsa-sha2-nistp256-cert-v01@openssh.comkey authentication. ecdsa-sha2-nistp384-cert-v01_AT_openssh.com- Use
ecdsa-sha2-nistp384-cert-v01@openssh.comkey authentication. ecdsa-sha2-nistp521-cert-v01_AT_openssh.com- Use
ecdsa-sha2-nistp521-cert-v01@openssh.comkey authentication. ssh-ed25519-cert-v01_AT_openssh.com- Use
ssh-ed25519-cert-v01@openssh.comkey authentication. rsa-sha2-512-cert-v01_AT_openssh.com- Use
rsa-sha2-512-cert-v01@openssh.comkey authentication. rsa-sha2-256-cert-v01_AT_openssh.com- Use
rsa-sha2-256-cert-v01@openssh.comkey authentication. ssh-rsa-cert-v01_AT_openssh.com- Use
ssh-rsa-cert-v01@openssh.comkey authentication. ecdsa-sha2-nistp256- Use
ecdsa-sha2-nistp256key authentication. ecdsa-sha2-nistp384- Use
ecdsa-sha2-nistp384key authentication. ecdsa-sha2-nistp521- Use
ecdsa-sha2-nistp521key authentication. ssh-ed25519- Use
ssh-ed25519key authentication. rsa-sha2-512- Use
rsa-sha2-512key authentication. rsa-sha2-256- Use
rsa-sha2-256key authentication.
- key
- Specifies the host public key for the peer.
Guidelines
The client-known-host command adds an SSH peer as an SSH known host to the SSH client profile.
The no client-known-host command removes an SSH peer as an SSH known host from the SSH client profile.
Examples
- Add
ragnarok.datapower.comby hostname as an SSH known host.# client-known-host ragnarok.datapower.com ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAIEA1J/99rRvdZmVvkaKvcG2a+PeCm25 p8OJl87SA6mtFxudA2ME6n3lcXEakpQ8KFTpPbBXt+yDKNFR9gNHIfRl UDho1HAN/a0gEsvrnDY5wKrTcRHrqDc/x0buPzbsEmXi0lud5Pl7+BXQ VpPbyVujoHINCrx0k/z7Qpkozb4qZd8== # - Add
10.97.111.108by IP address as an SSH known host.# client-known-host 10.97.111.108 ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAIEA1J/99rRvdZmVvkaKvcG2a+PeCm25 p8OJl87SA6mtFxudA2ME6n3lcXEakpQ8KFTpPbBXt+yDKNFR9gNHIfRl UDho1HAN/a0gEsvrnDY5wKrTcRHrqDc/x0buPzbsEmXi0lud5Pl7+BXQ VpPbyVujoHINCrx0k/z7Qpkozb4qZd8== # - Remove
ragnarok.datapower.comby hostname as an SSH known host.# no client-known-host ragnarok.datapower.com # - Remove
10.97.111.108by IP address as an SSH known host.# no client-known-host 10.97.111.108 #