Secure remote access (SSH)

Practise this lab in the free NanoTech-kw Network Lab - a Cisco-style simulator that runs in your browser, with hints, an event log and automatic checking.

โ–ถ Open the free Network Lab

Devices: R1, SW1, PC1

Your task

Task: allow only SSH to R1 with a local user:
 ip domain-name nanotech.local
 crypto key generate rsa
 username admin secret Cisco123
 enable secret class
 line vty 0 4 โ†’ transport input ssh โ†’ login local
Then from PC1: ssh -l admin 192.168.1.1 (password Cisco123). Try telnet 192.168.1.1 - it's refused.

Step by step

  1. Set a domain name and generate RSA keys.
  2. Create user admin and allow only SSH with login local.
  3. From PC1: ssh -l admin 192.168.1.1

โ–ถ Start this lab in the browser๐Ÿ“– Command guide๐Ÿงญ Watch how SSH works

More labs

Two PCs on a switchRouter between two networksVLANs on a switchStatic routingInter-VLAN routing (router-on-a-stick)Layer-3 switch with SVIsDHCP server on a routerDHCP server + relay + DNSOSPF between three routersRIP v2NAT/PAT to the InternetACL: protect a serverWireless access pointIPv6 static routingEIGRP between three routersProject: build a small office networkHuawei switch VLANs + Cisco routerOSPF between Huawei and Cisco routersSpanning Tree: who blocks?EtherChannel (LACP)HSRP: a gateway that never diesPort securityTo the Internet: NAT + DNS + webIPv6 SLAAC + OSPFv3๐Ÿ”ง Fix 1: PC can't leave its network๐Ÿ”ง Fix 2: same VLAN, no ping๐Ÿ”ง Fix 3: one-way routing๐Ÿ”ง Fix 4: inter-VLAN broken๐Ÿ”ง Fix 5: odd subnet problem