• If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.
Xin chào ! Nếu đây là lần đầu tiên bạn đến với diễn đàn, xin vui lòng danh ra một phút bấm vào đây để đăng kí và tham gia thảo luận cùng VnPro.

Announcement

Collapse
No announcement yet.

Loi khi dung Secure shell SSH

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Loi khi dung Secure shell SSH

    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

  • #2
    Originally posted by nhatruc View Post
    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
    chào !!!
    bạn cần cấu hình thêm username và password . ví dụ
    Code:
    username cisco password 0 cisco
    và thêm
    Code:
    Todd(config)#line vty 0 15
    Todd(config-line)#login local 
    Todd(config-line)#transport input ssh.
    Chúc bạn vui !!!
    Trần Mỹ Phúc
    tranmyphuc@hotmail.com
    Hãy add nick để có thông tin đề thi mới nhất :tranmyphuc (Hỗ trợ tối đa cho các bạn tự học)

    Cisco Certs : CCNP (Passed TSHOOT 1000/1000)

    Juniper Certs :
    JNCIP-ENT & JNCIP-SEC
    INSTRUCTORS (No Fee) : CISCO (Professional) , JUNIPER (Professional) , Microsoft ...

    [version 4.0] Ôn tập CCNA


    Comment


    • #3
      Bạn chú ý 1 chút

      khi cấu hình transport input ssh thì bạn bắt buột phải dùng 1 ssh client như putty.exe hoặc từ router khác dùng lệnh ssh -l <username> <ip>. line vty sẽ không chấp nhận session telnet nữa.
      Co ai uong cafe voi tui khong

      Comment

      Working...
      X