CCNA动手实验(八)配置SSH安全外壳

本实验指导配置R2设备的SSH服务,并确保R1仅能通过SSH而非telnet进行远程访问。配置步骤包括在R2和R1上进行设置,并通过尝试telnet和SSH连接以及检查登录用户来验证配置。
摘要由CSDN通过智能技术生成

一 实验要求

1.在R2上配置SSH安全外壳。

2.使R1不能通过telnet远程登陆,只能通过SSH。

二 配置步骤

1.在R2上配置

Router>
Router>en
Router#conf
Configuring from terminal, memory, or network [terminal]? 
Enter configuration commands, one per line.  End with CNTL/Z.
Router(config)#ho R2
R2(config)#enable secret cisco123
R2(config)#int g0/0
R2(config-if)#ip add 192.168.12.1 255.255.255.0
R2(config-if)#no sh

R2(config-if)#
%LINK-5-CHANGED: Interface GigabitEthernet0/0, changed state to up

R2(config-if)#exit

R2(config)#ip domain-name cisco.com
R2(config)#username R1 password cisco123
R2(config)#crypto key generate rsa 
The name for the keys will be: R2.cisco.com
Choose the size of the key modulus in the range of 360 to 2048 for your
  General Purpose Keys. Choosing a key modulus greater than 512 may take
  a few minutes.

How many 
  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值