1
00:00:05,320 --> 00:00:10,090
Welcome back, everyone, to this lecture on the state's connection or secure shell connection.

2
00:00:10,240 --> 00:00:15,760
Now we're going to perform in order to connect our computers local terminal to the terminal at your

3
00:00:15,760 --> 00:00:16,690
actual linoleum.

4
00:00:17,680 --> 00:00:23,650
So S.H. or secure shell allows us to securely connect to the Lennart server that's hosting our jingo

5
00:00:23,650 --> 00:00:24,220
project.

6
00:00:24,610 --> 00:00:29,290
And we don't just want anybody to be able to visit this computer and start editing our jingo project

7
00:00:29,290 --> 00:00:30,340
files without permission.

8
00:00:30,760 --> 00:00:36,730
So what we do is we use an S-H or secure cell connection, which is going to require the password you

9
00:00:36,730 --> 00:00:39,920
set up during the Lynott setup process and the previous lecture.

10
00:00:39,940 --> 00:00:43,960
That's why it's so important to remember that password in order to actually connect to the actual out

11
00:00:43,960 --> 00:00:44,530
later on.

12
00:00:45,910 --> 00:00:51,280
Now, keep in mind, S.H. can actually be really intimidating for first time users, but in reality,

13
00:00:51,280 --> 00:00:52,110
it's pretty simple.

14
00:00:52,120 --> 00:00:56,620
It's just a way of connecting your computer to another computer through the internet securely.

15
00:00:56,980 --> 00:01:01,720
All we need to actually do is just say, Hey, I want to connect to this computer at this IP address

16
00:01:01,930 --> 00:01:05,530
and then in order to confirm permission, you pass in the password.

17
00:01:05,620 --> 00:01:12,760
Thus, the secure shell and what we end up resulting in is having an actual shell or terminal access

18
00:01:12,760 --> 00:01:16,570
to the computer that is right now for us living in Dallas, Texas.

19
00:01:17,980 --> 00:01:22,840
Now, once we connect through SS H, we're going to again have access to the Debian Linux shell that's

20
00:01:22,840 --> 00:01:28,150
located at the Linux server, which allows us to then use Linux commands at the terminal for installations

21
00:01:28,150 --> 00:01:32,590
and setups, much like we have access to our local command line.

22
00:01:34,130 --> 00:01:39,680
Now, a couple of important notes, Lenovo itself actually provides really great documentation on connecting

23
00:01:39,680 --> 00:01:41,710
on Leno through speech.

24
00:01:42,050 --> 00:01:46,820
So in case you're actually interested in that, you can just go to Lynda.com for stock sports guides.

25
00:01:47,090 --> 00:01:52,820
And there's multiple guides, whether you're on putty, Linux, Windows, Mac OS, it's actually just

26
00:01:52,820 --> 00:01:56,840
go to guides, connect a server over, switch on and then Mac Windows.

27
00:01:56,840 --> 00:02:00,710
And there's actually a little dropdown that allows you to select for different operating systems in

28
00:02:00,710 --> 00:02:03,260
case you want a more step by step written guide.

29
00:02:04,310 --> 00:02:10,310
OK, so if you're a Mac OS or Linux user, you have a little more luck in this because this is already

30
00:02:10,310 --> 00:02:14,750
coming with the ability to connect through speech and essentially all you need to do is copy and paste

31
00:02:14,750 --> 00:02:19,880
the message command from the little panel at the terminal, which if you remember, it was right next

32
00:02:19,880 --> 00:02:21,700
to the IP address information.

33
00:02:21,710 --> 00:02:23,120
And there's essentially two parts of this.

34
00:02:23,450 --> 00:02:28,430
There's speech, which is the actual command line prompt, saying, Hey, I want to securely connect

35
00:02:28,430 --> 00:02:29,270
to a shell.

36
00:02:29,540 --> 00:02:33,520
And then you say, I want to do it at the root node at this IP address.

37
00:02:33,530 --> 00:02:36,200
Obviously, your IP address is going to be different than mine.

38
00:02:36,410 --> 00:02:40,270
And then once you do that, it may ask you a question of Are you sure you want to connect?

39
00:02:40,280 --> 00:02:41,690
I can't verify the fingerprint.

40
00:02:41,930 --> 00:02:45,860
That's essentially your computer telling you, Hey, are you sure this isn't some hackers telling you

41
00:02:45,860 --> 00:02:46,960
to visit this IP address?

42
00:02:46,970 --> 00:02:50,000
You're going to say Yes, it's OK, and then I'll ask you for the password.

43
00:02:51,330 --> 00:02:56,460
Now, if you're on windows, it's going to be a little extra steps because windows by default don't

44
00:02:56,460 --> 00:02:58,470
actually have S.H. typically.

