Gnome terminal is not showing ssh commands in title bar

I can assure you that gnome-terminal this title bar display behavior changed after Fedora 40 update.

I have no problem with freshly installed Fedora 40. So, the problem is inside Fedora 40.

I believe you, I have since your first post.

Tracking down what changed and on what system is the hard part to figure out.

Just to be precise, it is working fine when accessing (ssh) Red Hat Linux servers.

I guess this we got also. As explained above the Title can be overwritten by script. So if you access RH server and this is as like there is no script changing it.
You might also have to check if the .bashrc of the servers you log in not overwrites the title. You mentioned oracle servers, so maybe you have to search also there.

As long as you not can tell us what the update included it is difficult to tell what is wrong. Try to find out with sudo dnf history what changed and with sudo dnf history info Nr_of_change

The title setting code should be in the .bash_profile not the .bashrc so that it is only done once. Bash runs the .bashrc often in a session.

1 Like

We have .profile in Solaris which hasn’t been changed for years.

I think the issue is not related with outside servers.

If you try for example:
$ cd /etc: it works
$ ssh xxx, it will not work. Before update, it works.

This feature plays an important role for me. I am concerned about it because the title bar tabs tell me which hostname I want to select.

You could write a bash script to set the title and run ssh.
Something like this.

#!/usr/bin/bash
printf "\033]0;ssh $*\007"
ssh "${@}"

Copy the contents into a file say “myssh”, chmod +x that file.
Then you can do your ssh like this ./myssh user@host

Edit: fix bad use of smart quotes.

I meant it more as a workaround till you find the real culprit of the issue.

$ more myssh 
#!/usr/bin/bash
printf "\033]0;ssh $*\007"
ssh "${@}"
$ ./myssh user@host
ssh: Could not resolve hostname host\342\200\235: Name or service not known
$

The title bar shows the command “ssh user@host”. This is what I want.

Host is always appended with “\342\200\235” all the time causing the command to fail even with valid hostnames.

Oh sorry, my error, when I posted the code smart quotes where used.

Replace with this line.

ssh "${@}"

It’s working correctly now.

This is what it should be out-of-the-box.

That is a person choice, for me changing the title as you do is something I would not wish to do.

I agree, but why it has changed after update? Is that a new behavior or a bug?

I do not know, but I favor it being an intended change not a bug.
But where that change was made I’m not clear on.

Using your own script to set the title free you from any such change in the future.

I changed it as it should be.

We will never now if you not tell us what got updated. And this way we also not are able to make a bug request if it would be one.

I installed Fedora 40 fresh.

Gnome-terminal title bar was showing ssh commands.

Afterwards, I fully updated the system: dnf update. It updated everything.

Title bar is not showing ssh commands after the update. I couldn’t tell which rpm update affected it.

Ok I was checking the Release change set for F40.
I could imagine that the removal of an old OpenSSL_1.1package could have caused an overwrite of config files?! That is just a guess.

Releases/40/ChangeSet - Fedora Project Wiki

So openssl package has been removed from the very fresh version of Fedora 40, right?

My finding says that fresh version of Fedora has no problem with gnome terminal title bar showing of ssh command. It is the following updates that caused this issue.

OpenSSL is for TLS etc, aka HTTPS: nothing to do with OpenSSH.

1 Like

Is this problem reproducible?
I cannot reproduce it on my test setup.
Perhaps my setup is too customized.
Otherwise it looks like a misconfiguration.