正如标题所提到的,有什么作用-A?如果我运行man ssh,则没有解释此选项的部分。
另外,ssh 配置文件的此参数的选项名称是什么?我在哪里可以找到 thoose cmd 参数和 configfile 选项名称之间的映射?
From man ssh,对我来说,这把这个选项列为第五个:
-A Enables forwarding of the authentication agent connection.
This can also be specified on a per-host basis in a configuration file.
Agent forwarding should be enabled with caution. Users with the
ability to bypass file permissions on the remote host
(for the agent's UNIX-domain socket) can access the local agent
through the forwarded connection. An attacker cannot
obtain key material from the agent, however they can perform
operations on the keys that enable them to authenticate
using the identities loaded into the agent.
Run Code Online (Sandbox Code Playgroud)
查看man ssh_config配置文件选项名称,无需深入研究,我认为您需要ForwardAgent在这里。