From c9d655a9181b0a8ea281849b387545e68bbcfb66 Mon Sep 17 00:00:00 2001 From: A Farzat Date: Sun, 17 Nov 2024 22:57:22 +0900 Subject: Add ssh config for gitolite --- .config/ssh/farzat_xyz.config | 4 +++- .config/ssh/home_servers.config | 44 +++++++++++++++++++++++++++++++++++++++++ 2 files changed, 47 insertions(+), 1 deletion(-) create mode 100644 .config/ssh/home_servers.config diff --git a/.config/ssh/farzat_xyz.config b/.config/ssh/farzat_xyz.config index db1f5e3..330e195 100644 --- a/.config/ssh/farzat_xyz.config +++ b/.config/ssh/farzat_xyz.config @@ -7,7 +7,9 @@ Host ubuntu1 IdentitiesOnly yes IdentityFile ${XDG_DATA_HOME}/ssh_pub_keys/ubuntu1.pub -Host arch1 +Host arch1_g1 + User gitolite +Host arch1 arch1_* HostName arch1.farzat.xyz User farzat ForwardAgent yes diff --git a/.config/ssh/home_servers.config b/.config/ssh/home_servers.config new file mode 100644 index 0000000..dc4f5fe --- /dev/null +++ b/.config/ssh/home_servers.config @@ -0,0 +1,44 @@ +# vim: set filetype=sshconfig : + +# This is a useful option when the OS(host) changes temporarily. + # UserKnownHostsFile /dev/null + +Host pavilion1local + HostName 192.168.8.114 + User farzat + RemoteForward ${HOME}/.clipper.sock ${HOME}/.clipper.sock + ForwardAgent yes + IdentitiesOnly yes + IdentityFile ${XDG_DATA_HOME}/ssh_pub_keys/farzat-pavilion1.pub + +Host matebook1local + HostName 192.168.8.172 + User farzat + RemoteForward /home/farzat/.clipper.sock ${HOME}/.clipper.sock + ForwardAgent yes + IdentitiesOnly yes + IdentityFile ~/.dotfiles/ssh/pub_keys/farzat-matebook1.pub + +Host spectre1local + HostName 192.168.8.181 + User farzat + RemoteForward /home/farzat/.clipper.sock ${HOME}/.clipper.sock + ForwardAgent yes + IdentitiesOnly yes + IdentityFile ~/.dotfiles/ssh/pub_keys/farzat-spectre1.pub + +Host iiyama1local + HostName 192.168.8.111 + User farzat + RemoteForward /home/farzat/.clipper.sock ${HOME}/.clipper.sock + ForwardAgent yes + IdentitiesOnly yes + IdentityFile ~/.dotfiles/ssh/pub_keys/farzat-iiyama1.pub + +Host asus1local + HostName 192.168.8.112 + User farzat + RemoteForward /home/farzat/.clipper.sock ${HOME}/.clipper.sock + ForwardAgent yes + IdentitiesOnly yes + IdentityFile ~/.dotfiles/ssh/pub_keys/farzat-asus1.pub -- cgit v1.2.3-70-g09d2