Skip to content

Commit

Permalink
updated ssh_dump_logs.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
HariSekhon committed Oct 15, 2024
1 parent 68caa0c commit 3a43861
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions monitoring/ssh_dump_logs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ min_args 1 "$@"
ssh_known_hosts=~/.ssh/known_hosts

timestamp "SSH Keyscanning nodes to prevent getting stuck on host key prompts"
echo
for user_server in "$@"; do
server="${user_server##*@}"
timestamp "SSH keyscan '$server'"
Expand All @@ -79,6 +80,7 @@ for user_server in "$@"; do
grep -Fxq "$line" "$ssh_known_hosts" ||
echo "$line" >> "$ssh_known_hosts"
done
echo
done
echo

Expand Down

0 comments on commit 3a43861

Please sign in to comment.