计算机网络实验(二):SSH远程登陆管理

SSH远程登陆管理

一、实验拓扑图如下:

在这里插入图片描述

二、实验步骤

  • 步骤一: 配置ip接口确保AR4和AR5处于同一网段
#路由器 AR1 ip地址配置

<Huawei>system-view #进入特权模式
Enter system view, return user view with Ctrl+Z.
[Huawei]undo info-center enable	#关闭信息提示
Info: Information center is disabled.
[Huawei]sysname R2	#命名R2
[R4]interface GigabitEthernet 0/0/0	#进入接口0/0/0
[R4-GigabitEthernet0/0/0]ip address 12.1.1.1 24	#ip address ip地址 子网掩码
#路由器 AR2 ip地址配置

<Huawei>system-view 
Enter system view, return user view with Ctrl+Z.
[Huawei]undo info-center enable 
Info: Information center is disabled.
[Huawei]sysname R2
[R5]interface GigabitEthernet 0/0/0
[R5-GigabitEthernet0/0/0]ip address 12.1.1.2 24
  • 步骤三:配置SSH远程登陆
#配置R2作为远程被登陆设备进行配置

<R2>system-view 
Info: Succeeded in starting the STELNET server.
[R2]stelnet server enable	#开启SSH服务器端的stelnet服务
[R2]rsa local-key-pair create #创建加密报文的密钥对

% RSA keys defined for Host already exist.
Confirm to replace them? 
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值