If you've implementing Dustin's workaround, you may run into a delay when logging in, and an Xauthority error. This is caused by xauth being unable to write to your home directory before the encrypted directory is mounted.
Here is my workaround. Using the ~/.ssh/rc file, the xauth parameters are written to a temp file, then read into a variable before your encrypted $HOME is mounted, then passed to xauth. put the following files in your UN-encrypted home directory. ~$ cat .ssh/rc #!/bin/bash if read proto cookie && [ -n "$DISPLAY" ]; then if [ $(echo $DISPLAY | cut -c1-10) = 'localhost:' ]; then # X11UseLocalhost=yes echo add unix:$(echo $DISPLAY | cut -c11-) $proto $cookie > ~/.ssh/xauth_temp else # X11UseLocalhost=no echo add $DISPLAY $proto $cookie > ~/.ssh/xauth_temp fi fi ~$ cat .bash_login #!/bin/bash if test -e $HOME/.ecryptfs/auto-mount; then XAUTH=$(cat ~/.ssh/xauth_temp) mount | grep "$HOME type ecryptfs" if test $? != 0; then ecryptfs-mount-private cd $HOME source ~/.bashrc fi echo $XAUTH | xauth -q - fi Hope this helps someone! The original .bash_login script comes from: http://ubuntuforums.org/showthread.php?t=1332820&s=2551a0a94ce3b24ad3e3c60601319bc3&p=8452729#post8452729 -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/362427 Title: Public key ssh auth doesn't work with my Encrypted Home Directory To manage notifications about this bug go to: https://bugs.launchpad.net/ecryptfs/+bug/362427/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs