CRT ssh telnet
ssh 配置说明:PC0 是我的真机,只有他可以telnet R1,且只能用ssh。
配置SSH的时候必须修改路由器名字也就是hostname 还有配置ip domain-name 。这是必须的!
如图:

R1 配置:
hostname r1
interface FastEthernet0/0
ip address 192.168.1.1 255.255.255.0
duplex auto
speed auto
interface FastEthernet0/0
ip address 192.168.1.1 255.255.255.0
duplex auto
speed auto
router rip
network 192.168.1.0
ip domain name jin.com
network 192.168.1.0
ip domain name jin.com
username jin privilege 15 password 0 123456
access-list 1 permit host 192.168.3.10
line vty 0 4
login local
transport input ssh
login local
transport input ssh
access-classes 1 in
R2 配置:
interface FastEthernet0/0
ip address 192.168.1.2 255.255.255.0
duplex auto
speed auto
!
interface FastEthernet1/0
ip address 192.168.2.1 255.255.255.0
duplex auto
speed auto
!
router rip
network 192.168.1.0
network 192.168.2.0
ip address 192.168.1.2 255.255.255.0
duplex auto
speed auto
!
interface FastEthernet1/0
ip address 192.168.2.1 255.255.255.0
duplex auto
speed auto
!
router rip
network 192.168.1.0
network 192.168.2.0
R3 配置:
interface FastEthernet0/0
ip address 192.168.2.2 255.255.255.0
duplex auto
speed auto
!
interface FastEthernet1/0
ip address 192.168.3.1 255.255.255.0
duplex auto
speed auto
!
router rip
network 192.168.2.0
network 192.168.3.0
ip address 192.168.2.2 255.255.255.0
duplex auto
speed auto
!
interface FastEthernet1/0
ip address 192.168.3.1 255.255.255.0
duplex auto
speed auto
!
router rip
network 192.168.2.0
network 192.168.3.0
验证配置:我用CRT 进行SSH连接 CRT 配置如下:

提示我们输入用户名及密码


成功进入,说明配置成功!!!







发表评论 评论 (13 个评论)