Skip to content

MotD duplicated when called from PowerShell Core #1253

Closed

Description

Please answer the following

If it is a terminal issue then please go through wiki
https://github.com/PowerShell/Win32-OpenSSH/wiki/TTY-PTY-support-in-Windows-OpenSSH

"OpenSSH for Windows" version
7.7.2.0

Server OperatingSystem
Ubuntu 16.04.5 LTS (Note: this issue doesn't seem to affect Ubuntu 18.04. Very weird.)

Client OperatingSystem
Windows 10 Enterprise

What is failing
MotD is displayed twice when calling from PowerShell Core 6.1.0. No such issue in PowerShell 5.1 from Windows 10.

Expected output
Display MotD once when logging in.

Actual output
Display MotD twice when logging in.

Activity

  1. FranklinYu commented on Sep 21, 2018

    @FranklinYu
    Author

    If I use a build introduced in PowerShell/openssh-portable#338 then PowerShell 5.1 is also affected. Shall this hold that PR back?

  2. bagajjal commented on Sep 21, 2018

    @bagajjal
    Collaborator

    Are you sure it's win32-openssh ssh client issue?
    Have you tried the other ssh clients (WSL, Putty)?

    I didn't see this issue when I tried to login from win10 machine to Ubuntu 16.04.5 LTS

    image

  3. DHowett-MSFT commented on Sep 22, 2018

    @DHowett-MSFT

    I see this on roughly 80% of connections to all servers. It's probably a clientside buffer reuse issue, not a server issue.

  4. FranklinYu commented on Sep 24, 2018

    @FranklinYu
    Author

    bagajjal PuTTY and the SSH from Git Bash works with the same servers without issue. If you are not able to reproduce it, would you like a Vagrantfile showing the issue? I can try to come up with one.

    There is some interesting issue with one of the servers. Part of MotD is duplicated. Not sure if this helps debugging.

  5. bagajjal commented on Sep 24, 2018

    @bagajjal
    Collaborator

    Franklin Yu (@FranklinYu) - After multiple retries, I am able to repro the issue.
    Will try to fix it for the next release.

  6. added this to the vNext milestone on Sep 24, 2018
  7. janorn commented on Dec 18, 2019

    @janorn

    Any updates?

  8. janorn commented on Dec 18, 2019

    @janorn

    I get a random nr of motd between 1-3.

  9. DHowett-MSFT commented on Jan 17, 2020

    @DHowett-MSFT

    This also happens when the alternate screen buffer is exited (like when vim is closed.)

  10. maertendMSFT commented on Apr 28, 2020

    @maertendMSFT
    Collaborator
  11. modified the milestones: vNext, V8.6.0.0 on May 14, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions