Compare commits

...

2 Commits

Author SHA1 Message Date
masq 7244206de5
[add] get_ssh_pvkey_ldlnet.sh 2024-11-14 10:56:39 +01:00
masq 74b26b614d
[add] up_share_file.sh 2024-11-14 10:55:59 +01:00
2 changed files with 18 additions and 0 deletions

1
get_ssh_pvkey_ldlnet.sh Executable file
View File

@ -0,0 +1 @@
ssh emixam@192.168.42.49 cat ~/.ssh/id_ed25519-ldlnet_amsleaveamix | ssh-add -

17
up_share_file.sh Executable file
View File

@ -0,0 +1,17 @@
#!/usr/bin/bash
#
# usage: up_share_file.sh FILE [NAME]
exit_nofile()
{
echo "Give a file to upload";
exit 1;
}
test -f "$1" || exit_nofile
FILE="$1"
REMOTE=${2:-`basename "$FILE"`}
echo put "$FILE" "/home/masq/~masq/$REMOTE" | sftp -q masq@share.freepoteries.fr >/dev/null
echo "https://share.freepoteries.fr/~masq/$REMOTE"