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/test
"unlink" the dirs
fusermount -u /home/user/testdir
For more see here, linuxjournal.com