Search code examples
ubuntusshubuntu-10.04nfsopenssh

How do i set a remote ssh connection and mount directory in ubuntu 10.04 over the internet?


Can any on help me with setting a remote ssh connection and NFS (or any other way to mount a directory from the server on my ubuntu client) over the internet?

All the manuals i found where talking about local networking and i can't find any thing that will help me to understand the way to set it over the web...

I have and Ubuntu lucid server in my NAT and apache2 server installed and working. what i need is a way to mount the "www" directory also when i am not inside the NAT so i could work over the internet.

So i guess i need two things. how do i connect to the server with ssh and how do i use NFS or wny things else to mount directories on my client Ububntu lucid over the web.

Thank you very much, Erez


Solution

  • this is a question that should rather go to superuser or ubuntuusers but here you go.

    just open nautilus (the default file manager) and go to file -> connect to server.

    then enter the type (ftp/ssh/samba and many others are supported) and credentials.

    you will be able to work directly with the files. all sorts of permissions etc are supported as far as the protocol does.

    the fuse module is used to mount it under user space.

    edit:

    another way (that is probably suited better in server environments) is to use sshfs. it doesnt come default but can easily be installed over the repositories. but i'd rather recommend setting up nfs (altough its security management is quite controversial and its very old its very robust and achieves good performance). there are loads of tutorials available.