How to Remote Admin using SSH on Windows and Linux Server

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
today I want to talk about SSH server Administration and why SSH is such a wonderful tool what I want to show you today is I currently have a Linux box that's a server and I want to connect up to that server via SSH or secure shell in order to administer some commands to edit my new web server in the way I will be doing this is by issuing commands on Linux via SSH So the plan here is to connect up a Windows computer and use an SSH tunnel to complete these steps I do this quite often and it is important part of SSH Administration I'll show you how great this tool can be because it doesn't need to be from a Windows computer it could also be from a Mac or another fellow Linux box again it really doesn't matter all you need on this side is SSH client tool tools installed and I have videos for all of this so I'll put a link in the description below so you can check out videos on how to install this portion if you're missing it but a lot of people ask what SSH is good for a learning experience to figure out exactly what to use this on so make sure to smash that like button for me and let's get started so sometimes you don't have access to your wonderful Linux box perhaps you're at work and you use a Windows computer and you need to get access or let's just face it we're too lazy to go over to the Box itself well SSH can help us let's make edits to a brand new index page on a web server that I just got done installing and the way that I'm going to do this I'm going to bring up a terminal of my choice just hit the start menu and search for terminal or the command prompt it doesn't matter as long as you have the SSH client tools installed one thing that you'll need to know is the IP address locally publicly or however you need to connect to your SSH server so I'm going to show you how to figure that out on the Linux side of things real quick right here I'm logged into my server where I have a web server installed I'm going to go up the top I'm going to click on icons hit wired connection wired settings and then I'm going to click on these settings so I can see my IP settings look at that 172.168.1.7 I'm going to need to remember this in order to connect up to my server another way of doing this if you want and this is probably easier just because it's available in almost every single Linux distribution through a terminal just type in IP space a and then look for an ethernet adapter that's connected great notice you have an IP address listed here as well the 172.168.1.7 for me and that's the main thing I need from this end I also need to know my username and password for that user on the server side I know that and my username is Savvy Nick so that's the user I'll be connecting to let's go back to my remote Windows computer where I'm going to access the Linux server from in order to do that I'm going to use the SSH client tools and I can do that by typing SSH space the username I'm using to connect so Savvy Nick as I mentioned before and then the ad symbol followed by the IP address of the server that has SSH or openssh server installed that was on 172.168.1.7 for me yours of course can be a public IP address a domain name let's say it was a Google server and it existed on google.com well it would be Savvy Nick google.com for an example anyways this is enough to get me started so I'm going to press enter and now I'm being asked for that username's password located on that IP address where I'm connecting to so I'm going to type in that user's password right now and that will actually get me me and notice it says welcome to Ubuntu 20.04 and it says just a few things about some updates that are available but basically this means I have successfully logged into my remote server now another thing I want to show you is what's currently being displayed on my web server if I try accessing it from a web page so I'll open up a web browser I'll type in the IP address and look at that I have the Apache 2 default web page here and it just shows me a bunch of stuff so the goal here is to replace this page with something else but before we do take a second if you're learning something subscribe below hit that notification Bell for more videos and learning experiences anyways I'm going to minimize this we'll check that out in a moment now on to navigating my server so this is much like navigating a Linux terminal or console or if you type in LS that shows you a list of all the current items in the current working directory if you need to know where you're located you can type in PWD that shows me that I'm in the Home Savvy Nick directory well I know where I need to navigate to in order to change my HTML file around specifically the index file and that is if I change directories from root to the VAR www folder I can press LS that lists the contents again and I see there's HTML Let Me Clear things out and then I'll type in CD HTML again changing directories into the HTML folder or directory I'm going to list the contents here and look at that I see the index.html file now is this the one that we were looking at a moment ago well we'll see by changing it use your favorite editor at this point either Nano Vim whatever you want anyways open up the file that you want to edit and look at that this does look exactly like what I was looking for what I'm going to do here is actually change the background color real quick is fairly easy I'm going to go right here put in a bunch of F's and let's see what changes but I'm also going to scroll down a bit and just put in something else Savvy Nick's website I'm going to change that element around as well and then I'm going to save by doing Ctrl X here in Nano and saving the modified buffer pressing enter and it says permission denied well that's because I didn't use super privileges to edit this file which is needed so I need to put a sudo up front and go through a very similar process I'm going to just change the body background color again so that was six F's and you might as well put F's in the comments section because I forgot to sudo in but regardless we're all learning together and back to the Apache to default header here I'm going to put Savvy Nick was here this is now my AI website since I just took it over I'm gonna do control X and yes I want to save the modified buffer yes I want to rewrite the file and that's all I'll really have to do what I've done is remotely log in from a Windows computer that I had current access to to get to my Linux server where I access the web server portion of the server and made a change to the HTML file so you can see how powerful SSH is now I'm going back to a web browser typing in the IP address of the server and then I'm going to refresh to see that I definitely screwed something up back in here let me just use vim and open this up or VI and I don't think that color was a good choice maybe uh all zeros here instead back to the web browser now we have a black background very good so where did my text go I'm not so sure so I'm going to actually edit it works instead so again back to here I'm going to edit that index.html file on my server and now that I see the it works I'm going to edit that to Savvy Nick was here and after I have it saved again I can refresh and isn't that wonderful that I can be doing remote work directly from my terminal using SSH it's super simple and now you can see how we've accomplished everything we wanted to do which was use an SSH client in Windows to SSH into a Linux box and make an edit to the web server using commands via SSH congratulations if you made it this far you see the power in using SSH Administration let me know in the comments section what kind of administration that you do for your own servers or computers don't forget to subscribe below hit that notification Bell for future videos smash that like button and I'll catch you in another video thanks for watching
Info
Channel: SavvyNik
Views: 64,514
Rating: undefined out of 5
Keywords: windows ssh, ssh login, how to use ssh, ssh remote access, ssh remote desktop, ssh configuration, ssh connection, ssh, windows 11, windows 10, ssh windows 11, ssh windows, ssh tutorial, ssh client, openssh windows 11, how to ssh, ssh on windows 11, how to connect ssh in windows, ssh client on windows 11, ssh from windows to linux, how to ssh into a computer, how to use ssh to connect to a remote server in windows, ssh server, ssh command, putty, open ssh
Id: _3M7Y0iC7PE
Channel Id: undefined
Length: 8min 53sec (533 seconds)
Published: Thu Dec 22 2022
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.