We have just discussed how to verify connectivity with remote servers using such comments as being an
assault.
Also using and thus look up command, you are able to get IP addresses for specific hostname of a remote.
Sarah.
In this lecture, I'll explain you how to enable S.H. only knows computer and how to connect to such
links to computer remotely.
It's a very common case, especially when you're around some viertel private serros on one of the hosting
services like Amazon.
Is it too digital ocean or Google Cloud?
You'll usually get LSH enabled out of the box and user generated credentials like user name and password.
You are able to connect to remold of your Bryant sellers from your local computer.
And for that, LSH protocol is used as S.H. Protocol allows you to encrypt entire communication between
two holes that communicate via public open network like Internet and LSH uses DCP and the Port 22.
And that means that if you want to connect to specific public sarovar by SSA, this port DCP 22 must
be open.
In this lecture, I'll explain you how to open this port in Docker container and we will connect to
Doga container run inequal one two from our local computer.
In my case, this Mac Orse computer.
In your case it may be Windows or any Ausra operating system.
We will simulate such kind of remote connectivity, but actually it will happen on our local computer
and we will connect from Wargo computer to Docker container.
But exactly the same happens when you connect to a remote server located somewhere else.
Great.
Let me exit from this container that was running Alpine image and close the step and also let me exit
from this container.
I don't need it anymore.
And I'll create brand new container from scratch and I'll use additional Docker Auction DSP publish
that will publish internal 22 Port DCP that is used by LSH to one of the external ports on my computer.
In such case, I will be able to connect to Docker container from my local computer.
I'll use following syntax locker room or on this item next to I'll add this option, publish this beam
and I'll publish internal Port 22 to external port 20 to 22 like so 22 22.
And after column comes Internal Port.
And finally, I'll specify the name of the image I'll want to create this container based on and it
will be able to image.
And again, with this option, I'll publish internal board 22 to external port 20 to 22.
And in such case, I will be able to connect to this container via SSA.
But I will use cost to import 20 to 22.
All right.
I'll show you that in a minute.
Let's press enter and create this container.
Container was created and I'm in.
And let's not try to type command as a sage and you'll see that the command is not found.
And the reason for that is that S.H. does not come out of the box with this one image.
And we'll need to install additional package in order to enable S.H. communication.
And afterwards, we will start LSH deep service.
Let's do that.
Let's just update APD.
Get a P t get update.
Updated and no less than stellar baggage gold to open this S.H..
Sarah, let's use APD, get install.
And here I'll type open as a sage that Sarah like this.
Installing, yes, it will actually install a bunch of four oz or additional packages.
That's why it will take some time and claim some space on your hard drive.
Let's wait a bit.
I see prompt about geographical area.
Let's choose eight Europe.
Time zone.
Twenty three.
You said that the atrocities where just generated because atrocities are required for a protocol and
now it seems that Arizona was configured and set up.
And let's now try to enter at the same command.
And I see that now this command is available and I am able to use it along with other options like this.
L Address a Dash, Sikhi Prospekt and so on.
Now, literally five ways or as a sage service is up and running or not.
But Atlas and our command service as a sage Steptoe's and I see that as a sage D demon is not running.
Let's started service as a sage start.
I see message start and open BSD sic your shell, Sarovar, SSL, Qadeem and Nola's verify status again.
And now I see that as a Sage D is running and that means that now I am able to try to connect to the
server remotely by SS age.
But please note is that no, I am logged in as a route user and if I enter, who am I?
I'll see this information as well here.
And by default, connections by as a sage or ares or remold to service to the Linux computer as route
user are blocked.
It is actually a default security measure.
And let's actually quickly create additional custom user.
And let's try to connect remotely under this new user by LSH.
Please accept that we're able to create new user using IIS or use our add or add user comments with
the end user command.
You are able to initialize new work and directorate's said password just in one command using interactive
brons.
That's why I'll use it at User.
And here I'll specify.
Name for new user.
I'll set my name.
You could use your name if you want.
Ed in New York, we eat in the home directory, slash homeless lesbo Les.
And here I could set new password.
I'll set it to one, two, three.
Right.
Type one, two or three.
Here, I'll press enter everywhere.
And information is correct.
Let's make a short pose.
No.
And continue to eat.
I'll see you in a moment.
By.