feat: add ssh config

main
sudo pacman -Syu 2024-05-09 01:37:48 +07:00
parent 0b6b0c65ba
commit 1d367fef4e
2 changed files with 51 additions and 6 deletions

View File

@ -1078,6 +1078,35 @@
></a> ></a>
</div> </div>
<p>Don't enable plugin <code>git</code> in ohmyzsh.</p> <p>Don't enable plugin <code>git</code> in ohmyzsh.</p>
<p>Edit <code>~/.ssh/config</code></p>
<pre lang="ssh"><code>Host *
IdentitiesOnly yes
UseKeychain yes
</code></pre>
<p>Thanks:</p>
<ul>
<li>
<a
href="https://tim.siosm.fr/blog/2023/01/13/openssh-key-management/"
rel="nofollow"
>OpenSSH client side key management for better privacy and security</a
>
</li>
<li>
<a href="https://stackoverflow.com/a/41576222" rel="nofollow"
>Git keeps asking me for my ssh key passphrase</a
>
<ul>
<li>
<a
href="https://developer.apple.com/library/archive/technotes/tn2449/_index.html"
rel="nofollow"
>OpenSSH updates in macOS 10.12.2</a
>
</li>
</ul>
</li>
</ul>
<div class="markdown-heading"> <div class="markdown-heading">
<h3 class="heading-element">macOS</h3> <h3 class="heading-element">macOS</h3>
<a <a
@ -1160,7 +1189,7 @@ defaults -currentHost write -globalDomain NSStatusItemSpacing -int 6</pre
<ul> <ul>
<li> <li>
<a href="https://apple.stackexchange.com/a/466029" rel="nofollow" <a href="https://apple.stackexchange.com/a/466029" rel="nofollow"
>https://apple.stackexchange.com/a/466029</a >Can Touch ID on Mac authenticate sudo in Terminal?</a
> >
</li> </li>
<li> <li>
@ -1172,7 +1201,8 @@ defaults -currentHost write -globalDomain NSStatusItemSpacing -int 6</pre
<ul> <ul>
<li> <li>
<a href="https://apple.stackexchange.com/q/406316" rel="nofollow" <a href="https://apple.stackexchange.com/q/406316" rel="nofollow"
>https://apple.stackexchange.com/q/406316</a >Can the spacing of menu bar apps be modified in macOS Big Sur and
later?</a
> >
</li> </li>
</ul> </ul>
@ -1180,7 +1210,8 @@ defaults -currentHost write -globalDomain NSStatusItemSpacing -int 6</pre
<li> <li>
<a <a
href="https://gist.github.com/timotgl/f3d8c49ad582ec1af8ff01143465e116" href="https://gist.github.com/timotgl/f3d8c49ad582ec1af8ff01143465e116"
>https://gist.github.com/timotgl/f3d8c49ad582ec1af8ff01143465e116</a >How to fully uninstall Logitech G HUB on macOS via terminal/command
line</a
> >
</li> </li>
</ul> </ul>

View File

@ -246,6 +246,20 @@ Don't install:
Don't enable plugin `git` in ohmyzsh. Don't enable plugin `git` in ohmyzsh.
Edit `~/.ssh/config`
```ssh
Host *
IdentitiesOnly yes
UseKeychain yes
```
Thanks:
- [OpenSSH client side key management for better privacy and security](https://tim.siosm.fr/blog/2023/01/13/openssh-key-management/)
- [Git keeps asking me for my ssh key passphrase](https://stackoverflow.com/a/41576222)
- [OpenSSH updates in macOS 10.12.2](https://developer.apple.com/library/archive/technotes/tn2449/_index.html)
### macOS ### macOS
Use Touch ID in Terminal: Use Touch ID in Terminal:
@ -307,10 +321,10 @@ pbcopy < /dev/null
Thanks: Thanks:
- https://apple.stackexchange.com/a/466029 - [Can Touch ID on Mac authenticate sudo in Terminal?](https://apple.stackexchange.com/a/466029)
- [Native fix for applications hiding under the MacBook Pro notch](https://flaky.build/native-fix-for-applications-hiding-under-the-macbook-pro-notch) - [Native fix for applications hiding under the MacBook Pro notch](https://flaky.build/native-fix-for-applications-hiding-under-the-macbook-pro-notch)
- https://apple.stackexchange.com/q/406316 - [Can the spacing of menu bar apps be modified in macOS Big Sur and later?](https://apple.stackexchange.com/q/406316)
- https://gist.github.com/timotgl/f3d8c49ad582ec1af8ff01143465e116 - [How to fully uninstall Logitech G HUB on macOS via terminal/command line](https://gist.github.com/timotgl/f3d8c49ad582ec1af8ff01143465e116)
### Firefox ### Firefox