I am working on a Fedora 41 machine. If I open the file browser and in the address bar type sftp://some_user@some_linux_PC it asks for some_user’s password and after that I can read and write files in the other Linux PC. I want to do the same but where the remote PC has Windows 11. Is this possible? How?
This is the folder to access to, i.e. my home directory in Windows:
I don’t understand what to put in “Domain”, SAMBA is the default value. If I enter my credentials there and click “connect” it just does something for a few seconds and then pops up this window again, in an infinite loop.
If I do ping windows_pc.local it works fine. I can also use Remmina to open an RDP connection to that windows PC, and it works fine.
Leaving the domain as SAMBA worked for me when I tried it …
as for the sftp route … you can install the OpenSSH server on Windows, start it and log in to your windows machine from Linux via ssh or sftp. Note: I could not get the sftp://{user}@{machine} to work with the file explorer …
I managed to solve it by following this SO answer, I copy paste it below:
Try the following (tested on a Fedora VM on a Windows 11 host):
Create a local account user for the Windows PC (Settings → Accounts → Other Users → Add account) (I created sam and created a password)
Share the Desktop folder:
a. Right click → Properties → Sharing. Click on Share. In the dropdown, select the created user (sam). Click on Add. Click on Share. Click on Done.
b. Back in Desktop, click on Advanced Sharing… Check box Share this folder. Click on Permissions, then click on Add. In the Enter the object names to select enter the created user (sam). Click on Check Names, then OK.
c. Back in the Permission for Desktop, select the created user and give them all permissions in the checkboxes below. Click on Apply then OK. Again Apply and OK. Close the properties window.
Now if you Right click → Properties → Sharing, you will see the share. It will not coincide with the path. It will probably be something like \\DESKTOP-XXXXXX\Desktop. Make a note of the share.
In Fedora File Browser, type smb://sam@DESKTOP-XXXXX/Desktop. Then type the created user’s password.