From 0d18bfd7cc9dc8bf3cef7b437554f39c002ae39b Mon Sep 17 00:00:00 2001 From: Erki Aas Date: Sat, 28 Jun 2025 01:33:48 +0000 Subject: [PATCH] rosdump: ignore ssh host keys --- rosdump/application.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/rosdump/application.yml b/rosdump/application.yml index 4e46d2e..197578c 100644 --- a/rosdump/application.yml +++ b/rosdump/application.yml @@ -9,6 +9,7 @@ data: mkdir -p /root/.ssh cp /config/ssh_identity /root/.ssh/id_ecdsa chmod 600 /root/.ssh/id_ecdsa + ssh-keyscan git.k-space.ee > /root/.ssh/known_hosts if [ -d rosdump ]; then echo "Pulling Git repo" cd rosdump @@ -23,6 +24,7 @@ data: git rm *.k-space.ee for target in $(cat /config/targets | grep -v '^#'); do echo "Exporting configuration for $target" + ssh-keyscan $target >> /root/.ssh/known_hosts ssh rosdump@$target '/export' | grep -v '^# serial number =' | grep -v '^#.* by RouterOS' > $target git add $target done