Chao cac anh chi va cac ban.
Minh cau hinh SSH nhu sau:
Router(config)#hostname R2
Todd(config)#ip domain-name Lammle.com
Todd(config)#crypto key generate rsa general-keys modulus 1024
Todd(config)#ip ssh time-out 60
Todd(config)#ip ssh authentication-retries 2
Todd(config)#line vty 0 15
Todd(config-line)#transport input ssh.
Nhung sau do telnet vao khong duoc. Khong biet tai loi gi? Ai biet lam on chi giup.
tran trong
Cau hinh file config nhu sau:
--------------------------
R2#sh run
Building configuration...
Current configuration : 1326 byt
!
version 12.4
service timestamps debug datetim
service timestamps log datetime
no service password-encryption
!
hostname R2
!
boot-start-marker
boot-end-marker
!
enable password ena
!
no aaa new-model
!
!
ip cef
ip domain name Lammle.com
!
!
ip ssh time-out 60
ip ssh authentication-retries 2
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
interface Loopback0
ip address 10.0.0.1 255.255.255
!
interface FastEthernet0/0
no ip address
shutdown
duplex half
!
interface Serial1/0
ip address 192.168.1.1 255.255.
serial restart-delay 0
no fair-queue
!
interface Serial1/1
no ip address
shutdown
serial restart-delay 0
!
interface Serial1/2
no ip address
shutdown
serial restart-delay 0
!
interface Serial1/3
no ip address
shutdown
serial restart-delay 0
!
interface Serial1/4
no ip address
shutdown
serial restart-delay 0
!
interface Serial1/5
no ip address
shutdown
serial restart-delay 0
!
interface Serial1/6
no ip address
shutdown
serial restart-delay 0
!
interface Serial1/7
no ip address
shutdown
serial restart-delay 0
!
ip route 0.0.0.0 0.0.0.0 Serial1
!
no ip http server
no ip http secure-server
!
!
!
!
!
!
control-plane
!
!
!
!
!
!
gatekeeper
shutdown
!
!
line con 0
exec-timeout 0 0
stopbits 1
line aux 0
stopbits 1
line vty 0 4
login
transport input ssh
!
!
end
Minh cau hinh SSH nhu sau:
Router(config)#hostname R2
Todd(config)#ip domain-name Lammle.com
Todd(config)#crypto key generate rsa general-keys modulus 1024
Todd(config)#ip ssh time-out 60
Todd(config)#ip ssh authentication-retries 2
Todd(config)#line vty 0 15
Todd(config-line)#transport input ssh.
Nhung sau do telnet vao khong duoc. Khong biet tai loi gi? Ai biet lam on chi giup.
tran trong
Cau hinh file config nhu sau:
--------------------------
R2#sh run
Building configuration...
Current configuration : 1326 byt
!
version 12.4
service timestamps debug datetim
service timestamps log datetime
no service password-encryption
!
hostname R2
!
boot-start-marker
boot-end-marker
!
enable password ena
!
no aaa new-model
!
!
ip cef
ip domain name Lammle.com
!
!
ip ssh time-out 60
ip ssh authentication-retries 2
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
interface Loopback0
ip address 10.0.0.1 255.255.255
!
interface FastEthernet0/0
no ip address
shutdown
duplex half
!
interface Serial1/0
ip address 192.168.1.1 255.255.
serial restart-delay 0
no fair-queue
!
interface Serial1/1
no ip address
shutdown
serial restart-delay 0
!
interface Serial1/2
no ip address
shutdown
serial restart-delay 0
!
interface Serial1/3
no ip address
shutdown
serial restart-delay 0
!
interface Serial1/4
no ip address
shutdown
serial restart-delay 0
!
interface Serial1/5
no ip address
shutdown
serial restart-delay 0
!
interface Serial1/6
no ip address
shutdown
serial restart-delay 0
!
interface Serial1/7
no ip address
shutdown
serial restart-delay 0
!
ip route 0.0.0.0 0.0.0.0 Serial1
!
no ip http server
no ip http secure-server
!
!
!
!
!
!
control-plane
!
!
!
!
!
!
gatekeeper
shutdown
!
!
line con 0
exec-timeout 0 0
stopbits 1
line aux 0
stopbits 1
line vty 0 4
login
transport input ssh
!
!
end
Comment