**Or some union-mount like feature could...

Unencrypted home directories are typically write-protected. Amended
workaround with temporary permissions (if used in any script, it should
save original permissions (by using touch -r on $(mktemp -d) for
example)):

sudo mount -o bind /home /mnt
chmod u+w /mnt${HOME#/home}
mkdir -m 700 /mnt${HOME#/home}/.ssh
cp -ia ${HOME}/.ssh/authorized_keys /mnt${HOME#/home}/.ssh/
chmod u-w /mnt${HOME#/home}
sudo umount /mnt

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/655726

Title:
  When SSHing to a server with encrypted home directories doesn't
  automatically mount the encrypted directory

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to