and this video will look at how to do ssh on your wsl terminal using putty on your windows system
so let's get started so first we'll download putty so for that we'll go to our chrome browser
and here search for putty download
and here in your first search result you will have this putty.org so just click on it and here
click on this the you can download putty here so once you click on this one in the next page
you will have this the exe file for your windows system so i have my 64-bit so i click on this one
uh which will start my download for putty.exe so my footy.exe is downloaded
so now let's go to our download folder so here my put it downloaded so let me copy to my desktop
so now let's open the spooti and for doing the ssh on wsl this local host
and go i mean the port will be the default 22 and say open
so here we are not able to ssh on your wsl terminal so we have to make some changes
to our wsl terminal so say okay and let's close this one so now we'll go to our ubuntu
app so here i have my ubuntu app so first we'll do a sudo access to the current user so i say sudo su
and i enter my password so uh i am using my sudo access
now first we'll update our ubuntu so for that i say apt gate and say update
so it will start my update which will take a while so our update is completed so now first
we'll uninstall our ssh service for that uh here so i have this command so let me copy this command
and which will remove this open ssh server from my ubuntu and just enter
and say yes so now our open ssh server is uh uninstalled and now
we'll reinstall this open ssh server so for that and let me copy this command
and execute this so which will reinstall my open ssh server so our open ssh server is reinstalled
so now we have to change our ssh config file so for that we're going to open this
ss file in vi editor so let's open this one here in this file you have to search for this password
authentication and how to set it yes so let's scroll down
so here you have this password authentication so you have to say yes
and at the bottom you have to add one line so here i say enter and here you have to copy this
allow user and you have to set your user so i'm using admin one as a user and i save this changes
so our ssh conf file is changed so now let's look at what is the next step
so now we'll check our services so for that let's copy this command
and let's run it so it says ssh is not running so for that if you want to start it
this is service assistance start so which will start your services now you have to restart for
that you have to say full restart so let's copy this command as well so it's restarted
your services so now what we have to do we have to run this command via sudo so let me open this
and enter so here what you have to do you have to search for this sudo all so let me scroll down
so here we have sudo
and center so after that line you have to add this line
and once you edit this one so if you want to come out of this one you have to say control x
enter yes so our va pseudo changes are saved so i think that's all for this
configuration changes now let's go back to our
putty so let's open this putty and say
localhost and open it and say yes and let's enter our user and let's enter password
so we are able to login so now let's do a ls iphone ltr so let's see what is that so i'm
inside my admin home directory and now let's create one file so for that i say test dot txt
and enter some high hello and save this file so our file is created
now let's check this file in our ubuntu system so i go to this open to f and say
iphone ltr and if i say get test so i can say hi hello so this is how you can you know
ssh on your wsl terminal and yeah that's all for this video hope you will be able to
make the configuration changes for your wsn terminal and you will be able to do a ssh
on it and thank you for watching this video and see you in the next video