window title in mate terminal not change after I logout from ssh

Bug #1932980 reported by Mas Drajat
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
mate-terminal (Ubuntu)
New
Undecided
Unassigned
openssh (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

I use Ubuntu Mate 20.04. I always update my system. When, I open mate terminal and login into my server via ssh, the window title is change to my server <username>@<server-hostname>. But, its not change after I logout. In this report I attach a proof. Thanks.

Tags: focal
Revision history for this message
Mas Drajat (drajathasan20) wrote :
Norbert (nrbrtx)
tags: added: focal
Revision history for this message
Norbert (nrbrtx) wrote :

My test results with MATE Terminal and two different SSH servers are below:

* When I connect to 1st SSH server (openssh 7.6p1-4ubuntu0.3, Ubuntu 18.04 LTS amd64) from any Ubuntu MATE version (from 12.04 LTS to 21.04) I see even worse situation - window title does not change on SSH-login and after SSH-logout.
* When I connect to 2nd SSH server (openssh 6.7p1-5+deb8u8, Debian 8 armhf) from any Ubuntu MATE version (from 12.04 LTS to 21.04) I see that window title is changes correctly.

So I suppose that there is some incompatibility between SSH client and SSH server which incorrectly report window title (actually prompt or $PS1) change.

Please provide some info about your SSH server (its name, version, OS).

Revision history for this message
Mas Drajat (drajathasan20) wrote :

At first post, I connect to Centos 7 with version 7.4p1.

Now, I try to test like you do.

1st, I logged into Debian 10.10 server via ssh with version 1:7.9p1-10+deb10u2. After that I log out, and my Window terminal isn't change.

2nd, I login into Centos 7 server use same terminal with 1st login, the window title change to new title via ssh with version 7.4p1. After I log out, the window title still use 2nd <user>@<hostname> (Centos7).

configuration about $PS1 is so impactly with my problem?

Revision history for this message
Norbert (nrbrtx) wrote :

So it really depends on OpenSSH server version.

I'm not sure how to correctly debug this issue, so I have added openssh package to this bug-report to get some comments from them.

Revision history for this message
Sergio Durigan Junior (sergiodj) wrote :

Thank you for the bug report.

It seems to me that this is a MATE-specific configuration, and not something related to openssh. When you ssh into a host, ssh takes control of the terminal and the PS1 variable becomes something else, which is reflected on the window title. When you log out of the ssh connection, PS1 doesn't get overwritten again because the control is now back to your shell.

Maybe there are ways to force the window title to be "refreshed" when you disconnect, but I don't know offhand, sorry.

I'm setting the bug as Invalid for openssh.

Changed in openssh (Ubuntu):
status: New → Invalid
no longer affects: ubuntu-mate
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Bug attachments

Remote bug watches

Bug watches keep track of this bug in other bug trackers.