Encrypting a server's home directory vs. availability

user3834459

Disclaimer: I'm a newbie with server administration.

Should I encrypt the home directory for a Ubuntu server?

Encrypting the home directory means also encrypting the .ssh folder and therefore being unable to access it via ssh if I don't log in through the server console first. And furthermore means being unable to fix any problem remotely if the server gets somehow restarted.

Is encrypting the home dir for a high availability server a good practice? If it is, how should I cope with the problem I mentioned?

Jakuje

First question you should ask is "What data I would like to encrypt in my home directory on server?". If the answer is "I don't know", then don't do that.

If you really want to do that, you can change the location of the authorized_keys files to some other safe location in /etc/ssh/sshd_config, for example as described in my other answer on AskUbuntu:

AuthorizedKeysFile /etc/ssh/%u/authorized_keys

This should give you the chance to log in to the server, but still you need to enter password to decrypt the encrypted home afterward.

Also good to consider is a physical access. If you have some cloud server or machine hosted someplace else, encrypted directory is useless. Anyone with physical access to that machine can read your encryption key from the memory of your server.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

Encrypting home folder in Ubuntu 12.04 server

From Dev

Encrypting home folder in Ubuntu 12.04 server

From Dev

Is it possible to use ext4 native encryption for encrypting home directory?

From Dev

Is it possible to use ext4 native encryption for encrypting home directory?

From Dev

Encrypting a user's directory in Windows 7

From Dev

Root /home Directory vs ~ (tilde)

From Dev

Encrypting home folder in Debian

From Dev

User's home directory inside another user's home directory?

From Dev

Microsoft Azure - sql server replication vs availability groups

From Dev

How to specify Linux home directory and shell on a Samba Active Directory server?

From Dev

Change location of root's home directory

From Dev

Change root user's home directory in Ubuntu?

From Dev

A separate partition for a user's /home directory?

From Dev

Proper method for addressing a user's home directory

From Dev

Declaring a sym link in a user's home directory

From Dev

How to change subtitle user's home directory?

From Dev

Isn't $HOME supposed to be the location of the user's home directory?

From Dev

AES encrypting in Java vs .NET

From Dev

Prevent users from encrypting their home folders

From Dev

Using wget on a directory outside the user's home directory

From Dev

encrypting data on server and decrypting it on client

From Dev

Home directory(?)

From Dev

Encrypt home directory / LVM encryption - Ubuntu Server 14.04 setup

From Dev

Windows Server: how to create a new user specifying home directory?

From Dev

SQLCipher vs Encrypting the data before storing in sqliteDB

From Dev

NAS VPN vs dedicated VPN Server for Home Network

From Dev

How do I tell where the user's home directory is, in Dart?

From Dev

What type of permissions should a user's home directory and files have?

From Java

How to get an arbitrary remote user's home directory in Ansible?

Related Related

  1. 1

    Encrypting home folder in Ubuntu 12.04 server

  2. 2

    Encrypting home folder in Ubuntu 12.04 server

  3. 3

    Is it possible to use ext4 native encryption for encrypting home directory?

  4. 4

    Is it possible to use ext4 native encryption for encrypting home directory?

  5. 5

    Encrypting a user's directory in Windows 7

  6. 6

    Root /home Directory vs ~ (tilde)

  7. 7

    Encrypting home folder in Debian

  8. 8

    User's home directory inside another user's home directory?

  9. 9

    Microsoft Azure - sql server replication vs availability groups

  10. 10

    How to specify Linux home directory and shell on a Samba Active Directory server?

  11. 11

    Change location of root's home directory

  12. 12

    Change root user's home directory in Ubuntu?

  13. 13

    A separate partition for a user's /home directory?

  14. 14

    Proper method for addressing a user's home directory

  15. 15

    Declaring a sym link in a user's home directory

  16. 16

    How to change subtitle user's home directory?

  17. 17

    Isn't $HOME supposed to be the location of the user's home directory?

  18. 18

    AES encrypting in Java vs .NET

  19. 19

    Prevent users from encrypting their home folders

  20. 20

    Using wget on a directory outside the user's home directory

  21. 21

    encrypting data on server and decrypting it on client

  22. 22

    Home directory(?)

  23. 23

    Encrypt home directory / LVM encryption - Ubuntu Server 14.04 setup

  24. 24

    Windows Server: how to create a new user specifying home directory?

  25. 25

    SQLCipher vs Encrypting the data before storing in sqliteDB

  26. 26

    NAS VPN vs dedicated VPN Server for Home Network

  27. 27

    How do I tell where the user's home directory is, in Dart?

  28. 28

    What type of permissions should a user's home directory and files have?

  29. 29

    How to get an arbitrary remote user's home directory in Ansible?

HotTag

Archive