Created
May 27, 2014 05:58
-
-
Save itiut/d8e149ae0fe8effbf6f3 to your computer and use it in GitHub Desktop.
sshfsとautosshを使ってマウントする
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
set -eux | |
if [ ! -d /mnt/kugenuma51 ]; then | |
sudo mkdir --parents /mnt/kugenuma51 | |
sudo chown $USER:$USER /mnt/kugenuma51 | |
fi | |
sshfs kugenuma51:/export/home1/tanikawa /mnt/kugenuma51 -o follow_symlinks,idmap=user,intr,ssh_command=autossh |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment