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?
feedback
|
|
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
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. | |||
|
feedback
|
|
An easy way is to just use scp:
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 | |||||||
feedback
|