telnet <ip> / ssh -l <user> <ip>
Log in to another device. The connection is real — an ACL, a missing route or 'transport input' decides whether it opens — and then the target's vty config decides who gets in. Once in, the console IS that device: its prompt, its commands, its running-config. 'exit' returns to where you started.
Example
R1# ssh -l admin 10.0.0.2
Password:
R2# configure terminal
R2(config)# hostname R2-EDGE
R2-EDGE(config)# end
R2-EDGE# exit
[Connection to 10.0.0.2 closed by foreign host]
R1#A firewall's shipped OUTSIDE-IN denies TCP 23, so telnet from outside times out. SSH answers only on a device with RSA keys ('crypto key generate rsa'); a server answers ssh while sshd runs (a PC after 'systemctl start sshd'). The vty lines need a password + 'login', or 'login local' + a username — with neither, the router says 'Password required, but none set'. A host login (server/PC) takes any user with a non-empty password: the lab has no host accounts. Ctrl+Shift+6 then x parks the session; 'resume' brings it back.
Don't just read it — type telnet <ip> / ssh -l <user> <ip> in a real network simulator in your browser and watch it take effect. No install, no account needed to start.
Frequently asked
What does the "telnet <ip> / ssh -l <user> <ip>" command do?
Log in to another device. The connection is real — an ACL, a missing route or 'transport input' decides whether it opens — and then the target's vty config decides who gets in. Once in, the console IS that device: its prompt, its commands, its running-config. 'exit' returns to where you started.
What's the common gotcha with "telnet <ip> / ssh -l <user> <ip>"?
A firewall's shipped OUTSIDE-IN denies TCP 23, so telnet from outside times out. SSH answers only on a device with RSA keys ('crypto key generate rsa'); a server answers ssh while sshd runs (a PC after 'systemctl start sshd'). The vty lines need a password + 'login', or 'login local' + a username — with neither, the router says 'Password required, but none set'. A host login (server/PC) takes any user with a non-empty password: the lab has no host accounts. Ctrl+Shift+6 then x parks the session; 'resume' brings it back.
Example of "telnet <ip> / ssh -l <user> <ip>"
R1# ssh -l admin 10.0.0.2 Password: R2# configure terminal R2(config)# hostname R2-EDGE R2-EDGE(config)# end R2-EDGE# exit [Connection to 10.0.0.2 closed by foreign host] R1#