Shell prompt repeating when using ssh in terminal #612

Closed
opened 2026-01-30 21:56:51 +00:00 by claunia · 4 comments
Owner

Originally created by @micrat on GitHub (Apr 10, 2019).

Hello, a small bug in ssh under the cmd terminal.
If I open a file (for instance "vi .bashrc"), on exit the prompt displays incorrectly (repeats twice).

This happens only on the windows cmd ssh (left panel in the figure herebelow, evidenced in red).
The WSL console (right panel) behaves correctly. (My windows version in the left panel)
ssh1

Originally created by @micrat on GitHub (Apr 10, 2019). Hello, a small bug in **ssh** under the cmd terminal. If I open a file (for instance "vi .bashrc"), on exit the prompt displays incorrectly (repeats twice). This happens only on the windows cmd ssh (left panel in the figure herebelow, evidenced in red). The WSL console (right panel) behaves correctly. (My windows version in the left panel) ![ssh1](https://user-images.githubusercontent.com/15943390/55887017-10276d80-5bad-11e9-9179-c2e93d0862f4.png)
Author
Owner

@DHowett-MSFT commented on GitHub (Apr 10, 2019):

This is almost certainly related to https://github.com/PowerShell/Win32-OpenSSH/issues/1253.

@DHowett-MSFT commented on GitHub (Apr 10, 2019): This is almost certainly related to https://github.com/PowerShell/Win32-OpenSSH/issues/1253.
Author
Owner

@flyingdutchman commented on GitHub (Mar 12, 2021):

This has been marked as fixed in the PowerShell project but I still have this issue. Any ideas ?

@flyingdutchman commented on GitHub (Mar 12, 2021): This has been marked as fixed in the PowerShell project but I still have this issue. Any ideas ?
Author
Owner

@DHowett commented on GitHub (Mar 12, 2021):

This is going to sound like a repeated comment, but:

Depends. Are you using the bundled 7.7 version of SSH that comes with Windows?

@DHowett commented on GitHub (Mar 12, 2021): This is going to sound like a repeated comment, but: Depends. Are you using the bundled 7.7 version of SSH that comes with Windows?
Author
Owner

@o-sdn-o commented on GitHub (Oct 5, 2025):

This has been marked as fixed in the PowerShell project but I still have this issue. Any ideas ?

This might be fixed in https://github.com/PowerShell/openssh-portable/pull/806

@o-sdn-o commented on GitHub (Oct 5, 2025): > This has been marked as fixed in the PowerShell project but I still have this issue. Any ideas ? This might be fixed in https://github.com/PowerShell/openssh-portable/pull/806
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#612