Fix a switch over serial when SSH is down
SSH to 192.0.2.10 is down. The console port on router1 still works. This walk-through uses JackedIN 1.2.1 to open that serial session in the window or from the command line, wait for the device prompt, and collect complete show output — including when the pager prints --More-- . Disclosure: I build JackedIN. Use this only on a device you own or are allowed to manage. Every name and address below…
When SSH is down on a router, the console port on the device can still be accessed to troubleshoot and fix the issue. To do this, a console cable and a USB-serial adapter are needed. JackedIN, a program built by the author, is used to open the serial session either through a graphical window or from the command line.
First, find the serial port that JackedIN recognizes by checking the available COM ports on Windows or /dev/ttyUSB0 on Linux. JackedIN lists the ports it detects, with support for common USB adapters like FTDI, Prolific, CH340, and CP210x. Once the port is identified, connect to it using JackedIN's serial settings, which default to 9600 8N1 and no flow control.
After establishing the connection, sign in using the device's usual console credentials. Save the session with a placeholder name for future reference. If the console session allows login and password entry, use those values stored in the JACKEDIN_PASSWORD environment variable rather than typing them directly.
JackedIN can also be used in the command line interface (CLI) by executing the jackedin exec command with the required parameters. The command output can be saved to a log file for reference during troubleshooting. If the SSH issue persists, carefully review show commands to determine the cause and follow the device's recovery process.
Remember that JackedIN sends commands only when prompted and does not execute commands blindly. For future changes, use the jackedin mcp API (available after a trial period) to ensure proper authorization.
Rewritten by urgent.news; may contain errors — check the original.
Source: dev.to