Launching Putty on Linux: Setting Serial Parameters Explained

Abstract: Resolves the inability to pass serial parameters like baud rate via command line by configuring PuTTY sessions manually or using Plink for automation.

Created: 2026-08-29 by
Launching PuTTY on Linux with correct serial parameters requires using the graphical interface to save a session or utilizing plink for scripted connections, as the standard GUI executable lacks command-line flags for baud rate and data bits. This guide details how to configure these settings manually within the application or via the reliable alternative tool designed for automation.

Why Command-Line Flags Fail for Serial Configuration

The most common source of confusion when attempting to automate serial connections with PuTTY is the assumption that the putty.exe binary accepts configuration flags similar to those found in SSH clients like OpenSSH. Users often search for a flag such as -sercfg or attempt to append speed parameters directly to the command line, only to find that the program ignores them or throws an error. The standard PuTTY graphical frontend is designed primarily for interactive use, meaning it does not parse complex connection parameters from the terminal invocation.

This limitation exists because serial communication involves multiple nuanced settings beyond just the IP address or hostname. Parameters such as baud rate, data bits, stop bits, parity, and flow control must be explicitly defined. Without a dedicated scriptable interface, the application defaults to generic values that rarely match the requirements of embedded devices, routers, or legacy hardware. Consequently, relying on the main putty executable for automated tasks is fundamentally flawed and will not yield a stable connection.

Configuring Serial Settings via the GUI

To establish a working serial connection, you must first define the parameters within the PuTTY configuration window. This process ensures that every time you launch the session, the correct handshake protocols are used. Start by opening the PuTTY application on your Linux system. In the initial screen, locate the "Session" category at the top of the left-hand menu tree.

  • Select Connection Type: Change the "Connection type" dropdown from "SSH" to "Serial". This action reveals new fields specific to serial communication, replacing the host name input box.
  • Specify the Port: Enter the path to your serial device in the "Serial line" field. On most Linux distributions, this is typically /dev/ttyS0 for the first physical port or /dev/ttyUSB0 if you are using a USB-to-serial adapter.
  • Set Speed: Input the baud rate in the "Speed" box. Common values include 9600, 115200, or 19200, depending on the target device's specifications.

Once the basic connection details are entered, you must configure the advanced serial parameters. Click on "Serial" in the left-hand menu under the "Connection" section. Here, you can adjust the following critical settings:

  • Data bits: Usually set to 8.
  • Stop bits: Typically 1.
  • Parity: Set to None unless the device documentation specifies otherwise.
  • Flow control: Select "None" for most direct console connections, or "XON/XOFF" if software flow control is required by the remote system.

After configuring these values, return to the "Session" category. Give your connection a name in the "Saved Sessions" box and click "Save". This creates a persistent configuration file that PuTTY will recall automatically, eliminating the need to re-enter parameters every time.

Using Plink for Scripted Connections

If you require non-interactive access to a serial device, such as running commands in a bash script or automating device provisioning, the graphical PuTTY client is insufficient. Instead, you should use plink, which is part of the PuTTY suite but designed specifically for command-line usage. Unlike the main putty binary, plink supports a wider range of options for establishing connections without a GUI.

To connect via serial using plink, you must specify the connection type and the serial line arguments. The syntax generally follows this structure:

plink -serial /dev/ttyUSB0 -sercfg 115200,8,1,n,n -l username -pw password

In this command, the -serial flag indicates the connection mode. The -sercfg option is unique to plink and allows you to pass the baud rate, data bits, stop bits, parity, and flow control in a single string. The format is baudrate,databits,stopbits,parity,flowcontrol. For example, 115200,8,1,n,n sets 115200 baud, 8 data bits, 1 stop bit, no parity, and no flow control.

It is important to note that plink handles serial connections differently than SSH. It does not encrypt the traffic by default in the same way, so ensure that sensitive data transmission is handled appropriately. Additionally, verify that your user has read/write permissions for the specified /dev/tty* device, or use sudo if necessary.

Troubleshooting Common Serial Issues

Even with correct parameters, serial connections can fail due to permission issues or conflicting drivers. If plink reports that it cannot open the serial port, check the ownership of the device file using ls -l /dev/ttyUSB0. You may need to add your user to the dialout group on Debian-based systems to gain access.

Another frequent issue is incorrect flow control settings. If you see garbled characters or the connection drops intermittently, try changing the flow control setting from "None" to "XON/XOFF". Conversely, if the connection hangs immediately upon opening, ensure that "Hardware" flow control is disabled, as many modern USB adapters do not support RTS/CTS lines properly.

