Why does some key combinations not work over ssh?
-
Come to think of it I sometimes also run into problems with certain keys like @ or | and have to use the alt+64 or alt+124 instead which works.
I also run in cygwin sometimes.
-
@Pete-S said in Why does some key combinations not work over ssh?:
I'm a fan of mc which uses some of these. For instance alt+enter or ctrl-enter copies the current filename to the command line.
Sure, but are you using MC through SSH?
When do SSH and MC coincide? You can use SSH as a VPN tunnel to access MC remotely. You can open MC to a machine and open an SSH session from there.
-
@scottalanmiller said in Why does some key combinations not work over ssh?:
@Pete-S said in Why does some key combinations not work over ssh?:
I'm a fan of mc which uses some of these. For instance alt+enter or ctrl-enter copies the current filename to the command line.
Sure, but are you using MC through SSH?
Yes, connect with ssh and start mc.
Or sometimes use mc's remote shell link but that is just for file transfer.
-
@Pete-S said in Why does some key combinations not work over ssh?:
I'm a fan of mc which uses some of these. For instance alt+enter or ctrl-enter copies the current filename to the command line.
I just tried those on MC and they didn't do anything.
-
@Pete-S said in Why does some key combinations not work over ssh?:
Or sometimes use mc's remote shell link but that is just for file transfer
MC doesn't have any SSH, though. AFAIK
-
@scottalanmiller said in Why does some key combinations not work over ssh?:
@Pete-S said in Why does some key combinations not work over ssh?:
I'm a fan of mc which uses some of these. For instance alt+enter or ctrl-enter copies the current filename to the command line.
I just tried those on MC and they didn't do anything.
Then you have the same problem as I do.
-
@Pete-S said in Why does some key combinations not work over ssh?:
@scottalanmiller said in Why does some key combinations not work over ssh?:
@Pete-S said in Why does some key combinations not work over ssh?:
I'm a fan of mc which uses some of these. For instance alt+enter or ctrl-enter copies the current filename to the command line.
I just tried those on MC and they didn't do anything.
Then you have the same problem as I do.
But I'm not using SSH. I'm only using MC.
-
Can't be a BASH issue because what you are describing is just a copy/paste mechanism that happens as keystrokes to BASH and to SSH. So wherever it is or isn't happening is unrelated to those.
-
@scottalanmiller said in Why does some key combinations not work over ssh?:
@Pete-S said in Why does some key combinations not work over ssh?:
@scottalanmiller said in Why does some key combinations not work over ssh?:
@Pete-S said in Why does some key combinations not work over ssh?:
I'm a fan of mc which uses some of these. For instance alt+enter or ctrl-enter copies the current filename to the command line.
I just tried those on MC and they didn't do anything.
Then you have the same problem as I do.
But I'm not using SSH. I'm only using MC.
So you are you running MC on your local machine? Those key combos should work then.
-
@Pete-S said in Why does some key combinations not work over ssh?:
@scottalanmiller said in Why does some key combinations not work over ssh?:
@Pete-S said in Why does some key combinations not work over ssh?:
@scottalanmiller said in Why does some key combinations not work over ssh?:
@Pete-S said in Why does some key combinations not work over ssh?:
I'm a fan of mc which uses some of these. For instance alt+enter or ctrl-enter copies the current filename to the command line.
I just tried those on MC and they didn't do anything.
Then you have the same problem as I do.
But I'm not using SSH. I'm only using MC.
So you are you running MC on your local machine? Those key combos should work then.
Correct, that's almost always where I run it. And the key combos do nothing.
-
Key combos are normally associated with the operating system or application. But MC is just a website. So normally it would not be able to assign key combinations.
-
Does MC list a set of key combos that they have created? I'm not sure how that can work technically. I Googled it and couldn't find any keys documented as being set by it.
-
@scottalanmiller said in Why does some key combinations not work over ssh?:
Does MC list a set of key combos that they have created? I'm not sure how that can work technically. I Googled it and couldn't find any keys documented as being set by it.
mc as in midnight commander.
https://midnight-commander.org/wiki/doc/filePanels/hotkeys -
OH!!!! Not MeshCentral. We talk about MC so often, it never occurred to me that it would be something else.
-
Well that just changes everything and makes SO much more sense now.
-
@scottalanmiller said in Why does some key combinations not work over ssh?:
OH!!!! Not MeshCentral. We talk about MC so often, it never occurred to me that it would be something else.
That's why I used mc instead of MC
-
@Pete-S said in Why does some key combinations not work over ssh?:
@scottalanmiller said in Why does some key combinations not work over ssh?:
OH!!!! Not MeshCentral. We talk about MC so often, it never occurred to me that it would be something else.
That's why I used mc instead of MC
JAJA, okay. You got me there.
"mc" installed so that I can test...
-
Okay, so the commands work locally for me now
-
@scottalanmiller said in Why does some key combinations not work over ssh?:
Okay, so the commands work locally for me now
OK.
I have two identical debian VMs (clones), with openssh, no xwindows.
When I start mc locally and edit a file (press F4 and pick mcedit) I can use the keyboard and move the cursor word by word by using (ctrl+left/right arrow) inside the editor.
This works fine on both.
If I however open an ssh connection from one to the other server and then start mc and edit the same file, the same keyboard combinations (ctrl+left/right arrow) doesn't work.
-
OK, test 2.
Installed two identical Fedora 30 Servers in VMs (clones).
Using mc locally and edit a file => ctrl+left/right arrow works.
SSH to the other server and start mc and edit same file => ctrl+left/right arrow doesn't work.
So the results are the same as on the debian servers. Are some keyboard "codes" lost over ssh, or is there something else going on?