• Email Address: forum@outsourcepath.com
English
  • English

Changing PuTTY window title to the name of the loaded session - How to do it ?


Having troubles changing the Title name of Putty for an active session?

This guide will help you.


PuTTY is a simple but Powerful terminal emulator application which can act as a client for the SSH, Telnet, rlogin, and raw TCP computing protocols. The word "PuTTY" basically have no meaning. In essence, 'tty' is sometimes used to refer to the Unix terminals, as an acronym for 'teletype'.

Here at Outsource Path, as part of our Server Management Services, we regularly help our Customers to perform Linux related tasks.

In this context, we shall look into how to modify the title of an active session on Putty.


The idea of changing putty session window title?

Sometimes, it is difficult to memorize the putty session in cases where a proper title is not configured. Therefore, it is necessary to implement this change to give a permanent windows title for a server.

An manual way to do this is to go through the process below;

Simply set the window title manually (Window / Behaviour / Window title).


A better method of changing PuTTY's window title for a loaded session?

1. Manually via the PuTTY GUI

To change the PuTTY SSH session window title (one by one manually by the PuTTY GUI):


For Windows & Debian, simply follow the steps below;

i. Load a session from PuTTY.

ii. On left side tree menu, click on: Window - Behaviour.

iii. On the right panel, in the Window title text box enter your title.

iv. Save the session.


Alternatively, you can also change Putty Session title name by doing the following;

a. Go to the aforementioned Window/Behaviour/Window Title setting and put in a title that makes sense to you.

b. Go to the Terminal/Features settings and check off the Disable remote-controlled window title changing box.


2. Changing PuTTY title name via Command line

To change the PuTTY SSH session window title (for all sessions by command line):


For Debian 8 (Jessie), follow the steps;

i. Go to the folder where PuTTY stores sessions: /home/outsourcepath/.putty/sessions

Note: replace outsourcepath with your username

ii. Assign to parameter WinTitle the saved session file name for each saved session file with something like this:

find . -type f -exec sed -e 's/^WinTitle=/WinTitle=%f/g' {} \;

It works fine if no WinTitle is recorded


For Windows, simply follow the steps below;

i. PuTTY stores sessions in Windows registry HKEY_CURRENT_USER\Software\outsourcepath\PuTTY\Sessions

Note: not replace outsourcepath with your username.

ii. You can export this section with a command like this:

C:> regedit /e "%userprofile%\desktop\putty-registry-sessions.reg" HKEY_CURRENT_USER\Software\outsourcepath\PuTTY\Sessions


[Need urgent support to fix Ubuntu errors? We are available to help you today.]

Related Post