mirror of
https://github.com/Burnett01/rsync-deployments.git
synced 2025-12-19 11:12:18 +01:00
feat: add hosts-clear and hosts-init scripts for managing known_hosts
This commit is contained in:
parent
c0170dd157
commit
7b075b3367
2 changed files with 11 additions and 0 deletions
5
docker-rsync/hosts-clear
Executable file
5
docker-rsync/hosts-clear
Executable file
|
|
@ -0,0 +1,5 @@
|
||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
set -euo pipefail
|
||||||
|
|
||||||
|
truncate -s 0 ~/.ssh/known_hosts
|
||||||
6
docker-rsync/hosts-init
Executable file
6
docker-rsync/hosts-init
Executable file
|
|
@ -0,0 +1,6 @@
|
||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
set -euo pipefail
|
||||||
|
|
||||||
|
touch ~/.ssh/known_hosts
|
||||||
|
chmod 600 ~/.ssh/known_hosts
|
||||||
Loading…
Reference in a new issue