From owner-freebsd-questions@FreeBSD.ORG Wed Sep 5 22:03:43 2012 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 18E64106566C for ; Wed, 5 Sep 2012 22:03:43 +0000 (UTC) (envelope-from elias_chr@otenet.gr) Received: from sphinx.otenet.gr (sphinx.otenet.gr [83.235.69.19]) by mx1.freebsd.org (Postfix) with ESMTP id BF4428FC12 for ; Wed, 5 Sep 2012 22:03:42 +0000 (UTC) Received: from pluto.universe (athedsl-4467997.home.otenet.gr [94.71.109.13]) by sphinx.otenet.gr (ESMTP) with ESMTP for ; Thu, 6 Sep 2012 00:57:46 +0300 (EEST) From: Elias Chrysocheris To: freebsd-questions@freebsd.org Date: Thu, 6 Sep 2012 00:57:43 +0300 User-Agent: KMail/1.13.7 (FreeBSD/8.2-RELEASE-p9; KDE/4.8.4; amd64; ; ) References: In-Reply-To: MIME-Version: 1.0 Content-Type: Text/Plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Message-Id: <201209060057.44039.elias_chr@otenet.gr> Subject: Re: Auto-mounting sshfs from /etc/fstab X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 05 Sep 2012 22:03:43 -0000 In the past I wanted to do so in my system. I had one server called "pluto" and I wanted to sshfs one directory from my laptop. The first thing I had to do was to make passwordless ssh from my laptop to the server (there are a lot of pages in the internet to explain how to do this, so I will not explain how-to...) When passwordless ssh login is possible then a line in your fstab like the following does the job: sshfs#your_username_here@pluto:/Common/ /Network_Folders/Pluto/ fuse BatchMode=yes,reconnect,allow_other,users,gid=users,umask=002 0 0 In this way the system automounts the directory /Common that exists in "pluto" in my local directory /Network_Folders/Pluto Of cource "pluto" must have a specific ip (or available through naming service e.t.c.). In my case it has a static IP so I had its declaration in /etc/hosts Hope this helped you Elias