SSH support for Ghostty

I was having a similar issues with Ghostty
the fix for me was on my mac in the ssh config file ~/.ssh/config adding

Host *
  SetEnv TERM=xterm-256color

now the backspace key works as intended