Access Linux File-system
There are many ways to get access to remote Linux files.
scp
scp service is based on SSH. If you can use SSH, then it is easy to copy files using:
scp <username1>@<server-ip1>:/home/<username1>/source.txt /home/<username2>
This mean you want to copy remote file /home/<username1>/source.txt
on computer <server-ip1>
to local computer path /home/<username2>
.
You can copy the whole folder using parameter -r
scp -r <username1>@<server-ip1>:/home/<username1>/<folder1> /home/<username2>/
sshfs
sshfs is a Linux tool to map remote folder into a local folder. It is also based on SSH.
This tool can make one remote
folder look like just a local
folder. However, file operations inside that folder will be sent to remote
computer and modify remote
files.
Please refer to Tutorial for further usage.
Samba
Samba is a Linux service that can make Linux folders shared in a Windows Share way. That means then you can get access to that shared folder from a Windows computer directly.
Installation
Please install samba
, samba-client
.
Configuration
Goto edit file /etc/samba/smb.conf
, and add the following in its end.
[myname]
comment = share all
path = /tmp/myname
browseable = yes
public = yes
writable = yes
You can learn many other useful usage through Tutorial
Restart Service
Restart the service to make the changes take effect:
sudo services smbd restart