Command Manual – System Management
Quidway S8500 Series Routing Switches
Chapter 8 SSH Terminal Service Configuration
Commands
Huawei Technologies Proprietary
8-18
Parameter
None
Description
Use the ssh client first-time enable command to set the SSH client to perform the
first-time authentication of the SSH server to be accessed.
Use the undo ssh client first-time command to cancel the first-time authentication.
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 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. The user can save a copy of the server’s public key locally by
other means beforehand.
By default, the client does not perform the first-time authentication.
Example
# Set the SSH client to perform the first-time authentication of the SSH server to be
accessed.
<Quidway> system-view
System View: return to User View with Ctrl+Z.
[Quidway] ssh client first-time enable
8.2.5 ssh2
Syntax
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 } ]
View
System view
Parameter
host-ip: IP address of the server.
host-name: Server name, a string with 1 to 20 characters.
port-num: Server port number, ranges from 0 to 65535, and defaults to 22.