Ghostty SSH input issues are caused by missing terminfo on the remote host
When I SSH'd into Ubuntu from Ghostty, backspace didn't work and cursor movement was broken. Turns out the remote host didn't have the xterm-ghostty terminfo installed. Ghostty sets TERM=xterm-ghostty by default, and without the matching terminfo on the remote side, terminal control sequences get misinterpreted.
Adding this to the Ghostty config fixes it automatically on SSH:
shell-integration-features = ssh-terminfo,ssh-envHere's what each option does:
ssh-terminfo— Automatically installs thexterm-ghosttyterminfo on the remote host during the first SSH connectionssh-env— Falls back toTERM=xterm-256colorif the terminfo installation fails
With both set, hosts that accept the terminfo get native support, and the rest gracefully fall back to xterm-256color.
