I cannot mount a folder on Mac OS X from an ubuntu image on GCP.
Here is the command on Mac OSX:
sudo mkdir ubuntu_shared
sudo sshfs username@servername.com:/ubuntu_shared /Users/myuser/ubuntu_shared -o IdentityFile=/Users/myuser/id_rsa
gcp@gcp:/mnt/hgfs$ ls -l
total 4
drwxr-xr-x 26 root root 4096 Nov 13 04:32 ubuntu_shared
But after I run the commands sshfs goes into the background and the ubuntu_shared folder on my local pc becomes a file not a folder, can't see it in finder either. The auth key file and ssh looks like it is working though.
mac@mac ~ % cd ubuntu_shared
cd: no such file or directory: ubuntu_shared
Here is what I see from debug output of sshfs:
[00024] LSTAT
[00024] STATUS 33bytes (60ms)
unique: 10, error: -2 (No such file or directory), outsize: 16
unique: 9, opcode: LOOKUP (1), nodeid: 1, insize: 56, pid: 109
LOOKUP /.Spotlight-V100
getattr /.Spotlight-V100
[00025] LSTAT
[00025] STATUS 33bytes (64ms)
unique: 9, error: -2 (No such file or directory), outsize: 16
unique: 6, opcode: GETATTR (3), nodeid: 1, insize: 56, pid: 109
getattr /
unique: 6, success, outsize: 136
unique: 3, opcode: GETATTR (3), nodeid: 1, insize: 56, pid: 109
getattr /
[00026] LSTAT
[00026] ATTRS 41bytes (68ms)
unique: 3, success, outsize: 136