From 1d367fef4eb65744333b63174b3ca25e200e2a59 Mon Sep 17 00:00:00 2001 From: Hau Nguyen Date: Thu, 9 May 2024 01:37:48 +0700 Subject: [PATCH] feat: add ssh config --- docs/2023-06-25-useful-tools.html | 37 ++++++++++++++++++++++++++++--- posts/2023-06-25-useful-tools.md | 20 ++++++++++++++--- 2 files changed, 51 insertions(+), 6 deletions(-) diff --git a/docs/2023-06-25-useful-tools.html b/docs/2023-06-25-useful-tools.html index 63f051d..5f74daf 100644 --- a/docs/2023-06-25-useful-tools.html +++ b/docs/2023-06-25-useful-tools.html @@ -1078,6 +1078,35 @@ >

Don't enable plugin git in ohmyzsh.

+

Edit ~/.ssh/config

+
Host *
+    IdentitiesOnly yes
+    UseKeychain yes
+
+

Thanks:

+

macOS

  • https://apple.stackexchange.com/a/466029Can Touch ID on Mac authenticate sudo in Terminal?
  • @@ -1172,7 +1201,8 @@ defaults -currentHost write -globalDomain NSStatusItemSpacing -int 6
  • https://apple.stackexchange.com/q/406316Can the spacing of menu bar apps be modified in macOS Big Sur and + later?
  • @@ -1180,7 +1210,8 @@ defaults -currentHost write -globalDomain NSStatusItemSpacing -int 6 https://gist.github.com/timotgl/f3d8c49ad582ec1af8ff01143465e116How to fully uninstall Logitech G HUB on macOS via terminal/command + line diff --git a/posts/2023-06-25-useful-tools.md b/posts/2023-06-25-useful-tools.md index f61dbcb..d51bea3 100644 --- a/posts/2023-06-25-useful-tools.md +++ b/posts/2023-06-25-useful-tools.md @@ -246,6 +246,20 @@ Don't install: 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 Use Touch ID in Terminal: @@ -307,10 +321,10 @@ pbcopy < /dev/null 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) - - https://apple.stackexchange.com/q/406316 -- https://gist.github.com/timotgl/f3d8c49ad582ec1af8ff01143465e116 + - [Can the spacing of menu bar apps be modified in macOS Big Sur and later?](https://apple.stackexchange.com/q/406316) +- [How to fully uninstall Logitech G HUB on macOS via terminal/command line](https://gist.github.com/timotgl/f3d8c49ad582ec1af8ff01143465e116) ### Firefox