Which of the following commands preloads and manages keys that are used for automatic authentication while logging in to other machines using SSH?
A.
sshd
B.
ssh-agent
C.
ssh-keygen
D.
ssh-add
题解
选项 A,「sshd」是 SSH 服务器的常驻程序。
选项 B,「ssh-agent」指令可以保存公开密钥认证所使用的私密密钥,让 ssh 登录其他主机时能自动使用这些密钥来认证。为正确答案。
选项 C,「ssh-keygen」指令用来产生 SSH 密钥。
选项 D,「ssh-add」指令可以添加私有密钥提供给 SSH 使用。
