Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I am attempting to setup a centralized home-directory server through sshfs and pam-mount.

Currently I am stuck at this point:

When attempting to mount the remote home directory sshfs just gets stuck:

d_inevitable@laptop:~$ sshfs -o nonempty,debug server: .
FUSE library version: 2.9.0
nullpath_ok: 0
nopath: 0
utime_omit_ok: 0

It freezes at this point.

This seems to be because the home directory includes ~/.ssh. So when I try sshfs -o nonempty server:.ssh .ssh the same thing happens.

I suppose fuse somehow initializes the mount, but then ssh needs something from it's config directory so it tries to read from it. Fuse will just block that read resulting in a deadlock.

What kind of stuff does sshfs need from ~/.ssh?

I have tried to remove all read/write permissions from ~/.ssh and then mounting on some other directory. That worked fine. The debug output only complained about writing to .ssh/known_hosts.

share|improve this question
    
Using sshfs sounds like a bad idea offhand. Why aren't you using NFS?? –  Chris S May 9 '13 at 18:03
    
@chriss for security reasons. It would be very difficult to satisfy the same requirements with NFS. –  d_inevitable May 9 '13 at 18:23
    
@chriss actually the main reason is this: serverfault.com/questions/200759/… –  d_inevitable May 9 '13 at 22:05
    
Oh, that's a strange limitation, I guess I'm used to -nix systems that make sense. –  Chris S May 10 '13 at 1:50
    
@chriss I suppose I could convert ecryptfs to a truecrypt volume and then krb5p NFS should work, but that would be a very long and bumpy road (resize partitions, transfer data, key management, etc). –  d_inevitable May 10 '13 at 6:34
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.