Nristen's (g)log
2021-06-18

No Backspace in SSH session

I have installed Alpine Linux on my desktop and am using "st" as the terminal emulator with i3 as the window manager. I use "Barrier" to share the same keyboard between three computers and their monitors. Frequently, I will ssh into one of the computers if I need more terminal windows to work with on one of the computers.

I noticed that when I ssh'd from my alpine desktop into my MacBook that backspace did not work.

I found the following solution:

On my MacBook, which is running Zsh, add the following line in ~/.zshrc

export TERM=xterm-256color

After reconnecting via SSH it worked.

before adding this line to .zshrc the TERM variable contained, "st-256color" which seemed to work when sshing into other linux systems but not the MacBook.

Reference Links:

st terminal emulator

Alpine Linux

--------

(g)log

Home