Detailed ssh experiment based on Cisco Huawei simulator

learning target:

Tip: a large collection of na experiments


Learning Content:

Tip: You can add content to learn here.
For example:
1. telnet
2. master ssh
3. static routing
4. ospf
5. stp experiment


study-time:

Tips: You can add the planned study time here.
For example:
1. Monday to Friday 7 pm-9 pm
2, Saturday 9 am-11 am
3, Sunday 3 pm-6 pm


Learning output:

Experiment purpose:
content:

SSH topology diagram:

Insert picture description here

1. Ensure two-way connectivity

lol_1 :
//1.先进接口配置ip
int e0/0
ip add 12.1.1.1  255.255.255.0
no shut(因为思科路由器的的接口默认是关闭的)
 
lol_2 :
//1.先进接口配置ip
int e0/1
ip add 12.1.1.2  255.255.255.0
no shut(因为思科路由器的的接口默认是关闭的)

``
Test the connectivity of ping 12.1.1.1 and see the exclamation mark and it will almost work.

2. Principle: Need to generate rsa encrypted random number on r2

1. The host path of R2 cannot be the default router
2. R2 needs a domain name
3. R2 needs to create a user name and password needs to be enabled on the vty interface
4. As an optimized vty, only ssh traffic is allowed

3. Configure ssh

R2:
ip地址已经配置好  域名:
ip domain-name cisco.com

crypto key generate rsa  生成加密随机
默认是512   我们用1024位 看下图

//华为其它配置一个原理,生成rsa加密的随机数 
rsa local-key-pair create 
 user admin authentication-type all

ssh user admin authentication-type all

Insert picture description here

Create a username and password and enable it on the vty interface

R2:
username admin  privilege 15 password cisco
line vty 0 4
login local
transport input ssh 
R2:
ssh -v 2 -l admin 12.1.1.2 

Insert picture description here

Guess you like

Origin blog.csdn.net/weixin_45821358/article/details/108356272