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/check-user-ssh.sh - check for additional authorized_keys when encrypted home directory #51

Open
BradleyA opened this issue Jun 1, 2019 · 1 comment
Assignees
Labels
enhancement Increase or improve in quality, performance, business value, function, or user satisfaction. needs investigation What? How?
Projects

Comments

@BradleyA
Copy link
Owner

BradleyA commented Jun 1, 2019

ssh supports additional locations for authorized_keys file in /etc/ssh/sshd_config (AuthorizedKeysFile). Use case:
If you have an encrypted home directory, SSH cannot access your authorized_keys file because it is inside your encrypted home directory and won't be available until after you are authenticated. Therefore, SSH will default to password authentication.

To solve this, create a folder outside your home named /etc/ssh/ (replace "" with your actual username). This directory should have 755 permissions and be owned by the user. Move the authorized_keys file into it. The authorized_keys file should have 644 permissions and be owned by the user.

Then edit your /etc/ssh/sshd_config and add:

AuthorizedKeysFile /etc/ssh/%u/authorized_keys

Need to add check for other authorized_keys file location in /etc/ssh/sshd_config file

@BradleyA BradleyA added enhancement Increase or improve in quality, performance, business value, function, or user satisfaction. needs investigation What? How? labels Jun 1, 2019
@BradleyA BradleyA self-assigned this Jun 1, 2019
@BradleyA BradleyA changed the title check-user-ssh.sh - check for additional authorized_keys when encrypted home directory ssh/check-user-ssh.sh - check for additional authorized_keys when encrypted home directory Jun 8, 2019
@BradleyA
Copy link
Owner Author

The release announcement for version 3 states that authorized_keys2 is deprecated and all keys should be put in the authorized_keys file.
https://marc.info/?l=openssh-unix-dev&m=100508718416162&w=2

@BradleyA BradleyA added this to Backlog in ssh - R&D May 24, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Increase or improve in quality, performance, business value, function, or user satisfaction. needs investigation What? How?
Projects
ssh - R&D
  
Backlog
Development

No branches or pull requests

1 participant