Home/end keys work incorrectly inside SSH shell

Resolved

Home/end keys work incorrectly inside SSH shell

avatar

Hello,

For whatever reason when I use SSH shell inside Remote Desktop and use Home/End keys I'm using different behavior compared to command prompt. There seems something being added in RDM which is not inside command prompt.

From RDM

PS /home/cloudadmin> [COnsole]::ReadKey()                                                      

KeyChar    Key Modifiers
-------    --- ---------
      [0m Escape         0


From command prompt

PS /home/cloudadmin> [console]::Readkey()

KeyChar    Key Modifiers
-------    --- ---------
       Escape         0


All Comments (18)

avatar

Hello,

I will check with the engineering department and come back to you!

Best Regards,

Etienne Lord

avatar

Hello,

After speaking with the engineering department, they believe that this is the normal behavior. You should get the same result if you try to connect to Putty/VT100/xTerm via SSH.

Best Regards,

Etienne Lord

avatar

I do not get this result when connecting from command line. I attached screenshot in original message showing that.

avatar

Hello,

Sorry for the confusion, I meant it in the sense that is it most likely a normal behavior for SSH in general. If you try to connect to the same session using another SSH technology, you will most likely have the same behavior if you give it a try. If it's not the case, let us know!

Best Regards,

Etienne Lord

avatar

Yes, I connected via SSH from command prompt instead of connecting via Remote Desktop. What you see in second screenshot is me open cmd.exe and typing `ssh username@hostname.com` and not seeing that behavior.

avatar

Hello,

I will look into it with the engineering department.

Best Regards,

Etienne Lord

avatar

Hello,

Could you give it a try with the following option : forum image

Best Regards,

Etienne Lord

avatar

This did not fix an issue. Do you or engineering not seeing the same issue as I do? It's very simple to reproduce as you can see.
Just SSH into any server with powershell 7.x installed and execute

`[COnsole]::ReadKey()`

avatar

Hello,

Thank you, we are looking into it!

Best Regards,

Etienne Lord

avatar

Hello,

We are not able to recreate the issue on our side, what is your Window version that you are running and what type of server are you connecting to?

Best Regards,

Etienne Lord

avatar

Ubuntu 20.04.4 LTS and local version of Windows is 21H2. Remote powershell version is
PS /home/cloudadmin> $PSVersionTable

Name Value
---- -----
PSVersion 7.2.1
PSEdition Core
GitCommitId 7.2.1
OS Linux 5.11.0-1028-oracle #31~20.04.1-Ubuntu SMP Wed Jan 26 14:20:52 UTC 2022
Platform Unix
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
WSManStackVersion 3.0

avatar

You can login yourself to remote host and verify this

ssh avo@152.70.154.233
avatar

Hello,

Thank you for the information, I will have to open a ticket beforehand, from there we will be able to do some test. Keep you updated on that!

Best Regards,

Etienne Lord

avatar

Hello,

We were able to reproduce the issue with the session you provided, a ticket is open for a fix.

Best Regards,

Etienne Lord

avatar

Hi there are any solutions for this?

avatar

Hello,

Could you confirm the Remote Desktop Manager version that you are using?

Best regards,

Etienne Lord

avatar

Version 2023.3.20.0

avatar

Hello,

Thank you, I will check back with the Development team for an update!

Best regards,

Etienne Lord