Xiaoyu SONG My personal Blog | Xiaoyu SONG

<< All Blogs

Link files to server

Install sshfs. if you use ubuntu/debian:

sudo apt-get install sshfs

or, if you use centos/rhel:


sudo yum install fuse-sshfs

Create an empty dir


mkdir remotedir

“link” or “mount” the two directories

sshfs xiaoyu@172.21.32.185:/home/xiaoyu/data /Users/xiaoyu/remotedir

“unlink” the dirs


fusermount -u /home/user/testdir