4,461
edits
→SSL/TLS: add self-signed certificates |
→SSL/TLS: add enable SSH public key authentication with an encrypted home folder |
||
Line 164: | Line 164: | ||
$ sudo openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout /etc/apache2/ssl/apache.key -out /etc/apache2/ssl/apache.pem -outform PEM | $ sudo openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout /etc/apache2/ssl/apache.key -out /etc/apache2/ssl/apache.pem -outform PEM | ||
</source> | </source> | ||
== Enable SSH public key authentication with an encrypted home folder == | |||
''Tested on Ubuntu 16.04 LTS'' | |||
<syntaxhighlight lang="bash"> | |||
$ /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> | |||
= Miscellaneous = | = Miscellaneous = |