TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

macOS Sierra Stores and Syncs SSH Passphrases to iCloud

111 pointsby zalmoxesover 8 years ago

6 comments

sitharusover 8 years ago
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 未加载
0x0over 8 years ago
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 未加载
alrsover 8 years ago
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>
zalmoxesover 8 years ago
Passphrases are stored by default, and if you enable iCloud Keychain, they&#x27;re also synced.
评论 #12654041 未加载
okketover 8 years ago
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>
markwaldronover 8 years ago
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 未加载