I’ve often found that after SSHing with iTerm, the delete key mappings are occasionally (well regularly) problematic. This post from Alaska Geeks sorted the problem out straight away in my case :
- Open iTerm and go to Bookmarks > Manage Profiles
- Go to Keyboard Profiles > Global
- Under Mapping click the plus (+) sign.
- In the box select the following: Key: Delete Action: send hex code In the box type the number eight: 8 Click OK.
(Hopefully) the delete key should behave correctly in ssh sessions after this. I’m a little curious about the cause of this problem, as I’ve experienced totally different behaviour on servers that appear to be configured identically, SSHed from the same machine. Ideas & suggestions welcome!