Skip to main content

In case if you need an alternate approach.

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 /home/user/testdir 

"link" or "mount" the two directories

sshfs [email protected]:/remote/dir /home/user/testdir 

"unlink" the dirs

fusermount -u /home/user/testdir 

For more see here, linuxjournal.com

Ruban Savvy
  • 9k
  • 8
  • 31
  • 44