mirror of
https://github.com/raspiblitz/raspiblitz.git
synced 2025-04-11 21:29:29 +02:00
UserKnownHostsFile=/dev/null
This commit is contained in:
parent
530a6a96a6
commit
4229644b46
@ -181,7 +181,9 @@ do
|
||||
# https://www.linode.com/docs/security/authentication/use-public-key-authentication-with-ssh/
|
||||
if [ ${#scpBackupTarget} -gt 0 ]; then
|
||||
echo "--> Offsite-Backup SCP Server"
|
||||
sudo scp /home/admin/.lnd/data/chain/${network}/${chain}net/channel.backup ${scpBackupTarget}/channel.backup
|
||||
# its ok to ignore known host, because data is encrypted (worst case of MiM would be: no offsite channel backup)
|
||||
# but its more likely that whithout ignoriing known host, script might not run thru and that way: no offsite channel backup
|
||||
sudo scp -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null /home/admin/.lnd/data/chain/${network}/${chain}net/channel.backup ${scpBackupTarget}/channel.backup
|
||||
result=$?
|
||||
if [ ${result} -eq 0 ]; then
|
||||
echo "OK - SCP Backup exited with 0"
|
||||
|
@ -34,7 +34,7 @@ if [ "${MODE}" == "get" ]; then
|
||||
|
||||
elif [ "${MODE}" == "transfer" ]; then
|
||||
|
||||
sudo sh -c 'yes yes | sudo ssh-copy-id $2'
|
||||
sudo ssh-copy-id $2
|
||||
|
||||
else
|
||||
echo "err='paremeter not known - run with -help'"
|
||||
|
Loading…
x
Reference in New Issue
Block a user