Instructions for using PuTTY on Windows

This article will give you a detailed guide on how to use PuTTY on Windows, including how to use a terminal window, configure, create & save profiles, change options and more.

Download and install

You can download PuTTY for Windows on Download.com.vn and follow the installation instructions like any other software.

Run PuTTY and connect to a server

If you chose to create the PuTTY icon on the desktop during the installation, simply double-click it to open the program. If not, access PuTTY from the Start menu .

When the software starts, the PuTTY Configuration window will appear. This window has a configuration panel on the left, a Host Name field (or IP address) and other options in the middle, and an active session configuration table at the bottom right.

For simple use, all you need to do is enter the server's domain name or IP address if you want to connect to the Host Name field and click Open (or press Enter ). For example, the domain names students.example.edu, the IP address is of the form 78.99.129.32.

What to do if you do not have a server?

If you don't have a server to connect to, you can use Tectia SSH on Windows or OpenSSH on Linux.

Security alert dialog

When you connect to the server for the first time, you may see the PuTTY Security Alert dialog box prompting the host server key not to be stored in the registry. This is normal when you first connect to the server. If you've ever received this message on a particular server, it means someone is trying to break the connection and steal your password with an interstitial attack.

As mentioned, this message on the first connection is normal and you just need to click Yes . More carefully, you can check the fingerprint of the displayed key, making sure it is the same server used. In fact, almost no one does that. Instead, they choose the more secure way to use the appropriate SSH Key management solution.

Instructions for using PuTTY on Windows
PuTTY security warning dialog

Terminal window and login authentication

After the security warning, you are taken to a terminal window. By default, it is bland black. First, it asks you to enter your username & password. You will then receive a command line on the server.

Next, you can enter this command into the terminal window. Now that you have connected to the server, everything you type in that window will be sent to this server. All responses from the server are displayed in the terminal window. You can run any text application on the server through that window. The session ends when you exit the command line shell on the server (usually via the exit command or press Control-D ). Alternatively, you can force the session to end by closing the terminal window.

Instructions for using PuTTY on Windows
Customize localhost

Configuration options and saved Profile

The initial configuration window contains a lot of options. Most of them are not necessary for normal use.

Instructions for using PuTTY on Windows
PuTTY startup configuration window

Port

The port field specifies the connected TCP / IP port. For SSH, this is the port the SSH server runs. It usually has a value of 22. If for some reason you need to connect to some other port, just change this value. It is often only the programmer changes it to another value, but this action is also useful for some businesses running SSH servers on non-standard ports or running multiple SSH servers on the same server at different ports. .

Connection type

You almost never need to change the connection type. Leaving SSH alone is enough because this is a secure encryption protocol designed to ensure passwords & data are protected as much as possible.

Raw connections can be used by a developer to connect a TCP / IP socket to test (for example, when developing a music network application on a TCP / IP port).

Telnet is an old protocol that has almost never been used, unless you manage the device more than 10 years old. Telnet is not secure. The password is sent clearly on the network. Therefore, an attacker can easily eavesdrop on information, stealing username and password. The old Rlogin protocol has similar shortcomings.

Serial or serial ports is another traditional communication mechanism for connecting computers to peripherals. Most computers today no longer use this port, but sometimes they are still used to control physical equipment, musical instruments, machines or communication devices. Serial ports can also be used to debug embedded operating systems or software.

Download, save or delete a saved session

This section allows you to save the settings as a named profile. Just write the new profile name in the Saved Sessions box and click Save to create a new profile. PuTTY stores the server name and other settings in this profile.

The saved profile is now in the larger box below it. Initially, it only contained Default Settings . Your saved profile will be here. Select a profile and click Load to use the previously saved profile. Select a profile and click Delete to delete the profile that is no longer needed.

Close the window on exit

Finally, the Close window on exit setting specifies how to close the window automatically when the connection is terminated. However, you rarely need to change its default value Only on clean exit  .

