Skip to main content
added 1 character in body
Source Link
user10489
  • 11k
  • 1
  • 15
  • 37

This has nothing to do with ssh and everything to do with your terminal emulator and termostermios on the remote server. (ssh is just between them.)

The problem is that some terminals produce ^? for backspace and some produce ^H and some let you change the default. You can check the settings in your terminal emulator for this.

Similarly, the tty on the server can have its backspace character changed, and there is not really a (single) standard default. You can change it with the stty command. Since you know your terminal is producing ^H, you could change it with stty erase ^h or if you are uncertain what the key is, you can type stty erase and then CtrlV and then press your chosen backspace key and hit return.

It doesn't matter if you change this on the server side or change this in your terminal settings, just make them agree.

Note that shells that implement their own command line editing (like tcsh, bash, zsh, others), they probably accept both keys, but other programs that use standard tty cooked mode will not.

This has nothing to do with ssh and everything to do with your terminal emulator and termos on the remote server. (ssh is just between them.)

The problem is that some terminals produce ^? for backspace and some produce ^H and some let you change the default. You can check the settings in your terminal emulator for this.

Similarly, the tty on the server can have its backspace character changed, and there is not really a (single) standard default. You can change it with the stty command. Since you know your terminal is producing ^H, you could change it with stty erase ^h or if you are uncertain what the key is, you can type stty erase and then CtrlV and then press your chosen backspace key and hit return.

It doesn't matter if you change this on the server side or change this in your terminal settings, just make them agree.

Note that shells that implement their own command line editing (like tcsh, bash, zsh, others), they probably accept both keys, but other programs that use standard tty cooked mode will not.

This has nothing to do with ssh and everything to do with your terminal emulator and termios on the remote server. (ssh is just between them.)

The problem is that some terminals produce ^? for backspace and some produce ^H and some let you change the default. You can check the settings in your terminal emulator for this.

Similarly, the tty on the server can have its backspace character changed, and there is not really a (single) standard default. You can change it with the stty command. Since you know your terminal is producing ^H, you could change it with stty erase ^h or if you are uncertain what the key is, you can type stty erase and then CtrlV and then press your chosen backspace key and hit return.

It doesn't matter if you change this on the server side or change this in your terminal settings, just make them agree.

Note that shells that implement their own command line editing (like tcsh, bash, zsh, others), they probably accept both keys, but other programs that use standard tty cooked mode will not.

added 29 characters in body
Source Link
user10489
  • 11k
  • 1
  • 15
  • 37

This has nothing to do with ssh and everything to do with your terminal emulator and termos on the remote server. (ssh is just between them.)

The problem is that some terminals produce ^? for backspace and some produce ^H and some let you change the default. You can check the settings in your terminal emulator for this.

Similarly, the tty on the server can have its backspace character changed, and there is not really a (single) standard default. You can change it with the stty command. Since you know your terminal is producing ^H, you could change it with stty erase ^h or if you are uncertain what the key is, you can type stty erase and then CtrlV and then press your chosen backspace key and hit return.

It doesn't matter if you change this on the server side or change this in your terminal settings, just make them agree.

Note that shells that implement their own command line editing (like tcsh, bash, zsh, others), they probably accept both keys, but other programs that use standard tty cooked mode will not.

This has nothing to do with ssh and everything to do with your terminal emulator and termos on the remote server.

The problem is that some terminals produce ^? for backspace and some produce ^H and some let you change the default. You can check the settings in your terminal emulator for this.

Similarly, the tty on the server can have its backspace character changed, and there is not really a (single) standard default. You can change it with the stty command. Since you know your terminal is producing ^H, you could change it with stty erase ^h or if you are uncertain what the key is, you can type stty erase and then CtrlV and then press your chosen backspace key and hit return.

It doesn't matter if you change this on the server side or change this in your terminal settings, just make them agree.

Note that shells that implement their own command line editing (like tcsh, bash, zsh, others), they probably accept both keys, but other programs that use standard tty cooked mode will not.

This has nothing to do with ssh and everything to do with your terminal emulator and termos on the remote server. (ssh is just between them.)

The problem is that some terminals produce ^? for backspace and some produce ^H and some let you change the default. You can check the settings in your terminal emulator for this.

Similarly, the tty on the server can have its backspace character changed, and there is not really a (single) standard default. You can change it with the stty command. Since you know your terminal is producing ^H, you could change it with stty erase ^h or if you are uncertain what the key is, you can type stty erase and then CtrlV and then press your chosen backspace key and hit return.

It doesn't matter if you change this on the server side or change this in your terminal settings, just make them agree.

Note that shells that implement their own command line editing (like tcsh, bash, zsh, others), they probably accept both keys, but other programs that use standard tty cooked mode will not.

Source Link
user10489
  • 11k
  • 1
  • 15
  • 37

This has nothing to do with ssh and everything to do with your terminal emulator and termos on the remote server.

The problem is that some terminals produce ^? for backspace and some produce ^H and some let you change the default. You can check the settings in your terminal emulator for this.

Similarly, the tty on the server can have its backspace character changed, and there is not really a (single) standard default. You can change it with the stty command. Since you know your terminal is producing ^H, you could change it with stty erase ^h or if you are uncertain what the key is, you can type stty erase and then CtrlV and then press your chosen backspace key and hit return.

It doesn't matter if you change this on the server side or change this in your terminal settings, just make them agree.

Note that shells that implement their own command line editing (like tcsh, bash, zsh, others), they probably accept both keys, but other programs that use standard tty cooked mode will not.