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 for creating a family account on Grab

Instructions for creating a family account on Grab

Grab Family Account is now available to users aged 18 and above. You can add up to 9 members to your Grab family account.

Instructions for getting group link on Telegram

Instructions for getting group link on Telegram

Each chat group on Telegram will have its own group link. When people click on the group, they will have the option to join the group on Telegram immediately.

Instructions to turn videos into beautiful wallpapers on Android phones

Instructions to turn videos into beautiful wallpapers on Android phones

Are you bored with static wallpapers on your phone? Try this method of turning videos into beautiful wallpapers for Android.

How to update iPhone to the latest iOS version

How to update iPhone to the latest iOS version

Updating your iPhone software (iOS) is a good idea. Updates are available for free from Apple. They apply the latest features and security fixes to your iPhone. Here's how to update your iPhone to the latest version of iOS.

Instructions for limiting iPhone speaker volume

Instructions for limiting iPhone speaker volume

iOS 18.2 brings an option to limit iPhone speaker volume. Users can adjust how loud their iPhone speakers can play songs, videos, and other media.

Instructions to turn off File Explorer thumbnails Windows 11

Instructions to turn off File Explorer thumbnails Windows 11

Due to personal privacy or some other reason, many people want to turn off Windows 11 File Explorer thumbnails. Below are instructions to turn off Windows 11 File Explorer thumbnails.

How to reset iPhone to restore factory settings, any iPhone can do it

How to reset iPhone to restore factory settings, any iPhone can do it

Resetting your iPhone is the easiest way to reset your iPhone settings to their defaults. Resetting your iPhone can help you fix a few simple problems. Here are the steps to restore your iPhone to factory settings.

How to create AI radio on YouTube Music

How to create AI radio on YouTube Music

The YouTube Music app features Ask for Music, which helps create AI-powered radio based on each person's custom commands.

Basic guide to using Blooket - an application that creates learning games

Basic guide to using Blooket - an application that creates learning games

Blooket.com is known as an extremely useful educational support platform. Let's explore how to use Blooket through this article with Quantrimang.

Instructions to unpin default folders Windows 11

Instructions to unpin default folders Windows 11

Windows 11 File Explorer includes a number of default folders pinned to the sidebar. If you do not need to use them, you can completely unpin the default folders in File Explorer.

How to enable Notification Cooldown on Android 16

How to enable Notification Cooldown on Android 16

Notification Cooldown Android will gradually reduce the volume and vibration intensity of notifications when you receive too many notifications from the same app at once.

TFT Frost Team Season 12, TFT Frost Build

TFT Frost Team Season 12, TFT Frost Build

DTCL season 12's Iceborn is the most special race and its mechanism is somewhat similar to Sub-Zero in Mortal Kombat.

ScratchJR Maze Game Design Tutorial (Final Post)

ScratchJR Maze Game Design Tutorial (Final Post)

For projects or games in ScratchJR, the start and end screens play an important role in enhancing the completeness of the product.

Instructions for adjusting the size of the Windows 11 scroll bar

Instructions for adjusting the size of the Windows 11 scroll bar

The scroll bar on Windows 11 is compact in size, but many people want to change this size, enlarge the scroll bar to make it easier to see when needed.

How to collaborate on notes in FaceTime

How to collaborate on notes in FaceTime

FaceTime iOS 17 has a collaboration feature in notes to type notes together and track changes as someone types.