Linux: Difference between revisions

348 bytes added ,  31 May 2020
Line 571: Line 571:
** E.g. Move all startup scripts in your <code>~/bin</code> to <code>/usr/bin</code>
** E.g. Move all startup scripts in your <code>~/bin</code> to <code>/usr/bin</code>
* <code>ssh</code> will not work until home has been decrypted since the authorized keys are in <code>~/.ssh/authorized_keys</code>
* <code>ssh</code> will not work until home has been decrypted since the authorized keys are in <code>~/.ssh/authorized_keys</code>
** Apparently
** One workaround is as follows:
**# Move ssh keys elsewhere such as <code>/etc/ssh/authorized_keys/<user></code>
**# Create a sudo user with and unencrypted home directory.
**# After every restart, ssh into the unencrypted sudo user and decrypt your home directory:
**#:<code>sudo fscrypt unlock /home/david --user=david</code>
**# Then ssh into your account.