annotations: []
smart_annotations: []
nodes:
- id: n0
  label: ADMIN
  node_definition: iol-xe
  image_definition: null
  ram: null
  cpus: null
  cpu_limit: null
  data_volume: null
  boot_disk_size: null
  parameters: {}
  tags: []
  hide_links: false
  x: 0
  y: 0
  configuration:
  - name: ios_config.txt
    content: |
      hostname ADMIN
      no ip domain lookup
      service timestamps log datetime msec
      logging buffered 16000
      !
      interface Ethernet0/0
       ip address 192.168.20.10 255.255.255.0
       no shutdown
      !
      ip route 0.0.0.0 0.0.0.0 192.168.20.1
      !
      end
  interfaces:
  - id: i0
    label: Loopback0
    mac_address: null
    type: loopback
  - id: i1
    label: Ethernet0/0
    slot: 0
    type: physical
    mac_address: null
  - id: i2
    label: Ethernet0/1
    slot: 1
    type: physical
    mac_address: null
  - id: i3
    label: Ethernet0/2
    slot: 2
    type: physical
    mac_address: null
  - id: i4
    label: Ethernet0/3
    slot: 3
    type: physical
    mac_address: null
- id: n1
  label: R1
  node_definition: iol-xe
  image_definition: null
  ram: null
  cpus: null
  cpu_limit: null
  data_volume: null
  boot_disk_size: null
  parameters: {}
  tags: []
  hide_links: false
  x: 180
  y: 0
  configuration:
  - name: ios_config.txt
    content: |
      hostname R1
      no ip domain lookup
      service timestamps log datetime msec
      logging buffered 16000
      !
      interface Ethernet0/0
       ip address 192.168.20.1 255.255.255.0
       no shutdown
      !
      interface Ethernet0/1
       ip address 192.168.30.1 255.255.255.0
       no shutdown
      !
      ip domain name ccna.lab
      username labadmin privilege 15 secret Ccna-Lab-Only-2026
      ip ssh version 2
      ip access-list standard MGMT-SRC
       permit 192.168.20.0 0.0.0.255
      !
      line vty 0 4
       login local
       transport input ssh
      !
      end
  interfaces:
  - id: i0
    label: Loopback0
    mac_address: null
    type: loopback
  - id: i1
    label: Ethernet0/0
    slot: 0
    type: physical
    mac_address: null
  - id: i2
    label: Ethernet0/1
    slot: 1
    type: physical
    mac_address: null
  - id: i3
    label: Ethernet0/2
    slot: 2
    type: physical
    mac_address: null
  - id: i4
    label: Ethernet0/3
    slot: 3
    type: physical
    mac_address: null
- id: n2
  label: GUEST
  node_definition: iol-xe
  image_definition: null
  ram: null
  cpus: null
  cpu_limit: null
  data_volume: null
  boot_disk_size: null
  parameters: {}
  tags: []
  hide_links: false
  x: 360
  y: 0
  configuration:
  - name: ios_config.txt
    content: |
      hostname GUEST
      no ip domain lookup
      service timestamps log datetime msec
      logging buffered 16000
      !
      interface Ethernet0/0
       ip address 192.168.30.10 255.255.255.0
       no shutdown
      !
      ip route 0.0.0.0 0.0.0.0 192.168.30.1
      !
      end
  interfaces:
  - id: i0
    label: Loopback0
    mac_address: null
    type: loopback
  - id: i1
    label: Ethernet0/0
    slot: 0
    type: physical
    mac_address: null
  - id: i2
    label: Ethernet0/1
    slot: 1
    type: physical
    mac_address: null
  - id: i3
    label: Ethernet0/2
    slot: 2
    type: physical
    mac_address: null
  - id: i4
    label: Ethernet0/3
    slot: 3
    type: physical
    mac_address: null
links:
- id: l0
  n1: n0
  n2: n1
  i1: i1
  i2: i1
  conditioning: {}
  label: ADMIN-Ethernet0/0<->R1-Ethernet0/0
- id: l1
  n1: n1
  n2: n2
  i1: i2
  i2: i1
  conditioning: {}
  label: R1-Ethernet0/1<->GUEST-Ethernet0/0
lab:
  title: CCNA 07A - ssh_vty_scope
  description: قصر SSH على مصدر الإدارة
  notes: |-
    قصر SSH على مصدر الإدارة

    من Console على R1 أنشئ مفاتيح RSA: crypto key generate rsa general-keys modulus 2048. من كل عميل جرّب ssh -l labadmin 192.168.20.1. كلمة مرور المعمل في الإعداد.

    الإصلاح
    على R1 طبق access-class MGMT-SRC in على line vty 0 4. أبق Console مفتوحًا أثناء اختبار الإدارة.

    التحقق
    ADMIN يتصل وGUEST يُرفض. سجل show ip ssh وshow access-lists MGMT-SRC. إذا كانت خطوط VTY الإضافية مفعلة على الصورة طبّق نفس سياسة المصدر عليها.
  timestamp: 1795104000.0
  version: 0.3.0
