在华为设备上配置一个SSH登录案例

SSH是常用的安全的远程管理协议。配置如下:

服务器端:
user-interface vty 0 4
authentication-mode aaa //认证模式采用aaa,即调用aaa下的用户名和密码
protocol inbound ssh //该虚拟线缆允许使用ssh连接
#
aaa
local-user client001 password cipher qytang //创建用户名以及对应密码
local-user client001 privilege level 3 //给该客户端最高权限
local-user client001 service-type ssh //该用户服务于ssh协议
quit
#
ssh user client001 authentication-type password //该用户使用密码认证
stelnet server enable //开始ssh协议
rsa local-key-pair create //请选择长度,推荐使用2048

客户端:
ssh client first-time enable
stelnet 77.1.1.1

[R6]stelnet 77.1.1.1
Please input the username:client001
Trying 77.1.1.1 ...
Press CTRL+K to abort
Connected to 77.1.1.1 ...
Enter password:


User last login information:

Access Type: SSH
IP-Address : 10.1.67.6 ssh
Time : 2018-07-04 15:16:19-08:00

<R7>

猜你喜欢

转载自blog.51cto.com/enderjoe/2136115