System administration: Difference between revisions

→‎Fix (unreachable) prompt for encrypted home folder: change the content from obsolete to Enable SSH public key authentication with an ecrypted home folder
→‎Debian/Ubuntu-specific: add Fix (unreachable) prompt for encrypted home folder
→‎Fix (unreachable) prompt for encrypted home folder: change the content from obsolete to Enable SSH public key authentication with an ecrypted home folder
Line 269: Line 269:
= Debian/Ubuntu-specific =
= Debian/Ubuntu-specific =


== Fix (unreachable) prompt for encrypted home folder ==
== Enable SSH public key authentication with an encrypted home folder ==


''Tested on Ubuntu 16.04 LTS''
''Tested on Ubuntu 16.04 LTS''
I run <span class="package">byobu</span> with a home folder that is encrypted.  When I reconnect with my live session the prompt returns with (unreachable) path<ref>http://askubuntu.com/questions/72229/unreachable-home-folder, Accessed on 7/14/2016</ref> This is due to the auto-unmount feature built into the encryption utility.  You can force it not to auto-unmount by either deleting the flag file found under ~/.ecryptfs.


<syntaxhighlight lang="bash" highlight="1">
<syntaxhighlight lang="bash" highlight="1">
$ mv ~/.ecryptfs/auto-umount ~/.ecryptfs/auto-umount.dist
$ /sbin/umount.ecryptfs_private
$ cd $HOME
$ chmod 700 .
$ mkdir -m 700 .ssh
$ chmod 500 .
$ echo $YOUR_REAL_PUBLIC_KEY > .ssh/authorized_keys
$ /sbin/mount.ecryptfs_private
</syntaxhighlight>
</syntaxhighlight>