Configuration options panel on the left

You can find more options in the Category panel on the left. Select a category here and the right panel will change to display the configuration options for that category. The first options belong to the Session list .

Only relevant options are described here. PuTTY has a lot of other options, but most of them never need to be used.

Terminal options

The options in this catalog affect terminal emulation and keyboard mapping. They are extremely easy to understand so the article is not mentioned here. Very few people need them. Some people may change the way they handle bell characters; Less common operating system users can change the content sent by the spacebar or the Delete character.

Windows Options

These options affect the appearance and behavior of the terminal window. It also specifies how to translate the output characters and selects the font and color for that window.

Connection options

Data option may be useful when using PuTTY. The auto-login user name will determine the username so you don't have to enter it manually as before. The Proxy option is rarely useful for home users but is essential for businesses that don't allow an Internet connection outside without using a SOCKS proxy or other similar mechanism. Don't worry if you don't know what SOCKS is, just leave this section.

The Telnet , Rlogin and Serial categories only contain options for these protocols. Very few people need to use them.

However, SSH options are important and useful for some people. Ordinary users or students need not worry about them. But if you want to use public key authentication, they are needed. Note that you need to open the SSH option by clicking the [+] icon . If not, you may not see all the available options.

Key Exchange, Host Key and Cipher options

It is almost never necessary to edit these options because all of their defaults are reasonable and most people don't understand coding to make a better choice. So, if you're not sure what to do, skip these options.

Authentication options - Public Key authentication

The Auth sub branch contains a number of options that may be helpful. When clicking Auth , it shows the Options controlling SSH authentication panel . To enable public key authentication, simply create the SSH key, then click the Browse button in the Authentication parameters box located in the middle right of the configuration panel. Advanced users can check the Allow agent forwarding box to log in using a one-time key.

Most users do not need to create an SSH Key and understand the meaning of public key authentication. However, system administrators need to know and be familiar with managing SSH Key and at the same time, ensure that the organization implements the provisioning & termination processes and verifies the appropriate SSH Key.

Instructions for using PuTTY on Windows
Optional public key authentication PuTTY

Verify active directory (GSSAPI / KERBEROS)

One of the interesting features of PuTTY is the one-time login to Active Directory. In theory, it uses the Kerberos protocol via the GSSAPI programming interface. In the SSH protocol, this mechanism is called GSSAPI authentication. Business users who use Kerberos authentication (for example, through Centrify or Quest Authentication Services or Vintela) may want to take advantage of this one-time login feature. Other users don't care about it. GSSAPI authentication settings can be found in the SSH / Auth section. Note, you must expand the Auth section again by clicking the [+] icon to see the GSSAPI options.

Transition option X11

X11 is a protocol and system that runs graphical applications on Unix and Linux. It supports running graphical applications remotely via external networks.

PuTTY does not deploy the X11 server (display side), but it may work with some products running the X server feature on Windows. XMing is a popular free alternative.

To use the X11 server, you need to check the Enable X11 forwarding box and enter localhost: 0.0 in the X display location box . No need to adjust other settings.

Instructions for using PuTTY on Windows
Select the X11 forwarding you want

Tunneling options

These options are used to configure SSH tunneling, also known as SSH port forwarding. This table can be used to determine connection forwarding. Forwarding operations are saved in profiles.

To add local forwarding (for example, forwarding the TCP / IP port on the local machine to the port on the remote device or to a remote connected machine), write the source port into the Source port field , the destination server. and port (e.g. www.dest.com:80) in the Destination field and select Local . Click Add .

To add remote forwarding (for example, forwarding the TCP / IP port on the remote computer to the port on the local computer or device that the local machine can access), select Source port on the destination computer and Destination as the device. accessible from local machine.

