How do I connect to Ubuntu in WSL from Windows via SFTP?

Step 1

Set the root password for Ubuntu in WSL.

Step 2

sudo su

Step 3

apt install openssh-server

virtualizationhowto.com/2021/01/copy-files-to-windows-subsystem-for-linux-wsl2-with-ssh#h-enable-ssh-in-windows-subsystem-for-linux-wsl

Step 4

cat << EOF | tee /etc/ssh/sshd_config.d/dfediuk.conf
PasswordAuthentication yes
PermitRootLogin yes
EOF

stackoverflow.com/a/76856292

Step 5

service ssh restart

Step 6

apt install net-tools

virtualizationhowto.com/2021/01/copy-files-to-windows-subsystem-for-linux-wsl2-with-ssh#h-enable-ssh-in-windows-subsystem-for-linux-wsl

Step 7

How do I find out the IP address of my Ubuntu in WSL?

Step 8

Now you can use an SFTP client like FileZilla.
How do I install FileZilla to Windows 10?

2023-10-29--17-10-21

2023-10-29--17-10-21