数据准备
|
项目 |
数据 |
备注 |
---|---|---|
SSH用户名 |
client001 |
- |
SSH用户密码 |
huawei |
- |
SSH用户级别 |
3 |
若没有配置“SSH用户级别”,则用户登录后的级别则为用户接口视图下配置的“缺省用户级别”。 |
SSH用户的认证模式 |
password |
SSH协议的认证方式可以分成RSA认证和密码认证两种方式。本节仅介绍password的认证方式。 |
<HUAWEI> system-view[HUAWEI] rsa local-key-pair createThe key name will be: HUAWEI_HostThe 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 = 512]:512Generating keys.......++++++++++++..........++++++++++++....++++++++......................................++++++++
[HUAWEI] user-interface vty 0 4[HUAWEI-ui-vty0-4] authentication-mode aaa[HUAWEI-ui-vty0-4] protocol inbound ssh[HUAWEI-ui-vty0-4] quit
若配置登录协议为SSH,则NE80E/40E设备将自动禁止Telnet功能。
[HUAWEI] ssh user client001 authentication-type password
[HUAWEI] aaa[HUAWEI-aaa] local-user client001 password cipher huawei[HUAWEI-aaa] local-user client001 level 3[HUAWEI-aaa] local-user client001 service-type ssh
[HUAWEI] stelnet server enable[HUAWEI] ssh user client001 service-type stelnet
通过SSH方式登录设备。本节仅介绍通过putty软件登录设备的方法。
如下图所示,指定设备的IP地址192.168.1.1,并指定登录方式为SSH。
输入用户名和密码,用户名client001,密码huawe。
不良信息举报Q:2000617|Archiver|ROS软路由论坛 ROSABC.com 网络方案网络工程交流
GMT+8, 2025-8-28 05:09 , Processed in 0.133274 second(s), 15 queries .
Powered by Discuz! X3.4
Copyright © 2001-2021, Tencent Cloud.