For users who previously struggled with other command-line utilities, understanding the distinction between general file finding errors and specific connection configurations is vital. Just as one must carefully handle delete and prune in Linux Find Command Using 'delete' and 'prune' Gives Error scenarios to avoid data loss, precise parameter entry in serial tools prevents connection failures.

Frequently Asked Questions

Can I use PuTTY to connect via Wi-Fi?

No, PuTTY is primarily a terminal emulator for network protocols like SSH, Telnet, and raw TCP/UDP, or for local serial ports. It does not manage Wi-Fi networks or wireless authentication. You should use standard Linux networking tools like wpa_supplicant or NetworkManager to handle Wi-Fi connectivity before launching PuTTY.

Why does my serial connection show garbage characters?

Garbage characters almost always indicate a mismatch in baud rate or parity settings between your PuTTY configuration and the target device. Verify that the speed (e.g., 9600 vs 115200) matches exactly. Also, ensure that data bits and stop bits are identical on both ends, as even a single bit difference will corrupt the data stream.

Is plink available on all Linux distributions?

Yes, plink is included in the standard putty-tools or putty packages on most major Linux distributions. You can install it using your package manager, such as apt-get install putty-tools on Debian or Ubuntu, or yum install putty on CentOS. It is not installed by default on minimal server installations.

How do I fix permission denied errors on /dev/ttyUSB0?

This error occurs because your user account lacks read/write access to the serial device. You can resolve this by adding your user to the dialout group using the command sudo usermod -aG dialout $USER. After running this command, log out and log back in for the changes to take effect.

Can I use PuTTY to monitor disk usage discrepancies?

PuTTY is a remote login tool and cannot analyze local file system statistics directly. If you suspect discrepancies between du and ls outputs, you should run those commands locally or via an SSH session to inspect inode usage and hidden files, as discussed in Discrepancy in Disk Usage Between du and ls Commands in Linux: Possible Explanations.

Latest News

How to Display Output of xterm Command in Terminal Screen using Cron

Resolve the inability to display xterm output in a terminal screen from cron by redirecting logs or using wall instead of insecure X11 workarounds.

Read More
Expose Local Server on VPS Preserving Real Client IPs (OS Level)

Resolve VPS logging showing only gateway IPs by configuring reverse proxies to forward real client addresses via X-Forwarded-For headers.

Read More
How to Clear Recent Files History in Linux without Deleting Actual Files?

Clear recent files history in Linux by deleting ~/.local/share/recently-used.xbel without removing the actual files.

Read More
Best HDD Copy Strategy: Manually Syncing and Rewriting Scratch

Resolve data drift between two 4TB hard drives by using rsync with the --delete flag to manually sync and rewrite scratch data for an exact mirror.

Read More
Understanding Bash Prompt Abbreviations: An Overview

Resolve repetitive typing errors by creating and persisting Bash aliases in the .bashrc file for improved command-line efficiency.

Read More
Free Tools and Methods to Log Real-Time Performance Details in Task Manager

Log real-time CPU and memory metrics to CSV files using Windows Performance Monitor Data Collector Sets to troubleshoot system slowness.

Read More
Contact Qatar Airways Customer Service: Phone Number, Help Center, and More

Resolve urgent Qatar Airways reservation issues like flight changes and baggage claims using the US phone number +1801-855-5905 or online self-service tools.

Read More
Windows 11: Alt Codes Displaying Wrong Characters - Solutions

Resolve Windows 11 Alt codes showing wrong characters by verifying the US keyboard layout and enabling Num Lock.

Read More
Run Programs with Elevated Privileges: A Comprehensive Guide

Eliminates the need to type sudo for frequent administrative tasks by configuring .bashrc aliases or functions.

Read More
Dynamically Changing Dates in Excel Formulas Using Cells

Eliminate manual date updates in Excel by using cell references to create dynamic formulas that automatically adjust calculations when input dates change.

Read More
Granting Edit Access to a Specific Excel Sheet in an Office 365 User Email ID-Based Login

Excel Online lacks native sheet-level permissions, so users must split workbooks or use worksheet protection to isolate edit access for specific tabs.

Read More
Creating Network Load on Local Wi-Fi from One PC

Generate sustained Wi-Fi bandwidth load from a single PC using a VM SFTP server to test router stability and throughput.

Read More
Changing the Default Editor for Batch Files in Windows 11's File Explorer

Resolve the issue of batch files opening in Notepad by changing the default editor to a preferred application like VS Code.

Read More
Gain WiFi Connection Minutes Before Losing it by Changing MAC Address

