![Huawei Quidway NetEngine80 Скачать руководство пользователя страница 203](http://html.mh-extra.com/html/huawei/quidway-netengine80/quidway-netengine80_configuration-manual_169456203.webp)
9 Telnet and SSH
Quidway NetEngine80
Configuration Guide - Basic Configurations
9-42
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
Issue 04 (2009-12-20)
Configuration Files
#
sysname Quidway
#
rsa peer-public-key rsakey001
public-key-code begin
3047
0240
C4989BF0 416DA8F2 2675910D 7F2997E8 5573A35D 0163FD4A FAC39A6E 0F45F325
A4E3AA1D 54692B04 C6A28D3D C58DE2E8 E0D58D65 7A25CF92 A74D21F9 E917182B
0203
010001
public-key-code end
peer-public-key end
#
aaa
local-user client001 password simple huawei
local-user client001 service-type ssh
#
ssh user client002 assign rsa-key rsakey001
ssh user client001 authentication-type password
ssh user client002 authentication-type RSA
ssh user client001 service-type sftp
ssh user client002 service-type sftp
sftp server enable
ssh user client001 sftp-directory
flash :
.
ssh user client002 sftp-directory
flash :
.
ssh user client001
ssh user client002
#
user-interface vty 0 4
authentication-mode aaa
protocol inbound ssh
#
return
9.8.4 Example for Accessing the SSH Server Through Other Port
Numbers
Networking Requirements
The standard monitored port number of the SSH protocol is 22. If the attacker accesses the
standard port continuously, the bandwidth is consumed and the performance of the server is
affected, and other users cannot access the standard port.
After the number of the port monitored by the SSH server is set to the other port numbers, the
attacker does not know the change of the number of the monitored port and keeps sending the
socket connection with the standard port number as 22. After detecting that the number of the
port that requests the connection is not the number of the monitored port, the SSH does not set
up the socket connection.
Thus, only the valid user can set up the socket connection through the non-standard monitored
port set by the SSH server, and follow the procedure of negotiating the SSH version number,