Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to install Putty in Linux system

2025-04-08 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/01 Report--

This article will explain in detail how to install Putty on the Linux system. The content of the article is of high quality, so the editor shares it for you as a reference. I hope you will have a certain understanding of the relevant knowledge after reading this article.

PuTTY is a free SSH/Telnet program that connects to sites that support SSH Telnet online and automatically obtains each other's system fingerprint code (Fingerprint). Here is a good idea to share with you how to install PuTTY in Linux system.

About PuTTY: PuTTY is an open source (Open Source Software) connection software, mainly maintained by Simon Tatham, licensed under the MIT license.

Contains components are: PuTTY, PuTTYgen,PSFTP, PuTTYtel, Plink, PSCP, Pageant, the default login protocol is SSH, the default port is 22.

Putty is used to remotely connect to the server, supporting SSH, Telnet, Serial and other protocols to connect. One of the most commonly used is SSH. It is very useful for remote management of Linux.

The specific steps for installing PuTTY in Linux PuTTY has been included in the official source of many Linux distributions. For example, in Arch Linux, we can install PuTTY with this command:

$sudo pacman-S putty installs it in Debian, Ubuntu, or Linux Mint:

$sudo apt install putty

Access a remote Linux server using PuTTY

After installing PuTTY, you can open it in the menu or in the launcher. If you want to open it with a terminal, you can:

The default interface of $puttyPuTTY looks like this:

PuTTY default interface

As you can see, many options are accompanied by instructions. In the left panel, you can configure many items, such as:

Modify PuTTY login session options

Modify the terminal simulator control options to control the function of each button

Control the sound of the terminal ringing

Enable / disable advanced features of the terminal

Set the PuTTY window size

Control the command rollback length (default is 2000 lines)

Modify the appearance of the PuTTY window or cursor

Adjust window edges

Adjust the font

Save login information

Set up proxy

Modify the control options for each protocol

And more.

All the options are basically annotated, and I'm sure it's not difficult for you to understand.

Access a remote Linux server using PuTTY

Please click the "Session" tab in the left panel and enter the remote hostname (or IP address). Then, select the connection type (such as Telnet, Rlogin, SSH, etc.). Depending on the connection type you choose, PuTTY automatically selects the default port number for the connection type (for example, SSH is 22, Telnet is 23). If you change the default port number, don't forget to type it into "Port" manually. Here, I use SSH to connect to the remote host. After entering all the information, click "Open".

Connect via SSH

If this is the first time you have connected to this remote host, PuTTY will display a security warning asking if you trust the remote host you are connected to. Click "Accept" to add the key of the remote host to the PuTTY cache:

PuTTY security warning

Next, enter the user name and password of the remote host. Then you successfully connect to the remote host.

Connected to the remote host

Access the remote host using key authentication

Some Linux administrators may have configured key authentication on the server. For example, when using PuTTY to access an AMS instance, you need to specify the location of the key file. PuTTY can use its own format, the. ppk file, for public key verification.

Enter the hostname or IP first. Then, in the "Category" tab, expand "Connection", then expand "SSH", and then select "Auth", after which you can select the .ppk key file.

Click "Accept" to close the security prompt. Then, enter the password of the remote host (if the key is password protected) to establish a connection.

Save PuTTY session

Sometimes, you may need to connect to the same remote host multiple times, and you can save these sessions and access them later without entering information.

Please enter the host name (or IP address), provide a session name, and then click "Save". If you have key files, make sure you specify them before clicking the "Save" button.

Now, you can start the connection by selecting "Saved sessions", then clicking "Load" and then clicking "Open".

Use the PuTTY secure copy client (pscp) to transfer files to a remote host

Typically, Linux users and administrators use scp as a command-line tool to transfer files from local to remote hosts. However, PuTTY provides us with a tool called PuTTY secure replication client (pscp) to do this. If your local host is running Windows, you may need this tool. PSCP is available under both Windows and Linux.

Use this command to copy file.txt from the local Arch Linux to the remote Ubuntu:

Pscp-I test.ppk file.txt sk@192.168.225.22:/home/sk/ let's analyze this command:

-I test.ppk: access the key file used by the remote host

File.txt: files to be copied to the remote host

Sk@192.168.225.22: user name and IP of the remote host

/ home/sk/: destination path.

To copy a directory, use the-r (recursive Recursive) parameter:

Pscp-I test.ppk-r dir/ sk@192.168.225.22:/home/sk/ to transfer files using pscp, execute the following command:

Pscp-I test.ppk c:\ documents\ file.txt.txt sk@192.168.225.22:/home/sk/ what is the Linux system Linux is a free to use and freely spread UNIX-like operating system, is a POSIX-based multi-user, multi-tasking, multi-threading and multi-CPU operating system, using Linux can run major Unix tools, applications and network protocols.

On the Linux system how to install Putty to share here, I hope the above content can be of some help to you, can learn more knowledge. If you think the article is good, you can share it for more people to see.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report