There are various ways to do this. Make sure both hosts connected property by using the ‘ping’ command.
- Share the folder properly in Windows. You can check this shared folders using ‘net share’ command in CMD. Let’s assume as ‘shared_files’.
- Install CIFS Utilities in Linux(Kali or Debian) host. Run the command:
- apt-get install cifs-utils
- Update Linux host to latest repositories.
- apt-get install update
- Create a directory to mount the shared folder
- mkdir test_folder
- Mount the shared folder onto ‘test_folder’
- mount.cifs //<Windows host name or IP>/<shared folder in windows> <mounting directory in linux> -o username=<windows user name>,password=<windows password>
- Example:
- mount.cifs //192.168.1.2/shared_files test_folder -o username=user,password=123
Now you have shared the folder successfully. If you done correctly you could see the mounted directory in File Explorer.