45
00:02:58,830 --> 00:03:04,050
So you can use the PowerShell to connect, but you actually have to first install the Open H client,

46
00:03:04,350 --> 00:03:07,050
which is done through manage optional features on windows.

47
00:03:07,980 --> 00:03:11,880
So what we're going to do because I'm going to Windows Machine and actually most people are usually

48
00:03:11,880 --> 00:03:12,720
on Windows machines.

49
00:03:13,050 --> 00:03:18,840
Even though Mac OS is quite popular with programmers, the vast majority of users are actually still

50
00:03:18,840 --> 00:03:19,380
on Windows.

51
00:03:19,410 --> 00:03:24,060
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

52
00:03:24,060 --> 00:03:24,480
machine.

53
00:03:24,720 --> 00:03:30,060
That way, we can get some access and then all users can then follow along at the Debian terminal with

54
00:03:30,060 --> 00:03:30,840
the same commands.

55
00:03:30,960 --> 00:03:33,750
So if you're a Mac OS or Linux, you can check out that link.

56
00:03:33,750 --> 00:03:38,640
I posted it in the documentation, which pretty much just says copy and paste that SSA command from

57
00:03:38,640 --> 00:03:40,350
the Lennart panel and you're good to go.

58
00:03:40,650 --> 00:03:43,260
If you're on windows, I'll walk you through those extra steps now.

59
00:03:43,590 --> 00:03:43,830
OK?

60
00:03:44,190 --> 00:03:45,330
Let me head to my computer.

61
00:03:45,720 --> 00:03:48,210
All right, so here I am inside a visual studio code.

62
00:03:48,240 --> 00:03:53,550
Remember, we can hit Terminal to create a new terminal, and the default terminal should be PowerShell.

63
00:03:53,760 --> 00:03:58,800
Remember, you can always hear on this little dropdown arrow and open up a new PowerShell instance.

64
00:03:59,370 --> 00:04:04,620
Now, if you are on a Mac OS or Linux computer, you should have been able to just open up your terminal.

65
00:04:04,620 --> 00:04:07,350
It would have just been a normal terminal, not a Windows PowerShell.

66
00:04:07,620 --> 00:04:13,500
And then all you need to do is come again to your Leonard page here and then just copy and paste the

67
00:04:13,620 --> 00:04:14,750
same access.

68
00:04:14,760 --> 00:04:17,820
So you just need to copy this command, so make sure it's copied.

69
00:04:18,209 --> 00:04:18,810
Come here.

70
00:04:18,839 --> 00:04:22,530
Then you should be able to just right click and or copy paste and you have it here.

71
00:04:22,560 --> 00:04:31,410
Basically, what the saying is S.H. or securely connect using Shell to this root node at this IP address,

72
00:04:31,870 --> 00:04:32,850
then you can hit Enter.

73
00:04:33,800 --> 00:04:38,000
And if you're a Mac OS or Linux that should have worked for you right now, you can see on my Windows

74
00:04:38,000 --> 00:04:42,620
computer it says it doesn't actually recognize the term as some sort of command or function.

75
00:04:43,840 --> 00:04:49,300
So we need to do is make sure that we're at the correct location inside of PowerShell to actually run

76
00:04:49,300 --> 00:04:55,480
this command S-H, and that we have our open SSA client installed as a quick note, as I mentioned in

77
00:04:55,480 --> 00:04:56,020
the slides.

78
00:04:56,350 --> 00:05:00,160
There's actually directions step by step on how to do this on Lennart itself.

79
00:05:00,160 --> 00:05:03,820
If you go to their guides on how to connect to a remote server over SSA.

80
00:05:04,390 --> 00:05:10,630
You can see here I'm specifically on windows, but there's lots of dropdown options like Mac instructions

81
00:05:10,630 --> 00:05:12,820
or Linux instructions, et cetera.

82
00:05:13,150 --> 00:05:16,780
So we're going to do is follow along with the Windows instructions, and what we have to do is check

83
00:05:17,020 --> 00:05:20,080
our manage optional features on actual windows.

84
00:05:20,380 --> 00:05:27,310
So click your Windows key and then check out Manage Optional Features, click on Manage Optional Features

85
00:05:27,490 --> 00:05:31,250
and then check if you have the open access.

86
00:05:31,270 --> 00:05:33,970
Each client already installed on your computer.

87
00:05:34,420 --> 00:05:36,580
If you do have it installed already, then you're good to go.

88
00:05:36,880 --> 00:05:42,610
If not, click on Add feature here and then add open source each client.

89
00:05:42,790 --> 00:05:45,610
You can see here if openness is each client and for good measure.

90
00:05:45,610 --> 00:05:52,510
We're also going to add an install open SSL server, so install there and let it install into your computer

91
00:05:52,810 --> 00:05:56,170
so you have open associates, clients and open SSL server.

