Kitty does have a ssh wrapper which can copy the terminfo for me, but I rarely remember to use it. And it doesn't work for every scenario. Honestly, I wish that it was more common / feasible to probe terminals for capabilities instead of relying on an env var & terminfo files.
So while I wait for the kitty terminfo to be in the database by default on most systems, I often override TERM to xterm-256color.
I think my biggest pain points with SSH are more related to sessions and tools. I can easily navigate to servers but it’s a bit of a pain when I have to use certain users to log in and then others to operate on data on those servers. VSCode has good ssh support if you are able to log in as the same user as the user that has edit permissions on the files you need to modify. Wezterm ssh and iTerm tmux integration have also given me trouble when I want to open a new pane after I’ve run su or sudo. I end up having to use workarounds like changing permissions while I edit and changing back or simply avoiding the feature altogether because I’m already on the server and didn’t remember to connect with the right command or didn’t start tmux before I started work.
alias ssh='TERM=xterm-256color ssh'
To my .bashrc/.zshrcMost other terminals do not have this option.
So for kitty, I made a small deb package with the kitty terminfo file, which I need anyway unless I use xterm-256color, but I modified the entry to not have the ti/te entries.
Win/win.
If you haven't implemented it in your workflow already, you can conditionally set TERM for hosts in your SSH configs with SetEnv.
This is one of the few, if not the only, variable that SSHd will allow clients to set for free.
https://royalapps.com/ts/mac/features
Or MremoteNG (which is a wrapper around putty among other remote tools) on Windows
Even better-- get WSL, and you can get a full fledged linux system.
but where im at now just has thousands upon thousands of systems.
most with super long domain names.
only about 40 machines are my direct customers that have my ssh key on. the rest rely on a password i have to obtain/provison, or ssh over ldap and the key rotates frequently.
i cant manage it in a timely fashion without a gui app that has a section to remember connections in a nested/tree fashion
Never been able to get the hang of tmux though. I know it's super powerful but I feel like in constantly fighting it. Though even just screen for keeping multiple console sessions alive at a time is super helpful even if I only use one at a time.
But, in screen LunarVim and kakoune and other editors I was playing with were totally jacked. So I finally made the switch to tmux and oh-my-tmux.
htop is good, but check out btop. https://github.com/aristocratos/btop
A few years ago I learned how to suspend an ssh terminal connection (like ctrl-z for a regular app). I forgot how to do that or even how I would look it up.
Anyone know?