3
如何从命令行远程访问钥匙串?
我在钥匙串中存储了各种密码(例如,用于远程电子邮件服务器的密码)。从命令行,在本地登录时,我可以通过以下方式检索它们: security unlock-keychain ~/Library/Keychains/login.keychain <enter password> security find-internet-password -s smtp.gmail.com -a foo@gmail.com <dumps keychain attributes, not including password> security find-internet-password -s smtp.gmail.com -a foo@gmail.com -g <dumps keychain attributes, including password> 但是,在远程运行时(从其他地方插入框中)无法获得结果: security unlock-keychain ~/Library/Keychains/login.keychain <enter password> security find-internet-password -s smtp.gmail.com -a foo@gmail.com <dumps keychain attributes, not including password> security find-internet-password …