Page 1 of 3 123 LastLast
Results 1 to 10 of 27

Thread: Automount SSH Server

  1. #1
    Join Date
    Dec 2008
    Beans
    43

    Question Automount SSH Server

    I wonder how to set my computer to connect to a server on start up. I hate to reload my pictures in shotwell every start up. I can connect through ssh connection, but i want it done automatically on start up. I'm not an expert, so break it barny style, or link me to a guide that i haven't found yet. Thanks.

    Ubuntu 10.10 64Bit

  2. #2
    Join Date
    Apr 2008
    Beans
    98

    Re: Automount SSH Server

    Well, you can start here by using sshfs. Then, you can put the command (however you utilize it) in /etc/rc.local


    Is this on a local network?

  3. #3
    Join Date
    Dec 2008
    Beans
    43

    Question Re: Automount SSH Server

    Yes it is a local network, my server is running ubuntu 10.10 32 bit. Thanks for the link, but the article was written about 4 years ago, and the example they showed in there didn't help in my limited linux knowledge. I would like something more recent and that can show examples, and believe me I've tried to google, but maybe I don't know what i'm looking for.
    I just want let's say my computer on start up to mount the external hard drive that is attached to my server. I hope I explained myself. thanks

  4. #4
    Join Date
    Apr 2008
    Location
    Far, far away
    Beans
    2,148
    Distro
    Ubuntu 11.04 Natty Narwhal

    Re: Automount SSH Server

    How are you mounting the drive now when you do it manually?

  5. #5
    Join Date
    Dec 2008
    Beans
    43

    Re: Automount SSH Server

    When I want to use the files in that external hdd i use Connect to Server using SSH. I can do that fine, but i don't want to do that manually anymore. I don't use samba because is slow.

  6. #6
    Join Date
    Apr 2008
    Beans
    98

    Re: Automount SSH Server

    Quote Originally Posted by mauro24 View Post
    Yes it is a local network, my server is running ubuntu 10.10 32 bit. Thanks for the link, but the article was written about 4 years ago, and the example they showed in there didn't help in my limited linux knowledge. I would like something more recent and that can show examples, and believe me I've tried to google, but maybe I don't know what i'm looking for.
    I just want let's say my computer on start up to mount the external hard drive that is attached to my server. I hope I explained myself. thanks
    Well, the article I linked to does work. If you'd rather not try, then that's your call. They DO give an example of how to mount the filesystem through sshfs. You simply take the command and add it to the file /etc/rc.local

    Anyway, the question BkkBonanza asked about how you are mounting the external drive is needed if we are going to help you further. I'm assuming your 'server' has a GUI and it is simply recognising the external drive on its' own, and you are not mounting it through fstab?

  7. #7
    Join Date
    May 2010
    Location
    uk
    Beans
    9,324
    Distro
    Xubuntu 14.04 Trusty Tahr

    Re: Automount SSH Server

    Hi

    Well here is a newer example from help.ubuntu.com (last edited 2010-12-28 ). It's a step by step example.

    https://help.ubuntu.com/community/SSHFS

    Please don't be rude to people trying to help you

    Kind regards
    If you believe everything you read, you better not read. ~ Japanese Proverb

    If you don't read the newspaper, you're uninformed. If you read the newspaper, you're mis-informed. - Mark Twain

    Thinking about becoming an Ubuntu Member?

  8. #8
    Join Date
    Dec 2008
    Beans
    43

    Question Re: Automount SSH Server

    create the mount point

    #mkdir /mnt/remote

    #chown [user-name]:[group-name] /mnt/remote/

    Add yourself to the fuse group

    adduser [your-user] fuse

    switch to your user and mount the remote filesystem.

    sshfs remote-user@remote.server:/remote/directory /mnt/remote/

    If you want to mount a directory other than the home directory, you can specify it after the colon. Actually, a generic sshfs command looks like this:

    $ sshfs [user@]host:[dir] mountpoint [options]

    Ok I'm going to show what i understood from this example, this example is going to help me mount that external hard drive automatically after every start up.
    Server local ip 192.168.0.5
    my computer 192.168.0.3
    and external hdd is @ server/media/Backup

    so first i need to mount the home directory of the user@host

    #sshfs 192.168.0.3@192.168.0.5: /media/Backup

    when i do this, it asks for the server password i assume, i add it three time and i get this

    read: Connection reset by peer

    so now i'm going to follow the example, everything is done in my computer I assume

    #sudo mkdir /mnt/remote
    #sudo chown 192.168.0.3:fuse-group /mnt/remote/

    I don't know what they mean by group name, is it the servers ip or just any name i used fuse-group and it came back with invalid user name, that's what i'm saying the example is lame, I just understand half of it I think?

    also on the username part is it the ip address or just the name of the computer user?
    Last edited by mauro24; March 18th, 2011 at 04:31 PM.

  9. #9
    Join Date
    Dec 2008
    Beans
    43

    Re: Automount SSH Server

    Quote Originally Posted by matt_symes View Post
    Hi

    Well here is a newer example from help.ubuntu.com (last edited 2010-12-28 ). It's a step by step example.

    https://help.ubuntu.com/community/SSHFS

    Please don't be rude to people trying to help you

    Kind regards
    thanks matt i'm going to try that.

  10. #10
    Join Date
    Dec 2008
    Beans
    43

    Re: Automount SSH Server

    Ok matt thanks for link, but I already can connect to the server using Connect to Server through SSH. But What I want to do is get it so it does it automatically on my computer boots up.

Page 1 of 3 123 LastLast

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •