I'm using sshfs to mount my private share (without password, only RSA key). When I run this command:
Code: Select all
sshfs <username>@<adress>:/<sharename>/ /home/<username>/<local folder>/ -p <port> -o reconnect,uid=<1000>,gid=<1001>
Code: Select all
#!/bin/bash
case $1 in
hibernate|suspend)
grep "/home/<username>/<local folder> fuse.sshfs" /etc/mtab
if [[ $? -eq 0 ]]; then
fusermount -u /home/<username>/<local folder>
fi
;;
resume|thaw)
sshfs <username>@<adress>:/<sharename>/ /home/<username>/<local folder>/ -p <port> -o reconnect,uid=<1000>,gid=<1001>
;;
esac
Any idea why and how to correct this error?
Cheers!
//EDIT
Ok, I found that I need to add RSA key to root user.