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