Last active
August 29, 2015 13:57
-
-
Save rdeavila/9895962 to your computer and use it in GitHub Desktop.
Exemplo de uso de sshfs
This file contains 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/bash | |
# | |
# Para usar em uma vm: | |
# adicionar ao /etc/hosts | |
# 192.168.1.158 macmini.avila.net.br | |
# | |
# Para desmontar: | |
# fusermount -u /home/rodrigo/www | |
# | |
# Ao montar, deixar diretório para este usuário (número) | |
USUARIO=1000 | |
# Ao montar, deixar diretório para este grupo (número) | |
GRUPO=1000 | |
cd /home/rodrigo | |
sshfs macmini.avila.net.br:/Users/rodrigo/Desenvolvimento/laydata www -o compression=yes -o uid=$USUARIO -o gid=$GRUPO |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment