Difference between revisions of "Ecryptfs Home with SSH Key Login"
Jump to navigation
Jump to search
(Created page with "* To remote Login to a System with ecryptfs Home and SSH Public Key Auth do: * Create .ssh folder in /home for the keys to be stored <pre> $sudo mkdir /home/.ssh </pre> * move...") |
(No difference)
|
Revision as of 21:59, 29 June 2017
- To remote Login to a System with ecryptfs Home and SSH Public Key Auth do:
- Create .ssh folder in /home for the keys to be stored
$sudo mkdir /home/.ssh
- move existing authorized_keys file into .ssh dir as username
$sudo mv ~/.ssh/authorized_keys /home/.ssh/username $sudo chmod 600 /home/.ssh/username
- c reate symbolic link to authorized_keys file in user .ssh
$ln -s /home/.ssh/username ~/.ssh/authorized_keys
- update sshd config file to set the new path for the authorized_keys file
$sudo nano /etc/ssh/sshd_config
- change the AuthorizedKeysFile line to:
AuthorizedKeysFile /home/.ssh/%u
- change User Profile to auto mount ecryptfs-home
$sudo nano ~/.profile
- add these lines at the Top Line 3-5:
ecryptfs-mount-private cd /home/username
- reboot
$sudo reboot
- Test the remote SSH Login to the System the Home must now be unlocked and mounted as /home/Username/.Private