From 276725397e7bd81bd0c2e4f9cf0c86d0b2d79ba2 Mon Sep 17 00:00:00 2001 From: d0zingcat Date: Tue, 26 Mar 2024 15:20:50 +0800 Subject: [PATCH] add ssh example Signed-off-by: d0zingcat --- ssh/example | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 ssh/example diff --git a/ssh/example b/ssh/example new file mode 100644 index 0000000..89cbb25 --- /dev/null +++ b/ssh/example @@ -0,0 +1,31 @@ +Host * + #HostkeyAlgorithms +ssh-rsa + #PubkeyAcceptedAlgorithms +ssh-rsa + + IdentityAgent "~/.1password/agent.sock" + ServerAliveInterval 60 + TCPKeepAlive yes + +Host github.com + Hostname ssh.github.com + Port 443 + User git + # set to personal by default + IdentityFile ~/.ssh/personal.pub + IdentitiesOnly yes + +# Personal +Host personalgit + Hostname ssh.github.com + Port 443 + User git + IdentityFile ~/.ssh/personal.pub + IdentitiesOnly yes + +# Work +Host workgit + Hostname ssh.github.com + Port 443 + User git + IdentityFile ~/.ssh/work.pub + IdentitiesOnly yes