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

ssh: fix public keys in home directory not working #677

Merged
merged 1 commit into from
Jun 8, 2023

Conversation

Enzime
Copy link
Collaborator

@Enzime Enzime commented May 31, 2023

From my testing, 101-authorized-keys.conf doesn't need to be a regular file either, so I've added logic to migrate seamlessly to a symlink.

@Enzime
Copy link
Collaborator Author

Enzime commented Jun 3, 2023

@domenkozar can you take a look at this PR? due to #654 I'm no longer able to SSH into macOS as I was managing my public keys manually in ~/.ssh/authorized_keys

@domenkozar
Copy link
Collaborator

Do we need to delete .orig?

@Enzime
Copy link
Collaborator Author

Enzime commented Jun 5, 2023

That file gets generated only when the contents matches exactly what this module used to generate, so the likelihood it came from somewhere else is low. My thought process was remove it in an attempt to make the migration not leave behind a byproduct.

@domenkozar
Copy link
Collaborator

I'm afraid that it would be generated for some other reason and we're deleting it.

To be on the safe side, let's leave it around.

@Enzime
Copy link
Collaborator Author

Enzime commented Jun 5, 2023

Would you be okay with deleting it if I change it to only delete if it matches the hash?

@Enzime Enzime force-pushed the fix/ssh-pubkeys branch 2 times, most recently from b81f7c4 to 0ae683b Compare June 8, 2023 05:18
Added `services.openssh.authorizedKeysFiles` option from NixOS.
@domenkozar domenkozar merged commit 5c671dd into LnL7:master Jun 8, 2023
@Enzime Enzime deleted the fix/ssh-pubkeys branch June 8, 2023 08:01
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.

3 participants