Taskbar title and tab title of currently logged server over ssh #12730

Closed
opened 2026-01-31 03:23:17 +00:00 by claunia · 4 comments
Owner

Originally created by @marbaa on GitHub (Feb 25, 2021).

Hi there,

documentation is not very rich about it. Here is the scenario.

I start up Debian WSL1 distro, taskbar and tab title shows user@host:pwd format. Thats good. If I do ssh to another server, title is not changed to newly logged server but still shows the title from WSL distro.

Am I doing something wrong or Windows Terminal does not have feature that will change tab/taskbar title whereever I do ssh to some server?

Originally created by @marbaa on GitHub (Feb 25, 2021). Hi there, documentation is not very rich about it. Here is the scenario. I start up Debian WSL1 distro, taskbar and tab title shows user@host:pwd format. Thats good. If I do ssh to another server, title is not changed to newly logged server but still shows the title from WSL distro. Am I doing something wrong or Windows Terminal does not have feature that will change tab/taskbar title whereever I do ssh to some server?
claunia added the Issue-QuestionNeeds-TriageNeeds-Tag-FixNeeds-Attention labels 2026-01-31 03:23:18 +00:00
Author
Owner

@KalleOlaviNiemitalo commented on GitHub (Feb 25, 2021):

Windows Terminal does not itself try to detect that you ssh to a server. Instead, the server has to ask Windows Terminal to change the tab title. See Tutorial: Configure tab titles in Windows Terminal.

@KalleOlaviNiemitalo commented on GitHub (Feb 25, 2021): Windows Terminal does not itself try to detect that you ssh to a server. Instead, the server has to ask Windows Terminal to change the tab title. See [Tutorial: Configure tab titles in Windows Terminal](<https://docs.microsoft.com/windows/terminal/tutorials/tab-title>).
Author
Owner

@zadjii-msft commented on GitHub (Feb 25, 2021):

Already, when the terminal is showing the user@host:pwd text, that's the local WSL instance changing the title to display that text. I'm guessing that your remote shell isn't configured to change the title as part of the prompt. What shell are you using on the remote server?

@zadjii-msft commented on GitHub (Feb 25, 2021): Already, when the terminal is showing the `user@host:pwd` text, that's the local WSL instance changing the title to display that text. I'm guessing that your remote shell isn't configured to change the title as part of the prompt. What shell are you using on the remote server?
Author
Owner

@marbaa commented on GitHub (Feb 26, 2021):

Actually it is working as I expected. I was just testing it on server which had somehow corrupted .bashrc. When I made ssh to another from that corrupted server, title was changed to actual server, as expected.

@marbaa commented on GitHub (Feb 26, 2021): Actually it is working as I expected. I was just testing it on server which had somehow corrupted .bashrc. When I made ssh to another from that corrupted server, title was changed to actual server, as expected.
Author
Owner

@DHowett commented on GitHub (Feb 26, 2021):

Thanks for letting us know.

@DHowett commented on GitHub (Feb 26, 2021): Thanks for letting us know.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#12730