How to Install SSH Server on Windows 10 - Remote into a computer using Command Line [OpenSSH]

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
hey savvy people it's savvy nick here and today we are going to be installing an ssh server on windows 10. this will allow you to access your windows 10 system remotely through a command line interface such as command prompt or terminal let's first hit the start button and then search for features in features this is where we'll enable the open ssh server but we want to select manage optional features instead of the ones suggested up above make sure you select this option and that will load in settings for optional features and if we scroll down we can see the various different features that we currently have installed what we want is the add a feature button click on that and then scroll down until you find open ssh server this is the option we want so we'll just click on that and if you're new in stopping by to watch a video today make sure to subscribe below and hit the notification bell for more operating system and programming videos alright and at this point you want to make sure that you have an internet connection or else the feature will not install properly it also says that it's around 1.23 megabytes here but it's really around 10 megabytes instead when everything is installed just a little note we can hit install if you're ready and in order to check the progress we can actually go up here to the top left and press the back button it'll show that the feature is getting added and what the current progress is it might take a few moments in order to finish up the install and once it is installed we'll be able to see it in the list i see open ssh server now installed and you can hit the uninstall button if you don't want it anymore alright and we're not quite done yet so open ssh server runs on your computer as a service and will allow for incoming ssh remote connections this can be applied locally or even publicly if you want to set up your firewall and router to allow incoming public connections although i do not recommend doing this and we'll be doing it locally here today this is a great tool to be able to access your computer via a command line interface and make quick edits or even transfer files let's exit out of here and we'll want to restart the computer so that the computer registers open ssh as a service so let's do that real quick start power restart and give it a few moments and if you went ahead and made it this far please hit the like button it really does help me out and now that things are restarted by default the ssh service is not enabled as a running service so we'll have to enable it in services if we go to the search bar and just type in services then we get this services app let's launch that in this list of services we'll search through until we find open ssh server here it is and currently it says that it is of a startup type of manual what we want is automatic we can right click on this process go to properties and then we'll see this startup type under startup type there's a drop down box which allows you to set it to automatic if you'd like you can also disable the service at any point but what i want is the automatic service type that way it starts up automatically with the computer and currently since the service status is stopped i want to start the service in order to be able to use it after hitting start we'll see that the service is now running and we can hit ok we can also confirm it's running here in the background finally there's one other thing we need to do before we test our connection and that's create a firewall rule so if we go down to the search bar again and search for firewall we'll see firewall and network protection click on that and what we're looking for in here is the advanced settings option this will ask you for administrative privileges you can hit yes and that will load the windows defender firewall so since we want to enable an inbound connection we can go to the inbound rules and create a new rule on the right hand side inside of here we want to specify a specific port that we want to allow inbound to this computer now this is only locally right now i'm not messing with the router then i'm going to hit next and choose tcp and specify my port so the default port for ssh is port 22 and that's what i'll use and then hit next now i'm selecting the default option which is allow the connection and i'm hitting next again on this screen we have domain private and public so these are the types of networks where this rule will apply for i'm going to allow it to apply for any of the three types and then i'm going to hit next finally i'm asked for a name so i'll just put ssh here so that reminds me of what the rule is for and i hit finish after all that's done we'll see ssh in the background and it says profile all and it's currently enabled because it says yes all right great now it's time to find the ip address of this computer there's multiple ways of doing that you can either run the command prompt and type in ipconfig or if you want a graphical method we'll search for view your network properties and what we're looking for is the ipv4 address and that's currently set to 192.168.1.116 for me at least yours of course might be different but that's my current ipv4 address and i'll have to remember this address in order to be able to connect to this computer via ssh all right now i'll go over to another computer on my network where i can try sshing into this computer and now i'm over on my linux desktop computer where i'll try ssh-ing remotely into the computer where i just set up openssh on and in order to do that i launched a terminal here so my command line interface and i'll type in ssh space a username for the computer i'm connecting to so a user on that is savvy nick yours of course will be different followed by at the ip address that we just found out so mine was 192.168.1.116 now i'm being asked for my password in order to connect with my username i'll type in my password if nothing's being printed out it still is typing it in this is just a security mechanism press enter after you've typed in your password and if you got this far congratulations you've successfully remoted into your windows 10 computer using ssh and successfully set up open ssh on the windows 10 computer we can now navigate through the computer if we want with such things as change directory so i might go to the desktop and list the contents here which is currently really nothing on the desktop but if i wanted to make let's say a file i could maybe i wanted to just echo savvy nick inside of a new file called test.txt now we'll go back to the windows 10 computer and verify if the file is there on the desktop all right back on my windows 10 desktop now i have this file called test and everything looks like it's working successfully i'm connected to the right computer and that's about it if you have any questions comments or suggestions please make sure to post them in the comments section below also make sure to subscribe for future videos and make sure to like the video catch me in a great community on discord and i'll catch you in another video thanks for watching
Info
Channel: SavvyNik
Views: 114,820
Rating: undefined out of 5
Keywords: ssh windows 10, openssh windows 10, ssh windows, ssh server, ssh server windows 10, openssh, ssh, windows ssh, openssh server windows 10, open ssh, how to install ssh on windows 10, windows ssh server, openssh windows, how to create ssh server, how to setup ssh server on windows 10, how to enable ssh in windows 10, ssh tutorial, ssh in windows 10, ssh server windows
Id: HCmEB5qtkSY
Channel Id: undefined
Length: 7min 45sec (465 seconds)
Published: Wed Nov 04 2020
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.