diff options
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 |