Wiki DE Start in the browser

Wiki › Protocols

SSH

Managing routers and switches remotely: user, password and management network, instead of standing next to them with a console cable.

Layer
7 (Anwendung, über TCP 22)
Standard
RFC 4253
See an example
See demo

What for

A network device is rarely configured with a cable at the console but remotely. SSH (Secure Shell) opens an encrypted command line over the network for this. Older methods such as Telnet transmit the password in plain text.

Setting up

The device needs a reachable address (router: an interface or loopback; switch: a VLAN interface), a user and SSH on the virtual lines:

Router(config)# username admin password Netz2026
Router(config)# ip ssh
Router(config)# line vty 0 4
Router(config-line)# transport input ssh
Router(config-line)# login local

On the PC:

C:\> ssh admin@192.168.10.1

In practice management belongs in its own management VLAN that only administrators can reach (Access control lists (ACL)).

What you see in the capture

After the TCP handshake client and server exchange their versions in plain text (SSH-2.0-…); after that only encrypted bytes can be seen. That is exactly the difference to Telnet or HTTP.

How to do it in leyoNET

The same text as in the app’s help (F1 key).

SSH

With SSH (TCP 22) you log in from a PC to a router or switch and configure it remotely. After the key exchange everything is encrypted; a capture shows only unreadable bytes.

See an example

  • Demo “Router on a stick” in leyoNETDemo “Router on a stick” in leyoNET
    Router on a stick

    Two VLANs, one router with subinterfaces on the trunk.

    The packet goes tagged to the router (eth0.10) and comes out in the other VLAN (eth0.20).

    Watch live Project file

“Watch live” opens the network in leyoNET, the simulation runs in a loop. In the app you find it under File → Demo networks, ready to present.

Practise

  • ★★★☆☆ Static routing – Task 3: Management network and SSH · 6 goals · Worksheet (German)

In leyoNET under Tools → Exercise catalogue. Every exercise checks itself.

What leyoNET simplifies

ProtocolLayerSimplification in the simulation
SSH7Version exchange in plain text, then only encrypted bytes

Standards

  • RFC 4253 – The Secure Shell (SSH) Transport Layer Protocol

Read on

Found a mistake or have an idea? Source of this page on GitHub.