Tuesday, 15 September 2015

file sharing - Why does directory vanish when I do SSHFS? How to setup SSHFS share on Max OSX 10.9? -



file sharing - Why does directory vanish when I do SSHFS? How to setup SSHFS share on Max OSX 10.9? -

i'm running max osx 10.9.3 , i'm trying setup sshfs file-share between macbook pro , remote file system. however, when seek it, doesn't work.

strangely enough, makes target directory disappear. has else seen happen? bug?

first see can ssh target machine:

% ssh remoteuser@xxx.xxx.xxx.xxx # <--- ssh remote scheme works! see below. remoteuser@xxx.xxx.xxx.xxx % ls -altr remotedir total 8 drwxr-xr-x 26 remoteuser remoteuser 4096 jun 22 01:00 .. drwxrwxrwx 2 remoteuser remoteuser 4096 jun 22 01:08 . remoteuser@xxx.xxx.xxx.xxx % exit % # <--- logged out of remote scheme

next, create directory locally , verify created:

% pwd /mnt % ls total 0 drwxr-xr-x 31 root admin 1122 jun 18 18:34 ../ drwxr-xr-x 2 root admin 68 jun 23 08:11 ./ % sudo mkdir share1 % ls drwxr-xr-x 31 root admin 1122 jun 18 18:34 ../ drwxr-xr-x 4 root admin 136 jun 23 08:50 ./ drwxr-xr-x 2 root admin 68 jun 23 08:50 share/

now seek setup sshfs share:

% sudo sshfs remoteuser@xxx.xxx.xxx.xxx:remotedir /mnt/share1 remoteuser@xxx.xxx.xxx.xxx's password: %

ok. seems have worked. no errors. let's see share created, shall we?

% ls ls: share1: no such file or directory total 0 drwxr-xr-x 31 root admin 1122 jun 18 18:34 ../ drwxr-xr-x 3 root admin 102 jun 23 08:12 ./

what? not file sharing not working, share1 directory seems have vanished! (although file scheme seems know missing, weird).

where did /mnt/share1 go , how setup sshfs?

sshfs doesn't come os x afaik, should mention how installed it. i'm guessing sshfs designed used fstab or mount rather called directly. seek like:

mount -t sshfs remoteuser@xxx.xxx.xxx.xxx:remotedir /mnt/share1

osx file-sharing sshfs

No comments:

Post a Comment