Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
I'm using OS X, and I want to be able to edit files in my CoCalc project on my laptop using my own local editor
One way to solve this problem is to use sshfs to mount your CoCalc project directly on your own computer using sshfs. Though sshfs does not come with OS X, it is easy to install as follows:
- Go to the website https://osxfuse.github.io/
- Download and install BOTH of the packages listed there: FUSE and SSHFS. These are both very easy to install.
- Configure ssh access from your computer to CoCalc, e.g., as explained here.
- Now open the OS X Terminal and type
sshfs email@example.com: target_dirto mount. For example, here I am doing this on my laptop:
WilliamsMacBook:~ wstein$ mkdir project WilliamsMacBook:~ wstein$ sshfs firstname.lastname@example.org: project WilliamsMacBook:~ wstein$ ls project a hal.term narrow-j2.png sagews-test-report.prom smc-util tmp bin hsy.term narrow-jc.png smc smc-util-node tmp2 cc-notebook-demos ipywidgets.ipynb notes.md smc-build smc-webapp traceback-j2.png dev.sagews jeng.term npm-debug.log smc-clone term traceback-pre.png dev.tasks jupyter2.tasks psage smc-k8s term.term vpthon.ipynb dev.time jupyter2.time sagews-test-report.json smc-master term2.term wstein.term
- When done, unmount:
WilliamsMacBook:~ wstein$ umount project WilliamsMacBook:~ wstein$ ls project
You may want to type
man sshfs to see some of the options.