Skip to main content
  1. Posts/

How to Use Putty on Windows

··333 words·2 mins·
Tools Ssh Windows X11
Table of Contents

Putty is a powerful and slim ssh tool with rich features. It is widely used to connect to the remote servers. I will summarize some of its settings and usages in this post.

Use X server with putty
#

Putty supports X11 forwarding. To enable this feature, do the following steps:

  • Load a remote session which you want to use GUI application
  • Go to connection->SSH->X11, check the option Enable X11 forwarding (see image below)

  • Go back to Session settings and save the change.

After these settings, you should be able to use X11 forwarding. Of course, you need to install a X server application, e.g., xming and vcxsrv.

How to remember the username and password of session?
#

Short answer: remembering username is possible, but remembering password is impossible by deliberate design.

In order to set a default username for a session. First load the session. Then go to Connection->Data. Fill the username in the text box on the right of Auto-login username (see image below).

How to save the settings for a session
#

This question has confused me for a while. Each time I set up a session, the settings are only valid fro the current session. The next time I open the session, I have to configure it again, which is annoying. The correct steps to save your settings are as follows:

  • Choose a particular session from the session list and click Load button to load it as the current session (the session name will appear in the text box under Saved Sessions)

  • Change to other settings page and set up the session.
  • Go back to the Session page and click Save button to save your settings.

How to start a session directly from the command line
#

First make sure that putty executable has been added to your system PATH. Then use the following syntax:

putty -load "<session_name>" 

to open a session directly from command line. <session_name> must be a valid session name.


References
#

Related

Execellent Development Experience with Cygwin and Mintty Terminal on Windows 10
··556 words·3 mins
Tools Windows Ssh Mintty Cygwin
Set up X11 Forwarding with Git for Windows (git-bash)
··453 words·3 mins
Technique Windows Ssh X11
Display Image with Pillow inside Ubuntu on Windows
··268 words·2 mins
Note PIL Windows Python X11 WSL Ubuntu