Browse Source

UserKnownHostsFile=/dev/null

master
Christian Rotzoll 6 years ago
parent
commit
4229644b46
  1. 4
      home.admin/_background.sh
  2. 2
      home.admin/config.scripts/internet.sshpubkey.sh

4
home.admin/_background.sh

@ -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"

2
home.admin/config.scripts/internet.sshpubkey.sh

@ -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…
Cancel
Save