Bypass MAC address filtering to restore WiFi connectivity temporarily when a device is blocked by network administrators.

Read More
Photos Folders Turned Black: Troubleshooting Picture Applications on Windows

Resolve black screens in Windows Photos by resetting the app, updating graphics drivers, and repairing system files.

Read More
Troubleshooting High CPU Temperature Values: A Step-by-Step Guide

Resolve high CPU temperatures and thermal throttling by monitoring with Speedfan, cleaning dust from cooling components, and replacing degraded thermal paste.

Read More
Make cURL establish TLS connection with CA unknown

Resolve cURL TLS connection failures with unknown or self-signed certificates by using the --insecure flag to bypass CA validation.

Read More
Troubleshooting Incorrect Network Metrics Values in Grafana, Prometheus, InfluxDB, and Telegraf

Fix incorrect network metrics in Grafana, Prometheus, InfluxDB, and Telegraf by verifying interface selection, resolving unit mismatches, and handling counter resets.

Read More
Start Another Terminal Window (cmd.exe) Windows Repair/Troubleshoot

Provides step-by-step instructions to access the Windows Command Prompt via bootable media for advanced system repair and troubleshooting.

Read More
Thinkpad P1 Gen 6: Sudden Thunderbolt 3 Dock USB-C Charging Stopped Working

Resolve sudden Thunderbolt 3 dock USB-C charging and internet failure on ThinkPad P1 Gen 6 by updating firmware, resetting the dock, and adjusting power settings.

Read More
ASUS Windows 11 Laptop: Internet Connection Issue with Hotspot

Resolve ASUS Windows 11 laptop spinning wheel issue when connecting to mobile hotspot by resetting network stack, disabling IPv6, and adjusting power settings.

Read More
Developing iOS Project with Firebase: Logging in and Sending Push Notifications

Integrates Firebase to enable secure user authentication and push notifications in iOS applications.

Read More
Troubleshooting Bash Script with Suspected Issues of Spaces, Dashes, Filenames and Quoting

Resolve Bash script failures caused by word splitting, globbing, and special characters in filenames by applying proper quoting techniques.

Read More
Populating OneDrive Folder for Local Backup without Affecting Remote Files

Prevent OneDrive from deleting remote files during Windows reinstallation by unlinking the account or using symbolic links to isolate local data.

Read More
Force First Frame as Keyframe Without Re-encoding: A Quick Solution

Resolve inaccurate seeking and playback glitches by re-encoding video to ensure the first frame is a valid keyframe.

Read More
Find Information in Database Using WSL (Ubuntu) on Windows-10

Resolve database connection issues from WSL Ubuntu on Windows 10 by configuring client tools and network access to query remote or local servers.

Read More
Configuring a New Router with Different Networks: One Family, One Guest

Resolve IP conflicts and isolate guest traffic by configuring a second router with a distinct subnet via its WAN port.

Read More
Quickly Open Multiple Stock Websites with a Single Command

Solve the problem of manually opening multiple stock research websites by creating a single command to launch them simultaneously on Windows, macOS, or Linux.

Read More
Improved Adobe Acrobat Search Experience: Access Advanced Search with Ease

Access advanced search filters like case sensitivity and regex in Adobe Acrobat by clicking More Options in the Find bar.

Read More
Port Forwarding VM via OpenVPN: A Comprehensive Guide

Configure OpenVPN server and iptables to forward specific ports from VPN clients to a virtual machine's internal IP address.

Read More
Understanding Partitions in the 1980s: A Look Back at MS-DOS and Master Boot Record

Explains how the Master Boot Record and partition table enabled MS-DOS to manage multiple disk volumes on a single physical drive.

Read More
Windows 10 Enterprise: Keyboard Not Detected in Managed Organization with Admin Privileges

Resolve Windows 10 Enterprise keyboard detection failures caused by Group Policy restrictions, driver corruption, or USB enumeration errors.

Read More
Can't Find x86_64 Versions of Applications on MacOS arm64 (M1)

Resolve missing x86_64 app issues on M1 Macs by installing Rosetta 2 and reinstalling apps as universal binaries.

Read More
How to Hide Installation Source for an Android App

Manage Android app installation source visibility by using USB transfers or file managers to reduce browser traces and isolate data via work profiles.

Read More
Connecting Momentus 4200.2 ST9808210A Hard Drive via USB Cable

Resolve inability to access Seagate Momentus 4200.2 ST9808210A hard drive by connecting it via USB using a compatible SATA-to-USB adapter and configuring the disk in Windows.

Read More