open terminal failed: missing or unsuitable terminal: xterm-kitty
Hi,
I've just installed kitty on my system and it seems to work fine. If I ssh on a server though, tmux gives "open terminal failed: missing or unsuitable terminal: xterm-kitty", and using the shell is a bit of a pain (backspace for example seems to produce a space).
The system in both case is a fully up to date Gentoo, not sure why my local one likes kitty fine but the remote one doesn't. In both case the shell is zsh with zkbd, and I've re-created the zkbd file twice just to be sure I didn't mess up the first time.
Thanks
Because you have to make the terminfo file available on the remote computer. https://wiki.archlinux.org/index.php/Secure_Shell#.22Terminal_unknown.22_or_.22Error_opening_terminal.22_error_message
And I have added an entry to the FAQ for this.
Link to the FAQ since the arch wiki looks to be different than originally linked: https://sw.kovidgoyal.net/kitty/faq.html#i-get-errors-about-the-terminal-being-unknown-or-opening-the-terminal-failing-when-sshing-into-a-different-computer
I get this in tmux on the local computer, not via SSH. What is the solution here?
Solution: Kill tmux if it's in use by other terminal emulators.
Solution: Kill tmux if it's in use by other terminal emulators.
It's works.
This ssh kitty looks very complicated, and it doesn't work out of the box with autossh for example or with a program I was using to change SIGHUP to SIGINT to make sure that connections are rapidly dropped when I close my laptop. Couldn't kitty just use a normal value for TERM like xterm?
... it doesn't work out of the box with ...
You only need to transfer terminfo once (this needs to match the current version of kitty), and then just use ssh.
Couldn't kitty just use a normal value for TERM like xterm?
kitty does not support all xterm features. To ensure that all features are used correctly by command line programs, its own terminfo is required. If you change this on your own, then you need to know what you are doing.
Thanks, @page-down. It does seem to work now although I do notice that when I run tmux the TERM variable gets set to screen; hope that won't cause issues
I actually did reverse,
export TERM=screen works
I had this problem when working on remote servers via bastion hosts. My workaround is to add SetEnv TERM=xterm to .ssh/config.
In my case, when SSH to a remote server, I use kitten ssh instead of ssh :
kitten ssh myserver
The solution is to switch to Alacritty since the Kitty developer seems to hate Tmux.
The Kitty developer has obviously never managed remote servers with a jumphost before.