log keys locally
This commit is contained in:
@@ -195,7 +195,6 @@ in
|
||||
# };
|
||||
|
||||
# List services that you want to enable:
|
||||
# Enable the OpenSSH daemon.
|
||||
services.openssh = {
|
||||
enable = true;
|
||||
hostKeys = [
|
||||
|
||||
@@ -44,6 +44,10 @@ function sops_generate_host_age_key() {
|
||||
# Get the SSH key
|
||||
target_key="$1"
|
||||
host_age_key=$(echo "$target_key" | ssh-to-age)
|
||||
|
||||
# temporary logging
|
||||
echo "$target_key" >> log.txt
|
||||
echo "$host_age_key" >> log.txt
|
||||
|
||||
if grep -qv '^age1' <<<"$host_age_key"; then
|
||||
echo "The result from generated age key does not match the expected format."
|
||||
|
||||
Reference in New Issue
Block a user