LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Mounting Network Drive (https://www.linuxquestions.org/questions/linux-newbie-8/mounting-network-drive-443054/)

manicman 05-09-2006 04:51 AM

Mounting Network Drive
 
Hello I am trying to mount a Hard drive on my PC onto my Laptop via the Network. I have made some progress as well i have set up ssh and sshfs and i have managed to mount the drive successfully the only problem is that every time i boot to do this i have to enter the command
Code:

sshfs 192.168.2.4:/mnt/data /mnt/pc
and then enter my password is there a way to automate this so it mounts the network drive on boot up. Or to get sshfs to remember my password so i can simply put the command in my ~/.xsession. thanks for any help in advance

Agrouf 05-09-2006 06:28 AM

Hello,

The right place for your startup mount is in /etc/fstab IMO.
If you don't want to enter password, please use ssh-keygen to generate a key pair.
If you need more specific information, please let me know and I can provide the code in detailed form.

Regards,
Agrouf

ethics 05-09-2006 07:01 AM

Yes /etc/fstab is the 'standard' way to do it, but check the file and it's format to put your own in.

Out of curiosity, was there anything wrong with NFS? that seems a whole lot simpler to me.

manicman 05-09-2006 10:25 AM

IT WORKS :) thanks for your help i now have it mounting on boot up

The reason i didn't use NFS was beacuse i had never heard of it and i already had ssh set up on my system. Does NFS have many benefits over sshfs ?


All times are GMT -5. The time now is 08:48 PM.