[ubuntu-uk] Auto Mounting Network Shares

George McLachlan george at designateonline.com
Tue Aug 11 14:40:06 BST 2009


>>
> Maybe rather than using NFS you could use SSHFS, you will need to
> forward a port on your router (you don't specifically have to use port
> 22, you could even use 222, 2222 or 1234 for instance).  I'd also guess
> that it would be easier if you used shared keys so you don't have to
> enter passwords (or you could if you wanted).
>
> Actually, looking at my settings, what I have done is created a
> connection in Gnome and told it to remember the password and then told
> it to create a bookmark (basically remember the connection).  When I go
> into the connection it will automatically connect up.
>
> To get round having to use two different connections for inside the
> network and outside the network I have setup dnsmasq on my server and
> added the hostnames of each machine and the DynDNS domain name to the
> /etc/hosts file so they point to the internal IP address.
>
> This way when I'm at home I can connect to
> server.mydyndnsname.homelinux.org and it'll pick up the internal IP
> address and when I'm outside the network
> server.mydyndnsname.homelinux.org (as an example) will point to the IP
> address which my ISP has assigned to me (I've set up wildcards so
> *.mydyndnsname.homelinux.org points to the same IP address and the
> router forwards the ports on to the specific machine).
>
> Hope this makes some sense.
>
> Rob
>
>
>
> --
> ubuntu-uk at lists.ubuntu.com
> https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk
> https://wiki.ubuntu.com/UKTeam/
>
>

I have had some issues (as in it won't work) when I try to mount sshfs
shares with a wireless connection.  Anyway I use a script in
/etc/NetworkManager/dispatcher.d to mount the shares when the
interface goes up

George



More information about the ubuntu-uk mailing list