diff options
author | Toby Vincent <tobyv13@gmail.com> | 2021-03-20 17:10:58 -0500 |
---|---|---|
committer | Toby Vincent <tobyv13@gmail.com> | 2021-03-20 17:10:58 -0500 |
commit | ec5dc4d93af9c57304ecc2c5468ad10225707d71 (patch) | |
tree | ae4c9b6f1ba833a001b5bb8d0488fefbba7fbbfa /ssh | |
parent | 59f0a992363e1d616531c6724b524ec191f9c61b (diff) |
feat: added configs
Diffstat (limited to 'ssh')
-rwxr-xr-x | ssh/config | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/ssh/config b/ssh/config new file mode 100755 index 0000000..3704f58 --- /dev/null +++ b/ssh/config @@ -0,0 +1,36 @@ +# Read more about SSH config files: https://linux.die.net/man/5/ssh_config +Host * + StrictHostKeyChecking no + +Host bifrost + User tobyv + HostName bifrost + +Host heimdall + User pi + HostName heimdall + PermitLocalCommand yes + LocalCommand ssh -o PermitLocalCommand=no %n "which git >/dev/null && ([[ -d ~/dotfiles ]] && (echo "Updating dotfiles on %h ..." && cd ~/dotfiles && git pull -q && ./install >/dev/null) || (echo "Installing dotfiles on %h ..." && git clone -q https://github.com/tobyvin/dotfiles && ./dotfiles/install >/dev/null))" + +Host loki + User pi + HostName loki.asgard + PermitLocalCommand yes + LocalCommand ssh -o PermitLocalCommand=no %n "which git >/dev/null && ([[ -d ~/dotfiles ]] && (echo "Updating dotfiles on %h ..." && cd ~/dotfiles && git pull -q && ./install >/dev/null) || (echo "Installing dotfiles on %h ..." && git clone -q https://github.com/tobyvin/dotfiles && ./dotfiles/install >/dev/null))" + +Host odin + User tobyv + HostName odin.asgard + PermitLocalCommand yes + LocalCommand ssh -o PermitLocalCommand=no %n "which git >/dev/null && ([[ -d ~/dotfiles ]] && (echo "Updating dotfiles on %h ..." && cd ~/dotfiles && git pull -q && ./install >/dev/null) || (echo "Installing dotfiles on %h ..." && git clone -q https://github.com/tobyvin/dotfiles && ./dotfiles/install >/dev/null))" + +Host thor + User tobyv + HostName thor.asgard + PermitLocalCommand yes + LocalCommand ssh -o PermitLocalCommand=no %n "which git >/dev/null && ([[ -d ~/dotfiles ]] && (echo "Updating dotfiles on %h ..." && cd ~/dotfiles && git pull -q && ./install >/dev/null) || (echo "Installing dotfiles on %h ..." && git clone -q https://github.com/tobyvin/dotfiles && ./dotfiles/install >/dev/null))" + +Host mjolnir + User u0_a382 + HostName mjolnir.asgard + Port 8022
\ No newline at end of file |