每次启动tmux或split tmux时,都会启动ssh-agent的新实例(顶部出现“Agent pid XXXX”),这很烦人,因为每次要使用它时都必须键入密钥密码。更不用说一天结束时 ssh 代理的数量了。
我在 KDE 上使用 Arch Linux,我的 $SHELL 是 zshell。
ssh-agent在系统启动时自动启动,但我不知道是谁启动它 - 它不在.zshrcor 中.bash_profile,我试图在 'ssh-agent' 中 grep~但一无所获。
ssh-agent
.zshrc
.bash_profile
~
linux kde arch-linux zsh tmux
arch-linux ×1
kde ×1
linux ×1
tmux ×1
zsh ×1