WEBVTT

00:00.080 --> 00:03.020
Great you have successfully installed the Raspberry Pi OS.

00:03.050 --> 00:09.050
You have configured the Wi-Fi and you know the IP address of the Raspberry Pi in the network.

00:09.050 --> 00:15.260
What we can do now is to use SSH to take control over the Pi and really get access to it.

00:15.260 --> 00:21.770
This will provide you with command line access in a terminal, which we will use just in the next lesson

00:21.770 --> 00:25.700
to install VNC and get access to the Raspberry Pi desktop.

00:25.700 --> 00:30.440
And don't worry too much about understanding command lines and how a terminal works here.

00:30.440 --> 00:34.070
We will come back to it in a future section of this course.

00:34.070 --> 00:39.350
For now, this is just a required step of the configuration, so please follow every instruction one

00:39.350 --> 00:40.070
by one.

00:40.070 --> 00:46.010
And the first thing we are going to do just to make sure that we don't have an error later on you can

00:46.010 --> 00:48.170
open a file manager.

00:48.680 --> 00:53.750
So let's open a file manager on your computer and just browse to this PC.

00:54.110 --> 01:00.470
And then you basically want to go in there and go to users and just find your user okay.

01:00.500 --> 01:06.260
So just go to basically what we can call the home directory in Linux or in Mac OS.

01:06.290 --> 01:09.850
It's going to be where you place the folder where you have your user.

01:09.970 --> 01:15.670
And in this you will find a folder named dot ssh.

01:15.700 --> 01:19.840
If you don't see this one, maybe it's probably because it's hidden somewhere.

01:19.840 --> 01:25.960
So you can click on view and show show hidden items.

01:25.990 --> 01:27.010
Okay something like that.

01:27.010 --> 01:35.980
So if you find dot ssh folder in the directory for your main user, you go in there and you have a file

01:36.010 --> 01:38.170
named Knownhosts.

01:38.260 --> 01:39.670
I also have that one too.

01:39.670 --> 01:41.290
And I'm just going to remove those.

01:41.320 --> 01:41.560
Okay.

01:41.590 --> 01:45.130
So you just remove those files and that's it.

01:45.340 --> 01:49.930
If you really can't find this folder I guess it's okay if you don't have an error later on.

01:49.930 --> 01:50.770
That's fine.

01:50.770 --> 01:53.140
This is kind of a preventive step.

01:53.200 --> 01:53.410
Okay.

01:53.440 --> 01:57.850
So now we can close this and we will need to open a terminal.

01:57.850 --> 02:00.010
So how to open a terminal on windows.

02:00.010 --> 02:06.670
Just go to the search bar or press the windows key and type something like cmd okay command prompt.

02:06.670 --> 02:12.370
You can open that okay I guess on macOS is going to be similar.

02:12.410 --> 02:16.760
and well, if you are using Linux, you probably know how to open a terminal already.

02:16.760 --> 02:22.040
So just open a terminal and the command is going to be the same for windows, macOS and Linux.

02:22.070 --> 02:25.340
Okay, we are going to use the SSH command.

02:25.340 --> 02:30.620
So if you press SSH and enter you should have this kind of message okay.

02:30.650 --> 02:32.570
Usage ssh.

02:32.570 --> 02:34.970
That means that the SSH command exists.

02:35.000 --> 02:39.020
In some older versions of windows you might not have SSH.

02:39.020 --> 02:41.300
In this case you can use some putting on the screen.

02:41.300 --> 02:44.420
Here you can use a software called putty okay.

02:44.450 --> 02:50.660
You can download it install it and just provide the IP address, the username and the password to connect

02:50.660 --> 02:51.770
to SSH.

02:51.770 --> 02:59.150
But I guess that for most of you watching this video, you should be able to have the SSH command installed

02:59.150 --> 03:00.140
on your computer.

03:00.140 --> 03:01.460
So now what do we need to do?

03:01.460 --> 03:05.210
Well we will write SSH and space.

03:05.210 --> 03:10.220
And then you need to put which user will you want to connect as on the Raspberry Pi.

03:10.220 --> 03:14.990
And if you remember we have created a user with the name Pi okay.

03:14.990 --> 03:18.290
So if you have used a different name change it here.

03:18.310 --> 03:23.110
But if you just follow the video exactly as I did, you should have the user pi.

03:23.140 --> 03:27.910
Then you put the At and we will need to put the IP address of the Raspberry Pi.

03:27.910 --> 03:29.350
So what's the IP address?

03:29.350 --> 03:31.780
This is the one we have found right here.

03:31.870 --> 03:41.500
So for me it's 192 dot 168 .203. 222.

03:41.530 --> 03:42.790
So don't just copy this.

03:42.820 --> 03:46.540
Of course your IP address is going to be different.

03:46.900 --> 03:55.720
Now I can press enter and if everything worked well you should see a message like this okay the authenticity

03:55.720 --> 03:57.610
of host etc. etc..

03:57.640 --> 04:00.490
Basically the question is are you sure you want to continue?

04:00.520 --> 04:01.750
Yes or no?

04:01.750 --> 04:05.530
And you just put yes and you press enter.

04:05.950 --> 04:10.360
And now it should ask you for the password of the pi user.

04:10.390 --> 04:11.080
Okay.

04:11.110 --> 04:17.170
If you didn't get that, if you got an error with this known host thingy, then you need to go back

04:17.170 --> 04:21.100
and remove this known host file like I just showed you in the beginning of the video.

04:21.100 --> 04:23.500
But if you see the password like this, all fine.

04:23.530 --> 04:27.590
You just put the password that you have provided during the setup.

04:27.590 --> 04:32.750
So when you flashed the operating system and here you can see when I type something it doesn't show.

04:32.750 --> 04:36.050
So you just type the password and you press enter.

04:36.050 --> 04:38.480
If you provided the correct password.

04:38.510 --> 04:43.370
Now you can see that we are actually inside the Raspberry Pi okay.

04:43.400 --> 04:45.920
It's not this anymore.

04:45.920 --> 04:48.440
So we are not operating from windows.

04:48.470 --> 04:55.790
Now you can see we have Pi at Raspberry Pi and we have a command line from inside the Raspberry Pi.

04:55.790 --> 05:00.800
And well, if you have an error with the password, it is simply because this is the wrong password.

05:00.830 --> 05:01.370
Okay.

05:01.400 --> 05:05.780
If you manage to get the and the password doesn't work, make sure you don't have a typo.

05:05.810 --> 05:10.940
Also, make sure that maybe your keyboard is configured the same and you type exactly the same thing

05:10.940 --> 05:13.760
that you typed when you set up the Raspberry Pi.

05:13.760 --> 05:18.560
And maybe you made a mistake, and maybe you need to flash the operating system again if you provided

05:18.590 --> 05:19.940
a wrong password.

05:19.970 --> 05:20.330
Okay.

05:20.360 --> 05:23.120
And now great, we are on the Raspberry Pi.

05:23.150 --> 05:25.700
So we have internal access to the Raspberry Pi.

05:25.730 --> 05:31.070
The next thing we can do is to set up VNC so we can have access to the desktop.
