Putty linux serial port connection

How can I access putty from linux terminal?

I’m trying to configure my cisco 2950 switch and I need to use putty on linux. Im not used to using linux but I’ve been told that putty is built in to linux terminal. I have my serial console cable connected to the router but I’m unable to telnet in. How do I use putty?

2 Answers 2

The PuTTY program is not built into Linux. What the other person meant is that most Linux systems come with commands that provide the same functionality as PuTTY:

  • The SSH client is ssh .
  • The Telnet client is telnet .
  • The serial console clients are screen and minicom .

To connect to the first serial port using screen, run:

Press Ctrl A followed by Ctrl K to disconnect. (Some systems use just K instead of Ctrl K .)

@Kruug: That’s not always desirable when using screen as a serial console terminal, since it leaves the tty device busy and can cause confusion.

Putty does exist on Linux too ( sudo apt-get install putty on most debian-ish systems), if Putty is exactly what you have a guide for — even though it’s unnecessary on Linux.

Читайте также:  Linux professional institute 101

To find the serial port to use for Putty/Minicom/Screen, you could plug in the cable and shortly after use dmesg | grep USB in a terminal to see the output (you should see something like New device on /dev/ttyUSB0 or various /dev/tty* ‘s to make sure you are attempting to connect to the correct Serial line.

As an alternative if Linux overwhelms you:

If all you need is access to the Serial connection and nothing specific from the Linux shell, then you can use Putty from Windows (I would assume you have access to a Windows machine as well). (Download Page).

Determine which Serial port (or «COM» port in windows) you need in Device Manager:

COM ports

Then in Putty, choose Serial , enter the COM port and the BAUD (Speed):

enter image description here

If you need advanced settings to the serial connection in PUTTY, you can do that in the left menu Connection > Serial

Источник

Использование PuTTY

PuTTY — это бесплатный Telnet и SSH-клиент с помощью которого можно подключаться к контроллеру по SSH или через Debug-консоль, а также настраивать serial-устройства по протоколу Telnet.

Перед использованием PuTTY, программу нужно установить:

  • Для ОС Windows — загрузите и установите дистрибутив с официального сайта программы.
  • Для Debian-подобной ОС Linux — выполните в консоли команды:
sudo apt update sudo apt install putty

Подключение по SSH

Значение логина и пароля по умолчанию смотрите в статье SSH. . Для примера рассмотрим подключение по SSH к контроллеру Wiren Board:

  1. Запустите PuTTY.
  2. Выберите слева в поле Category ветку Session.
  3. Ведите IP-адрес контроллера. Как узнать IP-адрес контроллера
  4. Укажите номер порта — 22.
  5. Переключатель Connection type установите в положение SSH.
  6. Нажмите кнопку Open.
  7. При первом подключении к контроллеру появится окно запроса на приём от него ключа шифрования соединение — нажмите Accept.
  8. При успешном подключении откроется окно терминала с предложением ввести логин:
    • login as: введите логин и нажмите клавишу Enter .
    • password: введите пароль пользователя. Введённые символы не отображаются, после окончания ввода нажмите клавишу Enter .
  9. Если логин и пароль введены верно — в консоли появится приветственное сообщение и приглашение на ввод команды.

Источник

Putty linux serial port connection

ONR-OD-8050-ssd-lite-regNetX-800mf-fpn-bgr-coco-512x512

1. Install putty
2. Enter putty on the command line
3. Change 3 places, the first connection type selects Serial, the second Serial line selects the USB interface on the computer, and the third Speed ​​selects 115200 (may change)

Linux check USB interface
ls /dev/ttyUSB*
Add permissions to the USB interface
sudo chmod 777 /dev/ttyUSB0

Intelligent Recommendation

Putty connection Linux example

Convert the private key file format. 1. Key connection If your Linux server is bound with a key file in .pem format automatically generated by Alibaba Cloud, you need to convert the key file in .pem f.

Programming use of the serial port in Linux

Linux enthusiast Linux under the use of serial ports API corresponding to serial port 1. Settings of pin number 2. Open the serial port 3. Settings of serial ports 4. Send a character to the serial po.

Ubuntu The solution when «Unable to open connection to / dev / ttys0» occurs when using the PUTTY serial port assistant

Unable to open connection to /dev/ttyS0 The phenomenon shown below is because no open permissions Solution: 1, enter the terminal 2, enter rudo pali 3. Enter the password Press the Enter The next figu.

Use XShell connection serial port method

Today, I suddenly need to debug an isolation device, I need to connect with a serial port, I found that xshell can actually connect serial debugging to record the process. Open the new window; Session.

Embedded development putty serial port printing garbled

table of Contents Embedded development putty serial port printing garbled Encoding format problem Baud rate setting error Embedded development putty serial port printing garbled When using putty to co.

More Recommendation

Putty tutorial (grabbing serial port log)

It can be used as ssh to connect to the server, and it can also be used to grab the serial port log. When used as the serial port log function, you need to install a driver tool. If you need a downloa.

Linux basics: 2, network configuration and use putty connection

First, the network configuration 1, view the network configuration Command: ifconfig The NIC name naming rules under #linux are eth0, eth1. #lo NIC function is to exchange information inside the com.

Use putty to do port mapping

If you want to download a resource is not mapped to a public network or landing is not mapped to a public network such as the public Internet site, you can use to configure port mapping PUTTY access. .

Use putty to connect to linux

Use putty to connect to linux The use of snapshots, taking a snapshot is equivalent to making a backup, such as configuring the IP, taking a snapshot, you can come back here next time! A Putty downloa.

Источник

Оцените статью
Adblock
detector