92
00:05:56,500 --> 00:05:59,320
Technically speaking, for what we're showing here, you only need the client.

93
00:05:59,320 --> 00:06:03,130
So if you have a client already to go, that should be enough for our applications.

94
00:06:03,370 --> 00:06:05,020
Let's head back now to PowerShell.

95
00:06:05,860 --> 00:06:06,250
All right.

96
00:06:06,280 --> 00:06:08,560
Now here I am back inside PowerShell.

97
00:06:08,740 --> 00:06:11,350
I'm going to make sure to actually restart a new instance a PowerShell.

98
00:06:11,350 --> 00:06:12,520
So those changes take effect.

99
00:06:12,820 --> 00:06:14,200
I'll go ahead and delete this one.

100
00:06:14,570 --> 00:06:17,860
Hit terminal new terminal and open up a fresh PowerShell.

101
00:06:18,220 --> 00:06:23,440
The other thing I want to do is actually see them into where open SSL, which is so I can see.

102
00:06:24,280 --> 00:06:26,830
And then two dots to go back up a directory.

103
00:06:27,190 --> 00:06:29,920
You're going to want to go all the way back up to C drive.

104
00:06:29,950 --> 00:06:36,700
So CD thought that goes back up a directory, CD data backup, another directory CD that that so changed

105
00:06:36,700 --> 00:06:37,630
directory backup.

106
00:06:37,630 --> 00:06:38,860
And now I'm on C drive.

107
00:06:39,250 --> 00:06:44,650
Next thing I want to do is go to under Windows System32 were open source H.S.

108
00:06:44,740 --> 00:06:50,560
So we're going to CD into Windows CD into system.

109
00:06:51,190 --> 00:06:55,480
Thirty two should be able to use Tab to autocomplete these just in case you are having trouble finding

110
00:06:55,480 --> 00:06:55,690
them.

111
00:06:56,140 --> 00:07:02,380
And then after that, you can CD into open access h and it's actually s h or capital there.

112
00:07:02,890 --> 00:07:03,190
OK.

113
00:07:03,490 --> 00:07:09,280
So I can see how I went back up the directory all the way to C and then went back down into open source

114
00:07:09,280 --> 00:07:09,620
h.

115
00:07:10,090 --> 00:07:14,580
Now, if you copy and paste this command, you may still get an error.

116
00:07:14,590 --> 00:07:18,190
It's going to report something like, Hey, PowerShell is not allowed to run this, so I'm going to

117
00:07:18,190 --> 00:07:19,750
actually show you what that looks like.

118
00:07:20,170 --> 00:07:23,470
So if you hit this, it's going to say the same errors before.

119
00:07:23,680 --> 00:07:29,650
But then I'll also give you this nice suggestion saying that the command SSA wasn't found, but that

120
00:07:29,660 --> 00:07:36,370
specific command does exist in the current location and it's asking us, hey, instead type out this

121
00:07:36,370 --> 00:07:37,990
in order to actually run the command.

122
00:07:38,470 --> 00:07:44,380
So we're going to run the exact same line of code, except now it's going to be dark backslash se h

123
00:07:44,710 --> 00:07:46,900
and then your actual IP address.

124
00:07:46,900 --> 00:07:55,000
So essentially same thing here, except is going to be back or dot backslash as h and then root out

125
00:07:55,480 --> 00:07:59,350
and then that particular IP address or whatever your IP addresses.

126
00:08:00,160 --> 00:08:03,280
So I'm going to say dot backslash SDH.

127
00:08:03,290 --> 00:08:10,660
So again, just to make it clear here the backslash s h and then I'm going to paste in that route.

128
00:08:11,350 --> 00:08:15,780
Enter and now it's going to ask you, Hey, it can't actually authenticate this.

129
00:08:15,790 --> 00:08:16,480
Are you sure?

130
00:08:16,840 --> 00:08:19,630
And then you're going to say yes to continue.

131
00:08:21,300 --> 00:08:23,190
And then it's going to ask you for the password.

132
00:08:23,370 --> 00:08:24,420
So I'm going to pass that in.

133
00:08:27,960 --> 00:08:29,520
Note the password is invisible.

134
00:08:31,430 --> 00:08:32,570
And then here we are.

135
00:08:32,809 --> 00:08:39,919
So now I have successfully connected through SE h onto my Linux server that's in Dallas, Texas, and

136
00:08:39,919 --> 00:08:45,110
essentially right now, what I'm doing is I'm at the command line on that computer that's being hosted

137
00:08:45,110 --> 00:08:48,140
somewhere else in the next lecture will go ahead and set up.

138
00:08:48,140 --> 00:08:48,560
Get.

139
00:08:48,830 --> 00:08:49,400
I'll see you there.

