-
Notifications
You must be signed in to change notification settings - Fork 743
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Issues observed with PowerShell on Server-Side #1258
Comments
What terminal emulator are you using? In theory the specific shell should not matter, but I admit I don't know how powershell interacts with its terminal emulator. |
@achernya I have observed the issues I described while using
|
Do you have screenshots from, say, xterm, rxvt-unicode, gnome-terminal, or Terminal.app? Preferably showing side-by-side of ssh and mosh? Those are the terminals I am most familiar with. I'd normally ask for the output of |
Also, what version of mosh, on both the client and server? |
So I just found that adding
If you'd like me to, I can send these screenshots but with figuring out the
1.4.0 (on both)
Funny enough, I use PowerShell in |
I haven't been able to reproduce this, using kitty v0.21.2 and PowerShell Core 7.3.2 on Debian. I don't have PowerShell yet as my default shell, so I tried to reproduce with:
I don't really understand why
(Hopefully the same stuff gets injected to your client). Then exit powershell and send us the |
Attached is pwsh.script (had to rename it to .txt to upload it to GitHub) |
To me, it looked like the same stuff was injected after |
Interestingly enough the script recording shows that |
Yeah, that would make sense to me. I was thinking it could be my PowerShell profile, but upon logging into a server with PowerShell Core as it's default shell without any of my PowerShell profile stuff setup (so just using the default PowerShell profile), I seem to experience the same issue. In the meantime, as a workaround I have created a PowerShell function to inject If there's anymore information I can provide to help drill into this further please let me know and I'd be happy to provide it. I'm not too sure how to move forward with this on my end. |
I guess it could also be something that runs before PowerShell, but if you don't see these weird characters with another shell (say, I'm a bit confused as to what Anyway, I recognize that you may no longer want to spend time continuing to debug an issue for which you have a workaround. I would be curious to know if you see this issue with |
Nothing on my client side seems to contribute to this. I only see this when PowerShell is my default shell on the server-side. When PowerShell is not my default shell, I do not experience this issue.
I definitely would love to help find a fix to this rather than having to workaround this, so keep the suggestions coming. :) |
How about getting an strace dump to confirm (or refute) the theory that it's |
also, you said specifically that you see this when PowerShell is your default shell:
|
So here's how it looks when I login with
Same issues as I described:
To test this, I ran this command (let me know if there is a better way):
No issues: To test this, I ran this command (let me know if there is a better way):
Can you provide an example command? I'm not sure if you want |
ok, this is even more mysterious. If we see the weird stuff even when powershell isn't used, then maybe it's not powershell's fault at all. I think we need an strace on the server, to see what's printing this (assuming that someone on the server-side is printing it). So something like:
Then send all the strace output files. What I'm looking to do here is identify exactly what process is writing the |
@heywoodlh Any news on this? |
@eminence sorry for the delay, got distracted with life 😄 Just FYI, this is me strace.output.849741.txt |
I use PowerShell Core (currently 7.3.2) on my servers (NixOS, Arch Linux) running OpenSSH version
OpenSSH_9.2p1, OpenSSL 3.0.8 7 Feb 2023
.When I use
mosh
overssh
with PowerShell I observe two things I don't encounter with a normalssh
client:Is there any way to get
mosh
to play more nicely with PowerShell (or vice versa) -- I'd love to have these issues resolved. I am not sure what further information to provide, so please let me know what additional information would be useful in diagnosing the exact issue.The text was updated successfully, but these errors were encountered: