开发者

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

开发者 https://www.devze.com 2023-03-03 06:25 出处:网络
Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed. This question is off-topic. It is not currently accepting answers.

Want to improve this question? Update the question so it's on-topic for Stack Overflow.

开发者_JS百科

Closed 11 years ago.

Improve this question

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


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.


You will probably need to configure your NAT router to forward ssh or sftp or nfs or git or rsync connections to your internal machine in addition to http.

How you do that depends upon your router. (Be careful forwarding, your firewall currently provides some level of protection from the big bad internet. When you forward connections to your server, be sure you know how to configure the forwarded service safely.)

You might also wish to look into Ubuntu One as a mechanism to synchronize files between multiple machines. I've not yet used it, but it looks slick, and avoids many problems with port forwarding connections to internal systems, if the internal systems can be configured to pull data in from outside easily.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号