ssh 切换用户_从零开始学习华为路由交换 | 配置ssh远程管理

ebb06b94b398150564c418a4860b72b0.png

实验前准备

1、电脑上安装华为ENSP模拟器

2、添加两台路由器

b79dbc33121aa4e3b3a07b24fe1879f8.png

命令介绍

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远程登录成功)

 033cdbe15c3151d34f5e5db193b74fa2.gif

 033cdbe15c3151d34f5e5db193b74fa2.gif

2145e904bc7931eb59a37b4f5adba8c2.png

瑞哥建了一个微信群,不在群的朋友,可以加瑞哥微信(备注单位+姓名)

进群前先转发本图文至朋友圈,添加后截图给瑞哥,立即拉群!

一个有态度的优质教程集聚地

帮助过上万位网友解决教程需求问题

教程仅用于学习交流,禁止用于商业交易©

猜您喜欢往期精选▼

从零开始学习华为路由交换 | 模式切换

从零开始学习华为路由交换 | 配置主机名

从零开始学习华为路由交换 | 配置console线路密码

从零开始学习华为路由交换 | 配置console线路密码aaa认证模式

从零开始学习华为路由交换 | 配置接口IP

45ea7462d40a818272cacbea48ee053e.png

努力学习,勤奋工作,让青春更加光彩

45ae284c8d6f8eb8f0347df9ca0c6b6d.png

再长的路,一步步也能走完,再短的路,不迈开双脚也无法到达

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值