Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I use sshfs to mount a remote drive (BeagleBone) on my Mac?

Why can't I connect to my BeagleBone using sshfs from my mac? I can ssh to this ip address just fine. Do I need to somehow create a special mount point? What does it mean that the socket is not connected?

sudo sshfs [email protected]: /Volumes/
remote host has disconnected
mount_osxfusefs: failed to mount /Volumes@/dev/osxfuse0: Socket is not connected

FYI I installed sshfs using brew cask sshfs

like image 393
user391339 Avatar asked Sep 30 '22 13:09

user391339


1 Answers

Here's how I've done it in the past. (I'm not sure if it is the same sshfs implementation you used though)

I have a private key (I will call it mykey.pem) Make sure its permissions are 600

I also have a folder that I will mount on (It will be at /usr/remote)

Then I run this:

sshfs -o IdentityFile=/path/to/key/mykey.pem remote_user@ip_address:/remote/folder -o allow_other /usr/remote

I hope this is helpful for your situation.

like image 92
Nick Allen Avatar answered Oct 05 '22 08:10

Nick Allen