20 lines
426 B
Bash
Executable file
20 lines
426 B
Bash
Executable file
#!/bin/bash
|
|
|
|
current_hostname=$(hostname)
|
|
|
|
case $current_hostname in
|
|
"pogmommy-apple-a2337")
|
|
ssh_dest="pogmommy-omen-328p1aa"
|
|
;;
|
|
"pogmommy-omen-328p1aa")
|
|
ssh_dest="pogmommy-apple-a2337"
|
|
;;
|
|
*)
|
|
# Code to execute if expression does not match any of the above patterns
|
|
;;
|
|
esac
|
|
|
|
alacritty -e bash -c '\
|
|
eval $(ssh-agent) &> /dev/null; \
|
|
ssh-add ~/.ssh/id_ed25519 &> /dev/null; \
|
|
ssh -A '"${ssh_dest}"
|