feat: add hosts-clear and hosts-init scripts for managing known_hosts

This commit is contained in:
Burnett01 2025-09-01 13:38:23 +00:00
parent c0170dd157
commit 7b075b3367
2 changed files with 11 additions and 0 deletions

5
docker-rsync/hosts-clear Executable file
View file

@ -0,0 +1,5 @@
#!/bin/sh
set -euo pipefail
truncate -s 0 ~/.ssh/known_hosts

6
docker-rsync/hosts-init Executable file
View file

@ -0,0 +1,6 @@
#!/bin/sh
set -euo pipefail
touch ~/.ssh/known_hosts
chmod 600 ~/.ssh/known_hosts