What you will learn
In this article, you will learn how you can use your Ubuntu Linux machine to open a serial console on a cisco device.
- Privileged access to your Ubuntu machine
- A serial cable
# – requires given linux commands to be executed with root privileges either directly as a root user or by use of sudo command
$ – requires given linux commands to be executed as a regular non-privileged user
How to proceed
In this step you need to install screen, a program that will allow you to open the serial console fo your cisco device.
$ sudo apt install screen
sudo chmod 2775 /usr/bin/screen sudo chmod 755 /usr/bin/screen sudo chmod 777 /usr/bin/screen sudo chmod u+s /usr/bin/screen sudo chmod 755 /var/run/screen
Connect the serial cable
After having installed screen, you can connect your serial cable to the cisco device and to your computer.
The next step will consist in determining the port of the serial cable:
$ sudo dmesg | grep -i tty
In our case, the device port is ttyUSB0.
Connect to serial console
Now you can open a console session to your cisco device:
$ sudo screen /dev/ttyUSB0 9600
You will need to type Enter to get the cisco device prompt.
Below are the most basic steps for getting started with screen:
On the command prompt, type
Run the desired program.
Use the key sequence
Ctrl-d to detach from the screen session.
Reattach to the screen session by typing