Unverified Commit 18495727 authored by Masum Reza's avatar Masum Reza Committed by GitHub
Browse files

Merge pull request #322282 from tylerjl/tylerjl/print-host-key-soft-fail

nixos/ec2-data: skip unrecognized keys in print-host-keys
parents 95aaf823 404fb5ab
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -79,7 +79,7 @@ with lib;
            # ec2-get-console-output.
            echo "-----BEGIN SSH HOST KEY FINGERPRINTS-----" > /dev/console
            for i in /etc/ssh/ssh_host_*_key.pub; do
                ${config.programs.ssh.package}/bin/ssh-keygen -l -f $i > /dev/console
                ${config.programs.ssh.package}/bin/ssh-keygen -l -f $i || true > /dev/console
            done
            echo "-----END SSH HOST KEY FINGERPRINTS-----" > /dev/console
          '';