Commit 276247b1 authored by nimrod's avatar nimrod
Browse files

- Better implementation of ssh-keyscan-add shell function.

parent ac68c992
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -85,8 +85,8 @@ deduce_aws_region () {
}

ssh_keyscan_add () {
    # shellcheck disable=SC2094
    (ssh-keyscan "$@"; cat "$HOME/.ssh/known_hosts") | sort -u >> "$HOME/.ssh/known_hosts"
    ssh-keyscan "$@" >> "$HOME/.ssh/known_hosts"
    sort -uo "$HOME/.ssh/known_hosts" "$HOME/.ssh/known_hosts"
}

gen_csr () {