1
00:00:04,590 --> 00:00:11,710
We have just discussed how to verify connectivity with remote servers using such comments as being an

2
00:00:11,850 --> 00:00:12,280
assault.

3
00:00:12,840 --> 00:00:19,230
Also using and thus look up command, you are able to get IP addresses for specific hostname of a remote.

4
00:00:19,300 --> 00:00:19,690
Sarah.

5
00:00:20,850 --> 00:00:27,220
In this lecture, I'll explain you how to enable S.H. only knows computer and how to connect to such

6
00:00:27,270 --> 00:00:29,100
links to computer remotely.

7
00:00:29,700 --> 00:00:36,600
It's a very common case, especially when you're around some viertel private serros on one of the hosting

8
00:00:36,600 --> 00:00:38,080
services like Amazon.

9
00:00:38,100 --> 00:00:41,130
Is it too digital ocean or Google Cloud?

10
00:00:41,760 --> 00:00:48,150
You'll usually get LSH enabled out of the box and user generated credentials like user name and password.

11
00:00:48,420 --> 00:00:53,850
You are able to connect to remold of your Bryant sellers from your local computer.

12
00:00:54,210 --> 00:01:01,680
And for that, LSH protocol is used as S.H. Protocol allows you to encrypt entire communication between

13
00:01:01,770 --> 00:01:11,250
two holes that communicate via public open network like Internet and LSH uses DCP and the Port 22.

14
00:01:11,790 --> 00:01:19,410
And that means that if you want to connect to specific public sarovar by SSA, this port DCP 22 must

15
00:01:19,410 --> 00:01:20,070
be open.

16
00:01:21,250 --> 00:01:28,260
In this lecture, I'll explain you how to open this port in Docker container and we will connect to

17
00:01:28,380 --> 00:01:31,900
Doga container run inequal one two from our local computer.

18
00:01:31,920 --> 00:01:33,810
In my case, this Mac Orse computer.

19
00:01:34,050 --> 00:01:37,230
In your case it may be Windows or any Ausra operating system.

20
00:01:37,950 --> 00:01:43,650
We will simulate such kind of remote connectivity, but actually it will happen on our local computer

21
00:01:43,890 --> 00:01:46,490
and we will connect from Wargo computer to Docker container.

22
00:01:47,060 --> 00:01:52,350
But exactly the same happens when you connect to a remote server located somewhere else.

23
00:01:52,900 --> 00:01:53,120
Great.

24
00:01:53,520 --> 00:02:00,840
Let me exit from this container that was running Alpine image and close the step and also let me exit

25
00:02:00,840 --> 00:02:02,520
from this container.

26
00:02:02,580 --> 00:02:04,050
I don't need it anymore.

27
00:02:05,100 --> 00:02:12,630
And I'll create brand new container from scratch and I'll use additional Docker Auction DSP publish

28
00:02:12,930 --> 00:02:21,270
that will publish internal 22 Port DCP that is used by LSH to one of the external ports on my computer.

29
00:02:21,300 --> 00:02:26,370
In such case, I will be able to connect to Docker container from my local computer.

30
00:02:26,910 --> 00:02:34,620
I'll use following syntax locker room or on this item next to I'll add this option, publish this beam

31
00:02:34,950 --> 00:02:42,710
and I'll publish internal Port 22 to external port 20 to 22 like so 22 22.

32
00:02:43,500 --> 00:02:45,660
And after column comes Internal Port.

33
00:02:46,140 --> 00:02:52,140
And finally, I'll specify the name of the image I'll want to create this container based on and it

34
00:02:52,140 --> 00:02:53,340
will be able to image.

35
00:02:53,730 --> 00:03:01,390
And again, with this option, I'll publish internal board 22 to external port 20 to 22.

36
00:03:02,000 --> 00:03:06,140
And in such case, I will be able to connect to this container via SSA.

37
00:03:06,300 --> 00:03:09,370
But I will use cost to import 20 to 22.

38
00:03:09,750 --> 00:03:10,150
All right.

39
00:03:10,460 --> 00:03:11,640
I'll show you that in a minute.

40
00:03:12,210 --> 00:03:14,790
Let's press enter and create this container.

41
00:03:14,850 --> 00:03:17,150
Container was created and I'm in.

42
00:03:17,520 --> 00:03:22,830
And let's not try to type command as a sage and you'll see that the command is not found.

43
00:03:23,340 --> 00:03:28,080
And the reason for that is that S.H. does not come out of the box with this one image.

44
00:03:28,410 --> 00:03:33,540
And we'll need to install additional package in order to enable S.H. communication.

45
00:03:34,080 --> 00:03:37,620
And afterwards, we will start LSH deep service.

