• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 561
  • Last Modified:

Putty problem

i have a small issue but major issue for me

The putty window title is deafults to one ip address xxx.xx.xxx.xx  when ever i open a new session.
I need to change the window title again and again.

Is there any process to change the window title defaults to my hostname or ipaddress of current session.

Changing every time the window title is becoming an issue for me.  Can you please help me on this.

The problem occurs when i installed a putty. Previously, it is not like that.

This is on Windows operating system.

Help me plz...
2 Solutions
You should be able to save the Sessions...  Pease provide a screen shot of your putty.
The change in the name is a function of the shell which issues the "control" set that updates the title of the window?  What is the issue that the change in title creates?
DavidSenior Oracle Database AdministratorCommented:
By default, PuTTY only uses the server-supplied window title, and ignores the icon title entirely. If for some reason you want to see both titles, check the box marked ‘Separate window and icon titles’. If you do this, PuTTY's window title and Taskbar caption will change into the server-supplied icon title if you minimise the PuTTY window, and change back to the server-supplied window title if you restore it. (If the server has not bothered to supply a window or icon title, none of this will happen.)

source: http://the.earth.li/~sgtatham/putty/0.58/htmldoc/Chapter4.html#config-title
Cloud Class® Course: Python 3 Fundamentals

This course will teach participants about installing and configuring Python, syntax, importing, statements, types, strings, booleans, files, lists, tuples, comprehensions, functions, and classes.

gopiseraAuthor Commented:

If i opened serveral window.  It will be difficult if it is of same name.      Previously, it will be of ipaddress of the server.
Right, now it is of constant ipaddress.

Please see the screen shot...

Any different servers i opened.  It will show the same ipaddress.

Every time, i have to go to the settings and need to change to the current ipadreess..  Big hell..

Help me on this please

You can use screen if that is an option i.e. connect to one server and then use screen to create connections to the other servers.  ctrl-A lets you set the screen's Name.


The thing that works,
PROMPT_COMMAND='echo -ne "\033]0;"myWindowTitle"\007"'

The problem is if the shell to which you jump is not bash, or the data does not come back.
PROMPT_COMMAND='echo -ne "\033]0;${USER}@${HOSTNAME%%.*}:${PWD/#$HOME/~}"; echo -ne "\007"'

gopiseraAuthor Commented:
The answer helped me in finding out the solution for my question indirectly.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: Certified Penetration Testing

This CPTE Certified Penetration Testing Engineer course covers everything you need to know about becoming a Certified Penetration Testing Engineer. Career Path: Professional roles include Ethical Hackers, Security Consultants, System Administrators, and Chief Security Officers.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now