I encountered, for some time now, problems when connecting over ssh from my mac to a linux machine.
These problems were related to backspace/delete key in both nano and zsh the solutions I found today are :
For zsh type :
echo "bindkey ^? backward-delete-char" >> ~/.zshrc echo "bindkey ^[[3~ delete-char" >> ~/.zshrc
WARNING : you should type these commands not copy/paste them,
^? sequence is obtained using
ctrl+v then [backspace key].
For nano type :
## Fix Backspace/Delete confusion problem. echo "set rebinddelete" >> ~/.nanorc
All should works now.