46
00:03:38,190 --> 00:03:38,700
Let's do that.

47
00:03:39,000 --> 00:03:40,760
Let's just update APD.

48
00:03:40,830 --> 00:03:42,720
Get a P t get update.

49
00:03:45,410 --> 00:03:49,420
Updated and no less than stellar baggage gold to open this S.H..

50
00:03:49,550 --> 00:03:52,760
Sarah, let's use APD, get install.

51
00:03:53,570 --> 00:03:59,030
And here I'll type open as a sage that Sarah like this.

52
00:04:01,830 --> 00:04:07,300
Installing, yes, it will actually install a bunch of four oz or additional packages.

53
00:04:07,960 --> 00:04:12,670
That's why it will take some time and claim some space on your hard drive.

54
00:04:13,120 --> 00:04:13,860
Let's wait a bit.

55
00:04:15,050 --> 00:04:17,360
I see prompt about geographical area.

56
00:04:17,450 --> 00:04:19,279
Let's choose eight Europe.

57
00:04:20,399 --> 00:04:21,170
Time zone.

58
00:04:21,839 --> 00:04:22,620
Twenty three.

59
00:04:24,710 --> 00:04:31,460
You said that the atrocities where just generated because atrocities are required for a protocol and

60
00:04:31,460 --> 00:04:34,610
now it seems that Arizona was configured and set up.

61
00:04:35,000 --> 00:04:37,450
And let's now try to enter at the same command.

62
00:04:37,670 --> 00:04:44,330
And I see that now this command is available and I am able to use it along with other options like this.

63
00:04:44,380 --> 00:04:47,480
L Address a Dash, Sikhi Prospekt and so on.

64
00:04:48,020 --> 00:04:52,040
Now, literally five ways or as a sage service is up and running or not.

65
00:04:52,430 --> 00:05:00,470
But Atlas and our command service as a sage Steptoe's and I see that as a sage D demon is not running.

66
00:05:00,830 --> 00:05:03,860
Let's started service as a sage start.

67
00:05:04,610 --> 00:05:11,680
I see message start and open BSD sic your shell, Sarovar, SSL, Qadeem and Nola's verify status again.

68
00:05:11,930 --> 00:05:18,110
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

69
00:05:18,110 --> 00:05:20,730
server remotely by SS age.

70
00:05:21,380 --> 00:05:27,500
But please note is that no, I am logged in as a route user and if I enter, who am I?

71
00:05:27,740 --> 00:05:29,810
I'll see this information as well here.

72
00:05:30,680 --> 00:05:37,400
And by default, connections by as a sage or ares or remold to service to the Linux computer as route

73
00:05:37,430 --> 00:05:38,990
user are blocked.

74
00:05:39,440 --> 00:05:41,700
It is actually a default security measure.

75
00:05:42,220 --> 00:05:45,350
And let's actually quickly create additional custom user.

76
00:05:45,630 --> 00:05:50,830
And let's try to connect remotely under this new user by LSH.

77
00:05:51,490 --> 00:05:58,370
Please accept that we're able to create new user using IIS or use our add or add user comments with

78
00:05:58,370 --> 00:05:59,710
the end user command.

79
00:05:59,780 --> 00:06:06,560
You are able to initialize new work and directorate's said password just in one command using interactive

80
00:06:06,590 --> 00:06:06,950
brons.

81
00:06:07,310 --> 00:06:09,830
That's why I'll use it at User.

82
00:06:10,130 --> 00:06:11,480
And here I'll specify.

83
00:06:11,540 --> 00:06:12,920
Name for new user.

84
00:06:13,130 --> 00:06:14,210
I'll set my name.

85
00:06:14,390 --> 00:06:16,050
You could use your name if you want.

86
00:06:17,030 --> 00:06:21,540
Ed in New York, we eat in the home directory, slash homeless lesbo Les.

87
00:06:21,960 --> 00:06:24,420
And here I could set new password.

88
00:06:24,480 --> 00:06:26,220
I'll set it to one, two, three.

89
00:06:27,120 --> 00:06:27,290
Right.

90
00:06:27,300 --> 00:06:28,590
Type one, two or three.

91
00:06:29,430 --> 00:06:31,260
Here, I'll press enter everywhere.

92
00:06:31,290 --> 00:06:32,880
And information is correct.

93
00:06:33,420 --> 00:06:34,320
Let's make a short pose.

94
00:06:34,320 --> 00:06:34,560
No.

95
00:06:34,560 --> 00:06:35,690
And continue to eat.

96
00:06:35,850 --> 00:06:36,900
I'll see you in a moment.

97
00:06:37,120 --> 00:06:37,350
By.

