TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

macOS Sierra Stores and Syncs SSH Passphrases to iCloud

111 点作者 zalmoxes超过 8 年前

6 条评论

sitharus超过 8 年前
Only if you enable iCloud Keychain, which is locally encrypted and synced in encrypted form. <a href="https:&#x2F;&#x2F;support.apple.com&#x2F;en-us&#x2F;HT202303" rel="nofollow">https:&#x2F;&#x2F;support.apple.com&#x2F;en-us&#x2F;HT202303</a> has links to the details.<p>It&#x27;s not useful though as you shouldn&#x27;t share ssh keys between machines anyway.
评论 #12654540 未加载
评论 #12654494 未加载
0x0超过 8 年前
There&#x27;s also something weird going on with &quot;-o BatchMode=yes&quot;, which is used by shells to tab-complete remote files for scp and rsync.<p>I could ssh into a server without typing the ssh key password, but zsh refused to tab-complete scp and rsync command lines. Turns out it was using &quot;ssh -o BatchMode=yes servername somethingsomething&quot; to retrieve a list of files, but &quot;-o BatchMode=yes&quot; prevented whatever magic is happening from unlocking the ssh key. Figuring this out was tricky because dtruss and lldb refused to attach to &#x2F;bin&#x2F;zsh and &#x2F;usr&#x2F;bin&#x2F;ssh because of SIP. (In fact, &quot;dtruss --help&quot; lists &quot;dtruss df -h&quot; as the first example, something that doesn&#x27;t even work on sierra because &#x2F;bin&#x2F;df is protected by SIP)<p>The fix is to run &quot;ssh-add -A&quot; after booting. Very odd, since there are no password prompts involved anywhere.
评论 #12654821 未加载
alrs超过 8 年前
This links to a tweet that links to <a href="https:&#x2F;&#x2F;openradar.appspot.com&#x2F;28394826" rel="nofollow">https:&#x2F;&#x2F;openradar.appspot.com&#x2F;28394826</a>
zalmoxes超过 8 年前
Passphrases are stored by default, and if you enable iCloud Keychain, they&#x27;re also synced.
评论 #12654041 未加载
okket超过 8 年前
FYI: ssh-agent in Sierra needs &quot;AddKeysToAgent yes&quot; in $HOME&#x2F;.ssh&#x2F;config to automatically load your keys, see<p><a href="http:&#x2F;&#x2F;apple.stackexchange.com&#x2F;questions&#x2F;253779&#x2F;macos-10-12-sierra-will-not-forget-my-ssh-keyfile-passphrase" rel="nofollow">http:&#x2F;&#x2F;apple.stackexchange.com&#x2F;questions&#x2F;253779&#x2F;macos-10-12-...</a>
markwaldron超过 8 年前
Anyone who has upgraded - Have you had issues with it prompting for your keychain password every time you wake your computer up and occasionally throughout the day?
评论 #12655189 未加载