華爲 SSH 配置
1,配置 本地RSA 密鑰
[Huawei]rsa local-key-pair create
The key name will be: Host
% RSA keys defined for Host already exist.
Confirm to replace them? (y/n)[n]:y
The range of public key size is (512 ~ 2048).
NOTES: If the key modulus is greater than 512,
It will take a few minutes.
Input the bits in the modulus[default = 2048]:512
Generating keys...
...++++++++++++
..++++++++++++
......................++++++++
.......++++++++
2.設置VTY用戶只能用SSH模式
[Huawei]user-interface vty 0 4
[Huawei-ui-vty0-4]authentication-mode aaa
[Huawei-ui-vty0-4]protocol inbound ssh
3.創建aaa用戶及密碼
[Huawei]aaa #進入aaa
[Huawei-aaa]local-user admin password cipher 123456 #創建用戶名和密碼
[Huawei-aaa]local-user admin privilege level 3 #設置權限
4.配置 SSH 用戶的認證方式
[Huawei]ssh user admin authentication-type password
5.開啓stelnet
[Huawei]stelnet server enable