华为HCNA实验7-配置ssh远程管理

实验7-配置ssh远程管理

环境:ensp模拟器
实验目标:通用R1远程登录R2,对R2的主机名做修改,
ssh远程管理实现
添加两台路由器
Alt
R2上的配置
1.配置接口IP
2.配置ssh远程管理:

[R2]stelnet server enable         开启SSH协议
[R2]rsa local-key-pair create     创建加密报文的密钥对,缺省情况下没有配置任何本地RSA或DSA密钥对
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    
[R2-aaa]local-user user-ssh service-type ssh     创建ssh用户
[R2-aaa]quit 
[R2]user-interface vty 0 4
[R2-ui-vty0-4]authentication-mode aaa         
[R2-ui-vty0-4]protocol inbound ssh           开启vty线路的ssh访问功能
[R2-ui-vty0-4]quit     
[R2]ssh user user-ssh authentication-type all   定义ssh用户的认证模式

R1上的配置
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:
<R2>
  • 0
    点赞
  • 3
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值