Loopback Cert Guide
Lab 4.8SSH and passwords

Lock it down, then try to get in.

A switch with factory-style access: Telnet and one shared password. Set the hostname, domain and RSA keys, add a local user, close Telnet, add an enable secret and encrypt what's left, then log in from the admin PC, the console cable and a remote PC.

  • 4.8Configure network devices for remote access using SSH
  • 5.3Configure and verify device access control using local passwords
01Live network

Every line is a door.

SW1's Fa0/1 marker shows what the vty lines accept, con0 shows how the console logs in. Click the admin or remote PC to try SSH, Telnet or the console with your credentials. The overview ticks off each hardening step.

Live network · SSH and passwords · simulated
  • SSH only, or login local
  • Telnet allowed
  • Shared line password
  • Nothing allowed, or no login

Simulated: the switch, PCs, keys, password hashes and console output are Loopback's simulation of an IOS switch. Type 7 strings use the real reversible cipher; type 9 hashes and key data are stand-ins. Addresses are private space (10.1.1.0/24 and 10.2.2.0/24).

02Tasks

Solve the task and the network checks your work.

Each task loads its own starting point onto the network. Solve it from the console or with clicks; the checks tick live, and you see one model answer when you're done.

    03What happens if

    Predict the result, then watch it happen.

    Eight access traps: keys on a switch still named Switch, Telnet to an SSH-only line, login with no password, enable over SSH with no secret, both enable commands, what encryption changes, a 512-bit key and a switch with no gateway. Pick what happens, then load it.

      04Drills

      A new question every round, so nothing is memorized.

      The SSH steps in order, password types, the commands and what each error message means. Build a streak.

      05Recall sheet

      The whole topic on one sheet.

      The numbers, orders and commands the network runs on. Cover a column and say it before you look.

      SSH in order

      1. hostname SW1 and ip domain name lab.local: the key is named hostname.domain.
      2. crypto key generate rsa modulus 2048: SSH version 2 needs a key of at least 768 bits on IOS 15 (IOS XE 17.10 and later want 2048).
      3. ip ssh version 2.
      4. username admin secret …: a local user to log in with.
      5. line vty 0 4, login local, transport input ssh.
      6. On a Layer 2 switch, a management SVI and ip default-gateway to reach it from other subnets.

      Line login

      login
      Checks the line's own password. No password set: refused.
      login local
      Asks for a username from the local database. SSH needs this.
      no login
      No check at all.

      transport input

      • ssh: SSH only. telnet: Telnet only.
      • telnet ssh or all: both. none: nothing.
      • A refused protocol gets % Connection refused, before any login prompt.

      Enable

      • enable secret is hashed. enable password is clear text or type 7.
      • With both, only the secret works.
      • From a vty line with neither set: % No password set. The console is let in.

      Password types

      0
      Clear text
      5
      MD5 hash
      7
      Reversible: service password-encryption
      8
      PBKDF2 with SHA-256
      9
      scrypt

      Commands

      SSH

      hostname SW1
      ip domain name lab.local
      crypto key generate rsa modulus 2048
      ip ssh version 2
      username admin secret Str0ngPass
      line vty 0 4
       login local
       transport input ssh

      Passwords

      enable secret En4ble!
      no enable password
      service password-encryption
      line console 0
       login local
      interface vlan 1
       ip address 10.1.1.2 255.255.255.0
      ip default-gateway 10.1.1.1

      Verify

      show ip ssh
      show crypto key mypubkey rsa
      show running-config
      show users
      show ip interface brief

      All of these work in SW1's console, along with ?, Tab and do.

      Jump to a page

      1. Gi0/1HomeconnectedHow the exam works and a sample of every station
      2. Gi0/2Practice Testsconnected18 tests by domain, every answer explained
      3. Gi0/3Flashcardsconnected401 cards on every objective, plus your own
      4. Gi0/4CLI LabconnectedCommand drills and config tasks, checked like IOS
      5. Gi0/5Concept LabsconnectedYou're in Lab 4.8 SSH and passwords. All labs.
      6. Gi0/6Study PlanconnectedAll 53 objectives, graded from your progress