DEV Community

JackedIN
JackedIN

Posted on

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 is a placeholder. Keep passwords in JACKEDIN_PASSWORD, not on the command line.

Tested on real Juniper hardware. Built-in profiles for Junos, Cisco IOS/NX-OS, Arista, Nokia, MikroTik and more.

What you need

  • A console cable and a USB-serial adapter (JackedIN looks for common adapters such as FTDI, Prolific, CH340, or CP210x, and preselects one when it is present).
  • JackedIN 1.2.1 on Windows, Linux, or Raspberry Pi (there is no macOS build yet). A 72-hour full trial is enough for this procedure; after that a license is one computer.
  • The device's usual console settings. JackedIN defaults to 9600 8N1, no flow control, which is the typical console.

Close any other program that already has the COM port or tty open.

1. Find the port

jackedin ports
Enter fullscreen mode Exit fullscreen mode

On Windows the path looks like COM3. On Linux it looks like /dev/ttyUSB0 or a stable /dev/serial/by-id/... symlink. JackedIN lists ports the operating system reports as present, with the USB product name when the OS provides it.

If Windows does not list the port, install the adapter driver, then run jackedin ports again. jackedin ports --all can show COM names that are in the device map but not currently present; prefer a port the default list actually shows.

On Linux, a permission error means your user is not in the dialout group (some systems use uucp or lock). Add the group, then log out and back in:

sudo usermod -aG dialout "$USER"
Enter fullscreen mode Exit fullscreen mode

2. Connect in the window

Open JackedIN, choose Serial, pick COM3 or /dev/ttyUSB0, leave 9600 8N1 and no flow control unless the device docs say otherwise, and connect.

The status bar shows the protocol, the device path, the line settings (9600 8N1 no flow), and whether the log is on. It does not show a "via" IP address for a serial session, which is what you want when the management address is unreachable.

If the device presents login: and Password:, sign in the way you usually would at the console. Save the session with a placeholder name such as router1-console so you can reopen it later.

Logging is on by default. The log folder is Documents/JackedIN/Logs. You will want that file if you are collecting show output for a change ticket.

3. Or do the same work from the CLI

jackedin exec is the same engine as the window. It reads the command list first, sends one command, waits until the prompt on router1 is back, pages through --More--, ---(more)---, and similar markers, and can print JSON. A serial session uses a 100 ms line delay when you omit --line-delay. For a very slow console, add --char-delay or --wait-for-echo.

Windows (jackedin.com in scripts, not jackedin.exe):

jackedin ports
jackedin exec --serial COM3 --baud 9600 --user admin --json --cmd "show version"
Enter fullscreen mode Exit fullscreen mode

Linux:

jackedin ports
jackedin exec --serial /dev/ttyUSB0 --baud 9600 --user admin --json --cmd "show version"
Enter fullscreen mode Exit fullscreen mode

--user and the password from JACKEDIN_PASSWORD are sent only when the device asks. The password is not typed at a login: prompt or at a shell prompt.

Do not pipe a change into jackedin connect and assume it landed. End-of-file on that path can close the session while the device is still paging. Use exec.

--dry-run prints the command plan and connects to nothing. Use it before you send a change.

4. See why SSH failed, then fix it carefully

Once the prompt is back, start with show commands, not a configuration blast. On a Junos-style prompt such as admin@router1>, show version and a sanitized show interfaces terse are enough to see whether the management address 192.0.2.10 is even up. Follow the device's own recovery process for the actual change.

This article stops at a working console and complete, prompt-gated output. If an AI agent is also connected, remember that human approval before any change is coming in the next release and is not in 1.2.1. Until then, treat exec as able to send whatever you allow, and prefer show commands plus --dry-run for a plan.

The same serial exec is available to jackedin mcp (localhost only, off until you enable the local API, token-protected). That is useful later; it is not required to get router1 back.

Trial

JackedIN is a 72-hour full trial, then $19 one-time, one license per computer: https://getpathprobe.com/jackedin/

Top comments (0)