Welcome back, everyone, to this lecture on the state's connection or secure shell connection.
Now we're going to perform in order to connect our computers local terminal to the terminal at your
actual linoleum.
So S.H. or secure shell allows us to securely connect to the Lennart server that's hosting our jingo
project.
And we don't just want anybody to be able to visit this computer and start editing our jingo project
files without permission.
So what we do is we use an S-H or secure cell connection, which is going to require the password you
set up during the Lynott setup process and the previous lecture.
That's why it's so important to remember that password in order to actually connect to the actual out
later on.
Now, keep in mind, S.H. can actually be really intimidating for first time users, but in reality,
it's pretty simple.
It's just a way of connecting your computer to another computer through the internet securely.
All we need to actually do is just say, Hey, I want to connect to this computer at this IP address
and then in order to confirm permission, you pass in the password.
Thus, the secure shell and what we end up resulting in is having an actual shell or terminal access
to the computer that is right now for us living in Dallas, Texas.
Now, once we connect through SS H, we're going to again have access to the Debian Linux shell that's
located at the Linux server, which allows us to then use Linux commands at the terminal for installations
and setups, much like we have access to our local command line.
Now, a couple of important notes, Lenovo itself actually provides really great documentation on connecting
on Leno through speech.
So in case you're actually interested in that, you can just go to Lynda.com for stock sports guides.
And there's multiple guides, whether you're on putty, Linux, Windows, Mac OS, it's actually just
go to guides, connect a server over, switch on and then Mac Windows.
And there's actually a little dropdown that allows you to select for different operating systems in
case you want a more step by step written guide.
OK, so if you're a Mac OS or Linux user, you have a little more luck in this because this is already
coming with the ability to connect through speech and essentially all you need to do is copy and paste
the message command from the little panel at the terminal, which if you remember, it was right next
to the IP address information.
And there's essentially two parts of this.
There's speech, which is the actual command line prompt, saying, Hey, I want to securely connect
to a shell.
And then you say, I want to do it at the root node at this IP address.
Obviously, your IP address is going to be different than mine.
And then once you do that, it may ask you a question of Are you sure you want to connect?
I can't verify the fingerprint.
That's essentially your computer telling you, Hey, are you sure this isn't some hackers telling you
to visit this IP address?
You're going to say Yes, it's OK, and then I'll ask you for the password.
Now, if you're on windows, it's going to be a little extra steps because windows by default don't
actually have S.H. typically.
So you can use the PowerShell to connect, but you actually have to first install the Open H client,
which is done through manage optional features on windows.
So what we're going to do because I'm going to Windows Machine and actually most people are usually
on Windows machines.
Even though Mac OS is quite popular with programmers, the vast majority of users are actually still
on Windows.
So what we're going to do is I'm going to show you how to quickly install the open SSA client on a Windows
machine.
That way, we can get some access and then all users can then follow along at the Debian terminal with
the same commands.
So if you're a Mac OS or Linux, you can check out that link.
I posted it in the documentation, which pretty much just says copy and paste that SSA command from
the Lennart panel and you're good to go.
If you're on windows, I'll walk you through those extra steps now.
OK?
Let me head to my computer.
All right, so here I am inside a visual studio code.
Remember, we can hit Terminal to create a new terminal, and the default terminal should be PowerShell.
Remember, you can always hear on this little dropdown arrow and open up a new PowerShell instance.
Now, if you are on a Mac OS or Linux computer, you should have been able to just open up your terminal.
It would have just been a normal terminal, not a Windows PowerShell.
And then all you need to do is come again to your Leonard page here and then just copy and paste the
same access.
So you just need to copy this command, so make sure it's copied.
Come here.
Then you should be able to just right click and or copy paste and you have it here.
Basically, what the saying is S.H. or securely connect using Shell to this root node at this IP address,
then you can hit Enter.
And if you're a Mac OS or Linux that should have worked for you right now, you can see on my Windows
computer it says it doesn't actually recognize the term as some sort of command or function.
So we need to do is make sure that we're at the correct location inside of PowerShell to actually run
this command S-H, and that we have our open SSA client installed as a quick note, as I mentioned in
the slides.
There's actually directions step by step on how to do this on Lennart itself.
If you go to their guides on how to connect to a remote server over SSA.
You can see here I'm specifically on windows, but there's lots of dropdown options like Mac instructions
or Linux instructions, et cetera.
So we're going to do is follow along with the Windows instructions, and what we have to do is check
our manage optional features on actual windows.
So click your Windows key and then check out Manage Optional Features, click on Manage Optional Features
and then check if you have the open access.
Each client already installed on your computer.
If you do have it installed already, then you're good to go.
If not, click on Add feature here and then add open source each client.
You can see here if openness is each client and for good measure.
We're also going to add an install open SSL server, so install there and let it install into your computer
so you have open associates, clients and open SSL server.
Technically speaking, for what we're showing here, you only need the client.
So if you have a client already to go, that should be enough for our applications.
Let's head back now to PowerShell.
All right.
Now here I am back inside PowerShell.
I'm going to make sure to actually restart a new instance a PowerShell.
So those changes take effect.
I'll go ahead and delete this one.
Hit terminal new terminal and open up a fresh PowerShell.
The other thing I want to do is actually see them into where open SSL, which is so I can see.
And then two dots to go back up a directory.
You're going to want to go all the way back up to C drive.
So CD thought that goes back up a directory, CD data backup, another directory CD that that so changed
directory backup.
And now I'm on C drive.
Next thing I want to do is go to under Windows System32 were open source H.S.
So we're going to CD into Windows CD into system.
Thirty two should be able to use Tab to autocomplete these just in case you are having trouble finding
them.
And then after that, you can CD into open access h and it's actually s h or capital there.
OK.
So I can see how I went back up the directory all the way to C and then went back down into open source
h.
Now, if you copy and paste this command, you may still get an error.
It's going to report something like, Hey, PowerShell is not allowed to run this, so I'm going to
actually show you what that looks like.
So if you hit this, it's going to say the same errors before.
But then I'll also give you this nice suggestion saying that the command SSA wasn't found, but that
specific command does exist in the current location and it's asking us, hey, instead type out this
in order to actually run the command.
So we're going to run the exact same line of code, except now it's going to be dark backslash se h
and then your actual IP address.
So essentially same thing here, except is going to be back or dot backslash as h and then root out
and then that particular IP address or whatever your IP addresses.
So I'm going to say dot backslash SDH.
So again, just to make it clear here the backslash s h and then I'm going to paste in that route.
Enter and now it's going to ask you, Hey, it can't actually authenticate this.
Are you sure?
And then you're going to say yes to continue.
And then it's going to ask you for the password.
So I'm going to pass that in.
Note the password is invisible.
And then here we are.
So now I have successfully connected through SE h onto my Linux server that's in Dallas, Texas, and
essentially right now, what I'm doing is I'm at the command line on that computer that's being hosted
somewhere else in the next lecture will go ahead and set up.
Get.
I'll see you there.