1.连接设备
新建设备和host主机,连线,host主机选择本地网卡(不选host-only网卡)
2.启动设备,打开终端,按ctrl+c
3.执行命令
<H3C>system-view
[H3C]int g0/0
[H3C-GigabitEthernet0/0]ip address 192.168.0.254 24
[H3C-GigabitEthernet0/0]qu
[H3C]ssh server enable //开启SSH服务
[H3C]line vty 0 4 //进入线程模式,允许0/1/2/3/4线路
[H3C-line-vty0-4]authentication-mode scheme //设置认证模式,组合模式有用户名和密码的模式
[H3C-line-vty0-4]protocol inbound ssh //ssh协议
[H3C-line-vty0-4]qu
[H3C]local-user sshclient //创建本地用户:sshclient
[H3C-luser-manage-sshclient]password simple zlb20210918 //本地用户密码
[H3C-luser-manage-sshclient]service-type ssh /服务类型ssh
[H3C-luser-manage-sshclient]authorization-attribute user-role network-admin
[H3C-luser-manage-sshclient]qu
[H3C]qu
标签:H3C,sshclient,manage,虚拟环境,ssh,luser,line,HCL
From: https://www.cnblogs.com/b3051/p/16969447.html