How to mount/unmount StatNet home directory using sshfs?

Subscribe to email list

Please select the email list(s) to which you wish to subscribe.
CAPTCHA
This question is for testing whether or not you are a human visitor and to prevent automated spam submissions.
Image CAPTCHA

Enter the characters shown in the image.

User menu

You are here

How to mount/unmount StatNet home directory using sshfs?

IT
How to mount/unmount StatNet home directory using sshfs?

We use "sshfs" to mount your StatNet home directory securely.
For your convenient, we created a sshfs script in "/usr/local/bin/statfiles".
For usage, type 'statfiles' at the command line terminal.

Notes: If you are running batch jobs, you should mount and unmount statfiles manually.
A) To manually Mount:
$statfiles mount
$cd statfiles

B) To manually  unmount
$cd
$statfiles unmount


Howto  Use "sshfs" to mount your StatNet home storage automatically
1) Edit .bash_profile and remove these hashes, using vim or emacs.
   $ emacs .bash_profile
        ...
        statfiles mount
        sync
        cd statfiles
       ...
2) To unmount statfiles after logout
Edit .bash_login and remove these hashes
   $ emacs .bash_logout
        ...
        cd ~
        sync
        /usr/local/bin/statfiles unmount
       ...
3)Logout and Login your VM again.
   You need to supply your StatNet passwd twice.  One for your VM and one for your StatNet Home directory to mount.
4) Confirm your StatNet location
   $ pwd
   $ ls
5) Now you can start running your code.
   $ program your_code here.

Do not save anything important on your local VM disk since it has limited snapshot and backup.
Your local VM files is saved for 7 days and every hours.