LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   SSHFS - Mounting at Startup (https://www.linuxquestions.org/questions/linux-software-2/sshfs-mounting-at-startup-4175412809/)

NotAComputerGuy 06-22-2012 05:56 AM

SSHFS - Mounting at Startup
 
Hi all,

I use SSHFS to share files, and between my Desktop (upstairs) and my 'Media' computer downstairs it'd be quite handy to have the Desktop mount the Media's share folder at start-up.

The SSH key is 'encrypted' (although the pass phrase is remembered so unlocked when I log in). Due to this, I figure that /etc/fstab won't work because the key needs to be unlocked before it mounts? I added my alias line to the start up
Code:

sshfs -o idmap=user $USER@media:/media /media/media
but it doesn't work.

I've tried searching the forums, as I cannot be the only person who wants to do this, but I can't find any threads I can really understand.

NotAComputerGuy 06-22-2012 10:32 AM

Simple solution to this, within the startup applications list, I swapped
[code]sshfs -o idmap=user $USER@media:/media /media/media[code]
for
Code:

sshfs -o idmap=user insertusernamehere@media:/media /media/media
It now works.


All times are GMT -5. The time now is 12:33 AM.