New backup 2025-09-27 01:15:01
This commit is contained in:
parent
4327408e03
commit
1aef3a174f
2 changed files with 22 additions and 0 deletions
21
default/home/.local/bin/ssh-agent-handler.sh
Executable file
21
default/home/.local/bin/ssh-agent-handler.sh
Executable file
|
@ -0,0 +1,21 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
if [[ -z ${1} ]];then
|
||||
echo "no host provided"
|
||||
exit 1
|
||||
fi
|
||||
host="${1}"
|
||||
if [[ -z ${2} ]];then
|
||||
echo "no icon provided"
|
||||
exit 1
|
||||
fi
|
||||
icon="${2}"
|
||||
|
||||
echo "${host}"
|
||||
echo "${host#*@}"
|
||||
#exit 0
|
||||
|
||||
alacritty -T "${icon} ${host#*@}" -e bash -c '\
|
||||
eval $(ssh-agent) &> /dev/null; \
|
||||
ssh-add ~/.ssh/id_ed25519 &> /dev/null; \
|
||||
ssh -A '"${host}"
|
|
@ -13,3 +13,4 @@ Scripts/iso_updater.sh
|
|||
.config/fastfetch/config.jsonc
|
||||
Scripts/fix-swap-part.sh
|
||||
.local/bin/serverutil-deb-upload
|
||||
.local/bin/ssh-agent-handler.sh
|
||||
|
|
Loading…
Add table
Reference in a new issue