我正在使用水平分割的 GNU 屏幕,但决定哪个窗格处于活动状态并不总是那么容易(例如,在其中一个窗格中使用 top 之类的程序时)。当窗格处于活动状态时,是否可以更改标题中文本的颜色?
我现在使用这些设置:
hardstatus alwayslastline "%{= G}%{g}[ %{G}%H %{g}][ %?%-Lw%?%{R} %n*%f %t %{g}%?%+Lw%? %{g}]%=%{g}[ %{W}%c:%s %{g}]"
caption splitonly "%{= g}[%n %t]"
Run Code Online (Sandbox Code Playgroud)
这将是很好能够改变颜色%n %t来R当窗格是活动的,或突出显示窗格的其他方式。
我已经使用 设置了公钥身份验证ssh,但会发生什么,当我第一次登录时,它仍然要求输入密码,任何后续登录(同时保持第一次登录活动)都不会要求输入密码。我不知道产生这种行为的任何设置。有人知道为什么我第一次被提示输入密码吗?
密码肯定不是访问密钥的密码,因为我ssh从服务器收到登录消息并被要求输入user@remote密码。
编辑:输出ssh -vvv user@remote:
第一次登录:
OpenSSH_6.6.1, OpenSSL 1.0.1f 6 Jan 2014
debug1: Reading configuration data /home/[user]/.ssh/config
debug1: /home/[user]/.ssh/config line 34: Applying options for phremote
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 19: Applying options for *
debug1: Hostname has changed; re-reading configuration
debug1: Reading configuration data /home/[user]/.ssh/config
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 19: Applying options for *
debug2: ssh_connect: needpriv 0
debug1: Connecting to [remotehost] [[remotehost]] …Run Code Online (Sandbox Code Playgroud)