Lee Marzke on 9 Jan 2011 20:11:39 -0800


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: [PLUG] sshfs mounts on laptop


On 01/09/2011 06:47 PM, Lee Marzke wrote:
On 01/09/2011 04:40 PM, brent timothy saner wrote:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 01/09/11 15:11, Lee Marzke wrote:
Does anyone have recommendations / scripts for mounting sshfs filesystems
that I want always mounted at login to my laptop.

I would prefer to not have to type another password ( I have full disk
encryption,
and so already enter 2 passwords )

I guess this might need a option / or timeout if I'm traveling and don't
have the VPN up.

Lee


set up pubkey auth. no password needed and more secure than password
auth. if you're looking for an actual script to run on login, let me
know and i can type up a quick one for you and tell you how to get it to
run on login.

Eventually I'll have a half dozen or so mounts.

What I've got so far to attach to my Thecus N8800 NAS box as the user 'sys'
Add to /etc/fstab   ( raid0 is the 1st raid5 array, stupid name !)

    sshfs#sys@nasbox:/raid0/data/software /home/lmarzke/n8800_software fuse noauto,user,idmap=user 0 0

My working configuration for now ( On Ubuntu 10.04 64 bit ) desktop

1. Add /etc/fstab entry above.
2. Add /usr/local/bin/lmarzke_sshfsmount.sh
    #!/bin/sh
     mount ~/n8800_software
     mount ~/n8800_foo
     mount ~/n8800_bar
3. Add desktop launcher.
4. Gnome ssh keys GUI will prompt you once per login
                          ( If you click the + sign on the Gnome ssh keys dialog,  you can
                             set it to not prompt you for this key after logging in,  however this
                             saves a copy of your SSH passphrase in the Gnome keyring ! )




Note the idmap=user remaps uid/gid on the nas to my user/gid  since many of this files were written by the NAS.

I added ssh keys ( Thecus makes this difficult as ssh isn't supported out of the box )

So I just need to run  'mount ~/n8800_software'

Anyone have comments on this so far ?   I'll have to see what happens if I run this
remotely before automating it fully.

Lee




___________________________________________________________________________ Philadelphia Linux Users Group -- http://www.phillylinux.org Announcements - http://lists.phillylinux.org/mailman/listinfo/plug-announce General Discussion -- http://lists.phillylinux.org/mailman/listinfo/plug


-- 
"Between subtle shading and the absence of light lies the nuance of iqlusion..."  - Kryptos

Lee Marzke,     lee@marzke.net                              http://marzke.net/lee/
IT Consultant, Global App Development, Software CM, VMware, VSphere, NetApp storage
voice: +1 484-961-0369     +1 800 393 5217                     sip://lee@4aero.com
fax:  +1 484-348-2230

begin:vcard
fn:Lee Marzke
n:Marzke;Lee
org:4AERO
adr:;;;Collegeville;PA;19426;US
email;internet:lee@marzke.net
title:Consultant
tel;work:800 393 5217
tel;fax:+1 484 348-2230
tel;cell:+1 484 961-0369
x-mozilla-html:TRUE
url:http://4aero.com
version:2.1
end:vcard

___________________________________________________________________________
Philadelphia Linux Users Group         --        http://www.phillylinux.org
Announcements - http://lists.phillylinux.org/mailman/listinfo/plug-announce
General Discussion  --   http://lists.phillylinux.org/mailman/listinfo/plug