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
Line 273: Line 273:
''Tested on Ubuntu 16.04 LTS''
''Tested on Ubuntu 16.04 LTS''


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