SSH Terminal Service 327
Tab le 356 Start the SSH client
2 Specifying the public key of the server
Use this configuration task to specify the public key of the server to be connected
to the client, so that the client authenticates if the connected server is trustworthy.
Perform the following configuration in system view.
Tab le 357 Specify the public key of the server
3 Configuring the first-time authentication of the server
Use this configuration task to configure or cancel the first-time authentication of
the server performed by the SSH client.
The first-time authentication means that when the SSH client accesses the server
for the first time in the case that there is no local copy of the server's public key,
the user can choose to proceed to access the server and save a local copy of the
server's public key; when the client accesses the server next time, it uses the saved
public key to authenticate the server.
If the first-time authentication is not supported, when there is no local copy of the
public key of the connected server, the client assumes that the server is illegal and
will refuse to access the server.
Perform the following configuration in system view.
Tab le 358 Configure the first-time authentication of the server
By default, the client perform the first-time authentication.
Displaying and
Debugging SSH
On completion of the above configurations, you can use the display command in
any view to view the operation of the configured SSH and further verify the result
Operation Command
Start the SSH client ssh2 { host-ip | host-name } [ port-num
] [ prefer_kex { dh_group1 |
dh_exchange_group } ] [
prefer_ctos_cipher { des | 3des |
aes128 } ] [ prefer_stoc_cipher { des |
3des | aes128 } ] [ prefer_ctos_hmac {
sha1 | sha1_96 | md5 | md5_96 } ] [
prefer_stoc_hmac { sha1 | sha1_96 | md5
| md5_96 } ]
Operation Command
Specify the public key of the server ssh client server-ip assign rsa-key
keyname
Cancel the corresponding relationship
between the server and the public key
undo ssh client server-ip assign
rsa-key
Operation Command
Configure the first-time authentication
of the server
ssh client first-time enable
Cancel the first-time authentication of
the server
undo ssh client first-time