Command Manual ( For Soliton ) – SSH
H3C S3100 Series Ethernet Switches
Chapter 1 SSH Commands
1-28
Note:
Both publickey and rsa-key indicate specifying the publickey key. They are
implemented with the same method.
Description
Use the
ssh client assign
command to specify the name of the public key of the server
on the client so that the client can authenticate whether the server to be accessed is
reliable.
Use the
undo ssh client assign
command to remove the mapping between the client
and the public key of the server.
By default, a client does not have the name of the server’s public key specified and it
uses the IP address or host name that it used to log in to the SSH server as the public
key name.
Note:
If a client does not support first-time authentication, it will refuse to access any
unauthenticated server. In this case, you need to configure the public key of the server
on the client and associate the public key and the server so that the client can
authenticate the server during login.
Caution:
If a pair of SSH peers are both switches that support both DSA and RSA, you must
configure the DSA public key of the server on the client.
Related command:
ssh client first-time enable
.
Examples
# Specify the name of the DSA public key of the server (whose IP address is
192.168.0.1) as
pub.ppk
on the client.
<Sysname>system-view
System View: return to User View with Ctrl+Z.
[Sysname] ssh client 192.168.0.1 assign publickey pub.ppk