Skip to content

Commit 810b649

Browse files
committed
Add Paragraph to attack a common Mac OS X problem
Max OS X does not add ssh keys automatically on login, but there is an easy fix.
1 parent 9c97519 commit 810b649

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

content/guides/using-ssh-agent-forwarding.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,16 @@ If the command says that no identity is available, you'll need to add your key:
140140
ssh-add <em>yourkey</em>
141141
</pre>
142142

143+
{{#tip}}
144+
145+
On Mac OS X, `ssh-agent` will "forget" this key, once it gets restarted during reboots. But you can import your SSH keys into Keychain using this command:
146+
147+
<pre class="terminal">
148+
/usr/bin/ssh-add -K <em>yourkey</em>
149+
</pre>
150+
151+
{{/tip}}
152+
143153
[tech-tips]: http://www.unixwiz.net/techtips/ssh-agent-forwarding.html
144154
[generating-keys]: https://help.github.com/articles/generating-ssh-keys
145155
[ssh-passphrases]: https://help.github.com/ssh-key-passphrases/

0 commit comments

Comments
 (0)