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

Be smart about backing up ~/.ssh/authorized_keys #42

Open
cowboy opened this issue Dec 27, 2014 · 2 comments
Open

Be smart about backing up ~/.ssh/authorized_keys #42

cowboy opened this issue Dec 27, 2014 · 2 comments

Comments

@cowboy
Copy link
Owner

cowboy commented Dec 27, 2014

Because if it gets moved, and you log out, and your server doesn't permit login via password...

(ouch)

@cowboy
Copy link
Owner Author

cowboy commented Mar 27, 2020

Can I get this picture already. There must be an easier way, # wild goose chase going on 4 years. I don’t give up easily but this is rediculos.

what

@SteVwonder
Copy link

SteVwonder commented Dec 31, 2024

FWIW, in my fork I added a check after the backup for the authorized_keys file in the backup directory. If it exists, then copy the authorized_keys back into ~/.ssh: https://github.com/SteVwonder/dotfiles/blob/master/bin/dotfiles#L272

Obviously not bullet proof, but it has worked well for me so far.

PS - Thanks for the amazing dotfiles. I've been using it for many years, and it has served me very well.

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

No branches or pull requests

3 participants
@cowboy @SteVwonder and others