Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a web application in linux. When upload file, I want to save file into a Network in another server (Linux OS). I used mount -rw command to mount folder, which I want to save my file to my local folder but I still can't upload file. How can I do?

share|improve this question
How are you sharing the folder, NFS? And what do you mean that you "can't upload" it. Do you get an error, does it silently fail, etc? We need more details – MDMarra Mar 27 '10 at 4:12

An excellent way of mounting a remote folder locally is via 'sshfs'

it works over the standard SSH port (22). Quick, encrypted, painless alternative to NFS

sshfs www-example

If you require access to a non-user folder:

1) You can allow root login via /etc/ssh/sshd_config (Not very secure)

2) changing permissions on the remote folder to allow access via a normal user

3) Setting up keys.

share|improve this answer

An easy way is to just use scp:

scp server:/path/to/dir/

You will need to make sure you have an ssh key correctly configured so that your client machine can connect to the server machine without a password. Try man ssh-keygen and man ssh-copy-id.

share|improve this answer
you will also need an account with exactly the same name on the remote machine, as you are not specifying account with ... artifex@server:/path/to/dir/ – artifex May 5 '10 at 4:16
True, thanks for adding that. – apenwarr May 5 '10 at 17:50

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.