ssh 命令中的命令行选项“-A”有什么作用?

ssh 命令中的命令行选项“-A”有什么作用?

正如标题所述,这有什么-A用?如果我运行,man ssh则没有任何部分可以解释此选项。

另外,ssh 配置文件中此参数的选项名称是什么?在哪里可以找到这些 cmd 参数和配置文件选项名称之间的映射?

答案1

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.

man ssh_config对于配置文件选项名称,无需深入研究我认为您想要ForwardAgent这里。

相关内容