3 ##################################################################
6 # Written by Francois Fleuret #
7 # Contact <francois.fleuret@idiap.ch> for comments & bug reports #
10 ##################################################################
17 localpath=/tmp/sshfs/${hostname}/${remotepath}
19 if [[ $(mount | grep ${hostname}:${remotepath}) ]]; then
20 fusermount -u ${localpath}
21 echo "${localpath} is unmounted."
24 sshfs -o idmap=user -C ${hostname}:${remotepath} ${localpath}
25 echo "${localpath} is mounted."