如何使ssh-agent静音?


10

.bashrcmysuer家里的文件中有一个像这样的脚本:

eval `ssh-agent`
ssh-add /path/to/my/key

问题是当我与用户mysuersu - myuser)登录时,我有以下输出:

Agent pid 1234
Identity added: /path/to/my/key (/path/to/my/key)

我想避免这种情况,使此输出静音,但加载ssh-agentssh-add

我该如何执行呢?

Answers:


By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.