New backup 2024-05-16 22:00:02
This commit is contained in:
parent
d91d69d8bc
commit
36708cfacb
1 changed files with 7 additions and 2 deletions
|
@ -4,12 +4,17 @@ current_hostname=$(hostname)
|
|||
|
||||
case $current_hostname in
|
||||
"pogmommy-apple-a2337")
|
||||
alacritty -e ssh -A pogmommy-omen-328p1aa
|
||||
ssh_dest="pogmommy-omen-328p1aa"
|
||||
;;
|
||||
"pogmommy-omen-328p1aa")
|
||||
alacritty -e ssh -A pogmommy-apple-a2337
|
||||
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}"
|
||||
|
|
Loading…
Add table
Reference in a new issue