远程Remote
本地和远程,排在同一条侧边栏。Local and remote, in the same sidebar.
~/.ssh/config 里的主机直接出现在「服务器」里,服务器上什么都不用装。断线重连后,跑在 tmux 或 zellij 里的会话会挂回原处。Hosts from ~/.ssh/config show up under Servers, with nothing to install on them. After a reconnect, a session running in tmux or zellij attaches right where it was.
连接、回连和远程采样的条件Connecting, reattaching, and remote stats
- 「服务器」里有你添加的主机,也有 ~/.ssh/config 里的别名,Include 进来的文件也算。可以填地址、用户、端口、密钥或 ssh-agent,也支持 ProxyJump。密码放在钥匙串里。Servers lists hosts you add and every alias in ~/.ssh/config, including files pulled in with Include. You can set the address, user, port, key or ssh-agent, and ProxyJump. Passwords go in the Keychain.
- 默认是自动:机器上已经有 tmux 或 zellij 就用它,没有就开一个普通登录 shell,不会催你去装。Auto is the default: if the machine already has tmux or zellij, Waitlight uses it. If not, you get a normal login shell, with no prompt to install anything.
- 重连时,如果当时跑在 tmux 或 zellij 里,会挂回原来的会话,里面的 Agent 还在。没有多路复用器的话,就按你配置的目录重新登录,之前的进程不会回来。On reconnect, a session that was in tmux or zellij attaches again, so the agent is still there. Without a multiplexer, it logs in again in the directory you set, and the earlier processes are gone.
- 性能面板跟着当前会话。看 SSH 会话时采样的是那台服务器:只开一条 SSH,用一小段 POSIX shell 去读 /proc,仍然不用装东西。远程采样目前只支持 Linux。The performance panel follows the selected session. For SSH it samples that server over one connection: a small POSIX shell loop reading /proc, still with nothing to install. Remote sampling currently supports Linux only.