Normally, you do not need to check local ports accept connection from server or similar for remote ports. However, if the connection to the port is forwarded from the network instead of localhost, you need to check them. Although there is a small security risk, it is not a problem in the case of SSH tunneling . However, you need to understand that anyone who can connect to the corresponding computer is able to connect to that forwarded port. In some cases, you can use port forwarding to bypass firewalls.

Above is how to use PuTTY basic on Windows . Hope the article is helpful to you.

Sign up and earn $1000 a day ⋙

Leave a Comment

Instructions to turn off Galaxy AI on Samsung phones

Instructions to turn off Galaxy AI on Samsung phones

If you no longer need to use Galaxy AI on your Samsung phone, you can turn it off with a very simple operation. Below are instructions for turning off Galaxy AI on your Samsung phone.

How to delete AI character created on Instagram

How to delete AI character created on Instagram

If you don't need to use any AI characters on Instagram, you can also quickly delete them. Here's how to delete AI characters on Instagram.

Instructions for inserting delta symbol in Excel

Instructions for inserting delta symbol in Excel

The delta symbol in Excel, also known as the triangle symbol in Excel, is used a lot in statistical data tables, expressing increasing or decreasing numbers, or any data according to the user's wishes.

Instructions for sharing a sheet on Google Sheets

Instructions for sharing a sheet on Google Sheets

In addition to sharing a Google Sheets file with all sheets displayed, users can choose to share a Google Sheets data area or share a sheet on Google Sheets.

Instructions for disabling ChatGPT storage

Instructions for disabling ChatGPT storage

Users can also customize to disable ChatGPT memory whenever they want, on both mobile and computer versions. Below are instructions for disabling ChatGPT memory.

Instructions to see the last Windows Update time

Instructions to see the last Windows Update time

By default, Windows Update will automatically check for updates and you can also see when the last update was. Here is a guide to see when Windows last updated.

Instructions to delete eSIM on iPhone are very simple

Instructions to delete eSIM on iPhone are very simple

Basically, the operation to delete eSIM on iPhone is also simple for us to follow. Below are instructions to delete eSIM on iPhone.

How to Convert Live Photo to Boomerang on iPhone

How to Convert Live Photo to Boomerang on iPhone

In addition to saving Live Photos as videos on iPhone, users can convert Live Photos to Boomerang on iPhone very simply.

How to block SharePlay on iPhone from automatically turning on

How to block SharePlay on iPhone from automatically turning on

Many apps automatically enable SharePlay when you FaceTime, which can cause you to accidentally press the wrong button and ruin the video call you're making.

How to use Click to Do on Windows 11

How to use Click to Do on Windows 11

When you enable Click to Do, the feature works and understands the text or image you click on and then makes judgments to provide relevant contextual actions.

How to turn on laptop keyboard light, activate Keyboard Backlight on Windows 10

How to turn on laptop keyboard light, activate Keyboard Backlight on Windows 10

Turning on the keyboard backlight will make the keyboard glow, useful when operating in low light conditions, or making your gaming corner look cooler. There are 4 ways to turn on the laptop keyboard light for you to choose from below.

How to enter Safe Mode Windows 10 on startup

How to enter Safe Mode Windows 10 on startup

There are many ways to enter Safe Mode on Windows 10, in case you cannot enter Windows and cannot enter. To enter Safe Mode Windows 10 when starting the computer, please refer to the article below of WebTech360.

How to create Ghibli style photos on Grok AI

How to create Ghibli style photos on Grok AI

Grok AI has now expanded its AI photo generator to transform personal photos into new styles, such as creating Studio Ghibli style photos with famous animated films.

Instructions to register for Google One AI Premium for free for 1 month

Instructions to register for Google One AI Premium for free for 1 month

Google One AI Premium is offering a 1-month free trial for users to sign up and experience many upgraded features such as the Gemini Advanced assistant.

How to turn off recent searches on Safari

How to turn off recent searches on Safari

Starting with iOS 18.4, Apple allows users to decide whether to show recent searches in Safari.