Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Don't fail if .ssh/authorized_keys is missing #323

Merged
merged 1 commit into from
May 26, 2024

Conversation

fidgetingbits
Copy link
Contributor

I ran into this issue recently where the target system was using /etc/ssh.d/authorized_keys.d/ and had no ~/.ssh/authorized_keys file, and so this line would fail. But it was also already configured to allow root access via /etc/ssh.d/authorized_keys.d/, so by not hard failing on the inability to copy ~/.ssh/authorized_keys the install would succeed. This change simply allows it to continue if the copy fails, and so failure (if it exists) will transition to inability to login as root.

@Mic92
Copy link
Member

Mic92 commented May 26, 2024

@mergify queue

Copy link
Contributor

mergify bot commented May 26, 2024

queue

✅ The pull request has been merged automatically

The pull request has been merged automatically at 3f97597

@mergify mergify bot merged commit 3f97597 into nix-community:main May 26, 2024
24 checks passed
@fidgetingbits fidgetingbits deleted the ssh-authorized-keys-bug branch May 26, 2024 11:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants