[GH-ISSUE #499] SSH, update screen does not work #1367

Closed
opened 2026-02-28 12:04:00 +03:00 by kerem · 13 comments
Owner

Originally created by @BurtGummer on GitHub (Aug 31, 2023).
Original GitHub issue: https://github.com/1Remote/1Remote/issues/499

Originally assigned to: @VShawn on GitHub.

Version 0.7.2.8 (https://github.com/1Remote/1Remote/releases/tag/0.7.2.8), Windows 10 Pro up2date.

I have 2 SSH-Tabs open, Tab1 and Tab2. If I enter a command in Tab1 and switch to Tab2, wait a time and switch back to Tab1, the tab/window is not updatet:

image

If i mark the output, its updatet:

image

but only the marked text. Any ideas?

I try a new Kitty-version kitty_portable-0.76.1.12.exe and select it in 1Remote, but its the same problem. If I mark the text, the screen updates the text. With putty I have never such problems.

Oh, and the "u" command is a alias for:

aptitude update && aptitude upgrade ; echo "";date;echo ""

Originally created by @BurtGummer on GitHub (Aug 31, 2023). Original GitHub issue: https://github.com/1Remote/1Remote/issues/499 Originally assigned to: @VShawn on GitHub. Version 0.7.2.8 (https://github.com/1Remote/1Remote/releases/tag/0.7.2.8), Windows 10 Pro up2date. I have 2 SSH-Tabs open, Tab1 and Tab2. If I enter a command in Tab1 and switch to Tab2, wait a time and switch back to Tab1, the tab/window is not updatet: ![image](https://github.com/1Remote/1Remote/assets/1249295/760e14d9-098b-49a8-b9ac-dc1673bfcd8f) If i mark the output, its updatet: ![image](https://github.com/1Remote/1Remote/assets/1249295/9924b892-7212-4400-adab-ab5e8e54189a) but only the marked text. Any ideas? I try a new Kitty-version kitty_portable-0.76.1.12.exe and select it in 1Remote, but its the same problem. If I mark the text, the screen updates the text. With putty I have never such problems. Oh, and the "u" command is a alias for: `aptitude update && aptitude upgrade ; echo "";date;echo ""`
kerem 2026-02-28 12:04:00 +03:00
Author
Owner

@BurtGummer commented on GitHub (Aug 31, 2023):

Maybe one more example, I enter the command and switch to a other Tab, wait until the command is ready and switch back to the last Tab:

image

If I mark the text:

image

<!-- gh-comment-id:1700556375 --> @BurtGummer commented on GitHub (Aug 31, 2023): Maybe one more example, I enter the command and switch to a other Tab, wait until the command is ready and switch back to the last Tab: ![image](https://github.com/1Remote/1Remote/assets/1249295/dd9913eb-a1ae-4131-a209-e2eff94bc7a6) If I mark the text: ![image](https://github.com/1Remote/1Remote/assets/1249295/66c8886d-4d0d-47f2-82d4-a5bec3ecd618)
Author
Owner

@VShawn commented on GitHub (Aug 31, 2023):

I have noticed this issue, but I haven't figured out the root cause yet. Since I'm an occasional SSH user, my investigation progress is quite slow.

<!-- gh-comment-id:1700928124 --> @VShawn commented on GitHub (Aug 31, 2023): I have noticed this issue, but I haven't figured out the root cause yet. Since I'm an occasional SSH user, my investigation progress is quite slow.
Author
Owner

@BurtGummer commented on GitHub (Sep 1, 2023):

Is there anything I can do to help solve the problem? Otherwise 1Remote would be useless for me, which would be a real pity.

Same problem with version 1Remote-1.0.0.0-beta.06-net6-x64-nightly-20230831-6ac680

<!-- gh-comment-id:1702162160 --> @BurtGummer commented on GitHub (Sep 1, 2023): Is there anything I can do to help solve the problem? Otherwise 1Remote would be useless for me, which would be a real pity. Same problem with version 1Remote-1.0.0.0-beta.06-net6-x64-nightly-20230831-6ac680
Author
Owner

@VShawn commented on GitHub (Sep 1, 2023):

This issue often occurs when opening two SSH sessions, and I have always suspected that it is caused by Kitty being placed in the background. I haven't encountered this problem when only one SSH session is open.

and i have not fix the problem on latest version yet.

<!-- gh-comment-id:1702482754 --> @VShawn commented on GitHub (Sep 1, 2023): This issue often occurs when opening two SSH sessions, and I have always suspected that it is caused by Kitty being placed in the background. I haven't encountered this problem when only one SSH session is open. and i have not fix the problem on latest version yet.
Author
Owner

@VShawn commented on GitHub (Sep 2, 2023):

I've found that once I use the SetParent API to set the parent window of Kitty to 1REMOTE, and if the SSH session is in the background of the tab, this issue occurs. The point is, if I don't call SetParent, I won't be able to integrate KiTTY into 1REMOTE. I'm planning to look into how mRemoteNG handles this situation.

<!-- gh-comment-id:1703762123 --> @VShawn commented on GitHub (Sep 2, 2023): I've found that once I use the `SetParent` API to set the parent window of Kitty to 1REMOTE, and if the SSH session is in the background of the tab, this issue occurs. The point is, if I don't call `SetParent`, I won't be able to integrate KiTTY into 1REMOTE. I'm planning to look into how mRemoteNG handles this situation.
Author
Owner

@VShawn commented on GitHub (Sep 4, 2023):

After a weekend of investigation, here are the results:

  • Using Kitty as an SSH client and opening multiple SSH sessions simultaneously in the same tab, the SSH session in the background experiences the mentioned bug.
  • Switching to PuTTY resolves the bug and it doesn't occur.
  • The official PuTTY version doesn't have the ability to remove the software's window frame.
    image
  • mRemoteNG has forked the official PuTTY, added some features, and removed the window frame.
  • Switching back to PuTTY from Kitty may result in losing some CLI commands, especially -cmd: to define a startup auto-command. http://www.9bis.net/kitty/#!pages/CommandLine.md

@BurtGummer Can you help test if putty is properly?

just donwload putty and creat a runner

image

image

<!-- gh-comment-id:1704548927 --> @VShawn commented on GitHub (Sep 4, 2023): After a weekend of investigation, here are the results: - Using Kitty as an SSH client and opening multiple SSH sessions simultaneously in the same tab, the SSH session in the background experiences the mentioned bug. - Switching to PuTTY resolves the bug and it doesn't occur. - The official PuTTY version doesn't have the ability to remove the software's window frame. ![image](https://github.com/1Remote/1Remote/assets/10143738/4c90a017-8381-4686-9ddd-0744b9f31d37) - mRemoteNG has forked the official PuTTY, added some features, and removed the window frame. - Switching back to PuTTY from Kitty may result in losing some CLI commands, especially `-cmd: to define a startup auto-command`. http://www.9bis.net/kitty/#!pages/CommandLine.md @BurtGummer Can you help test if putty is properly? just donwload putty and creat a runner ![image](https://github.com/1Remote/1Remote/assets/10143738/71eb606a-981d-4b6b-a098-a6cad768a2d8) ![image](https://github.com/1Remote/1Remote/assets/10143738/e7357020-0ea8-4dc6-939d-87d8075f9ef8)
Author
Owner

@BurtGummer commented on GitHub (Sep 4, 2023):

Thank you very much!
I setup a new runner with PuttyNG, but it works only if I store the password from the connection, without password I got:

"Putty Fatal Error
Configured password was not accepted"

image

I only save the username, the passwords I like to store in a Keepass2 container. But with saved passwords, there are no screen tearing anymore.
Maybe we should write a bugreport: https://github.com/cyd01/KiTTY/issues ?

<!-- gh-comment-id:1704915562 --> @BurtGummer commented on GitHub (Sep 4, 2023): Thank you very much! I setup a new runner with PuttyNG, but it works only if I store the password from the connection, without password I got: "Putty Fatal Error Configured password was not accepted" ![image](https://github.com/1Remote/1Remote/assets/1249295/a7b389e7-b4f5-4edb-af98-a18722eea5a2) I only save the username, the passwords I like to store in a Keepass2 container. But with saved passwords, there are no screen tearing anymore. Maybe we should write a bugreport: https://github.com/cyd01/KiTTY/issues ?
Author
Owner

@VShawn commented on GitHub (Nov 4, 2023):

no response from kitty #510 :(

<!-- gh-comment-id:1793320257 --> @VShawn commented on GitHub (Nov 4, 2023): no response from [kitty #510](https://github.com/cyd01/KiTTY/issues/510) :(
Author
Owner

@fs30000 commented on GitHub (Nov 16, 2023):

It is a Kitty problem. I have the same issue using MTPutty. I opened an issue, just like you, but also no reply.

https://github.com/cyd01/KiTTY/issues/514

<!-- gh-comment-id:1814363139 --> @fs30000 commented on GitHub (Nov 16, 2023): It is a Kitty problem. I have the same issue using MTPutty. I opened an issue, just like you, but also no reply. https://github.com/cyd01/KiTTY/issues/514
Author
Owner

@goldenbull commented on GitHub (Mar 12, 2025):

seems putty is still under active development: https://git.tartarus.org/?p=simon/putty.git
but kitty is dead 😰 (not updated for two years)

How about keep up with putty and do some extra work similar as mRemoteNG? I could see if I can do something...

<!-- gh-comment-id:2716812925 --> @goldenbull commented on GitHub (Mar 12, 2025): seems putty is still under active development: https://git.tartarus.org/?p=simon/putty.git but kitty is dead 😰 (not updated for two years) How about keep up with putty and do some extra work similar as mRemoteNG? I could see if I can do something...
Author
Owner

@VShawn commented on GitHub (Mar 13, 2025):

The main reason why I didn't choose Putty is that at that time putty did not support auto run commands after log in. I'm not sure if Putty it now.

Image

<!-- gh-comment-id:2720175900 --> @VShawn commented on GitHub (Mar 13, 2025): The main reason why I didn't choose Putty is that at that time putty did not support auto run commands after log in. I'm not sure if Putty it now. ![Image](https://github.com/user-attachments/assets/6adfc3fc-6566-4990-a357-c8a0f84fdd46)
Author
Owner

@goldenbull commented on GitHub (Mar 14, 2025):

putty does not support auto run command yet.
I tried to use PuttyNG.exe from mRemoteNG, so far so good. It could be an alternative if do not need auto run commands 😄

<!-- gh-comment-id:2723574209 --> @goldenbull commented on GitHub (Mar 14, 2025): putty does not support auto run command yet. I tried to use PuttyNG.exe from mRemoteNG, so far so good. It could be an alternative if do not need auto run commands 😄
Author
Owner

@VShawn commented on GitHub (Oct 19, 2025):

close the ticket since switched to putty

<!-- gh-comment-id:3419179430 --> @VShawn commented on GitHub (Oct 19, 2025): close the ticket since switched to putty
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/1Remote#1367
No description provided.