用 Kitty + Ssh + Zellij 作为 Ssh 客户端
目录
ssh 客户端添加心跳包
因为有些路由器喜欢丢弃闲置过长的 TCP 连接 (即不传输任何数据)。
Edit ~/.ssh/config:
| |
添加 ssh Host
Edit ~/.ssh/config:
| |
服务器使用 zellij 防止 ssh 断开而导致耗时比较长的工作中断
zellij 的基本用法:
| |
上传/下载文件
在本地使用 scp/rsync 即可。
常见错误
1 2 3使用 kitten ssh <host_name> # 如果还不行, 则 infocmp -a xterm-kitty | ssh <host_name> tic -x -o \~/.terminfo /dev/stdin # 会生成 ~/.terminfo/x/xterm-kitty