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

enn*_*oid 5 ssh command-line

正如标题所提到的,有什么作用-A?如果我运行man ssh,则没有解释此选项的部分。

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

des*_*ert 9

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在这里。

  • @mr.void 查看手册页时,您可以按`/` 进行搜索,输入一些内容(例如`-A`)并按Enter。键入的字符的每个可见出现都将突出显示,并且查看者将跳转到第一次出现。按`n`移到下一个或按`N`移到上一个。搜索模式实际上是一个正则表达式,但对于简单的搜索,只需输入您要搜索的内容就足够了。 (5认同)