I have installed Terminator in my linux Mint on xfce. When I open it, the title bar is correct:

enter image description here

but, when I log into a remote server via ssh, the title bar doesn't update:

enter image description here

How can I fix the title?

Please note that I work with over 1k servers and it's not doable modifying anything server-side.

2 Answers 2


If you are using bash, add to $HOME/.bashrc of your server the next line:

export PROMPT_COMMAND="printf \"\033]0;%s@%s:%s\007\" \"${USER}\" \"${HOSTNAME%%.*}\" \"${PWD/#$HOME/~}\""
  • That's not doable, as I work with over 1k servers...
    – ludiegu
    Nov 18, 2016 at 6:49
  • 1
    Wow, that a new and interesting fact! I suggest updating the question, so new answers can take it into account. Nov 18, 2016 at 8:03

You could do this with a client-side script that sets the title of the target and does the ssh, e.g.,

printf '\033]0;%s\007' "$*"
ssh "$@"
printf '\033]0;%s\007' "(local machine)"

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.