How to connect to WSL from WinSCP

 Hi, In this post, we will see how to connect to WSL from WinSCP


 Install OpenSSH Server:

Install openssh using command 

Command 1: "sudo apt install openssh-server -y"



After installation, confirm that the service is available:

Command 2: "systemctl list-unit-files | grep ssh"



If you see ssh.service, then it's installed correctly.

Start and Enable SSH Service

Try starting the SSH service:

Command 3: "sudo service ssh start"

Enable it to start on boot:

Command 4: "sudo systemctl enable ssh"




Check its status:

Command 5: "sudo systemctl status ssh"




If it's running, you're good to go.


Open WSL and connect to WSL using like below screenshot.

Hostname: localhost

Username: your WSL username

Password: your WSL password





Hope it helps!. Thank you.




Comments

Popular posts from this blog

How to move WSL from one drive to another drive

How to use Grep Command