To connect a Linux server to a Windows server or computer, you will need to install and configure a file sharing protocol that is supported by both operating systems. One common option is to use the Server Message Block (SMB) protocol, which is natively supported by both Linux and Windows.
samba
package on the Linux server:sudo apt-get install samba
/etc/samba/smb.conf
file. Add the following lines to the file:[global] workgroup = WORKGROUP client signing = yes client use spnego = yes kerberos method = secrets and keytab [homes] comment = Home Directories browseable = no writable = yes [public] path = /srv/samba/public public = yes writable = yes guest ok = yes
Replace WORKGROUP
with the name of the Windows workgroup.
samba
service to apply the changes:sudo systemctl restart samba
On the Windows machine, open the Network and Sharing Center and click the "Change advanced sharing settings" link. Enable file and printer sharing, and if necessary, enable network discovery.
You should now be able to access the Linux server from the Windows machine using the \\server\share
notation.