实验前准备
1、电脑上安装华为ENSP模拟器
2、添加两台路由器
命令介绍
1.配置接口IP
2.配置ssh远程管理:
开启SSH协议
[R2]stelnet server enable
创建加密报文的密钥对
[R2]rsa local-key-pair create
Input the bits in the modulus[default = 512]:1024
[R2]
[R2]aaa
[R2-aaa]local-user user-ssh password cipher huawei123
[R2-aaa]local-user user-ssh privilege level 2
创建ssh用户
[R2-aaa]local-user user-ssh service-type ssh
[R2-aaa]quit
[R2]user-interface vty 0 4
[R2-ui-vty0-4]authentication-mode aaa
开启vty线路的ssh访问功能
[R2-ui-vty0-4]protocol inbound ssh
[R2-ui-vty0-4]quit
定义ssh用户的认证模式
[R2]ssh user user-ssh authentication-type all
1.配置接口IP
2.通过ssh登录R2:
[R1]ssh client first-time enable
[R1]stelnet 12.1.1.2
Please input the username:user-ssh
Continue to access it? (y/n)[n]:y
Save the server's public key? (y/n)[n]:y
Enter password:
(ssh远程登录成功)
技
术
是
用
来
学
的
,
不
是
用
来
收
藏
的
!
瑞哥建了一个微信群,不在群的朋友,可以加瑞哥微信(备注单位+姓名)
进群前先转发本图文至朋友圈,添加后截图给瑞哥,立即拉群!
一个有态度的优质教程集聚地
帮助过上万位网友解决教程需求问题
教程仅用于学习交流,禁止用于商业交易©
猜您喜欢往期精选▼从零开始学习华为路由交换 | 模式切换
从零开始学习华为路由交换 | 配置主机名
从零开始学习华为路由交换 | 配置console线路密码
从零开始学习华为路由交换 | 配置console线路密码aaa认证模式
从零开始学习华为路由交换 | 配置接口IP
努力学习,勤奋工作,让青春更加光彩
再长的路,一步步也能走完,再短的路,不迈开双脚也无法到达