1
00:00:06,799 --> 00:00:11,740
So for this lab solution, I'm going
to configure the SSH client on Ubuntu.

2
00:00:12,080 --> 00:00:15,714
We already have the SSH server installed
on the CentOS system, so I'm going to

3
00:00:15,714 --> 00:00:19,350
use SSH P2022 to 192.168.29.142, which is
the IP address of the remote host.

4
00:00:26,469 --> 00:00:28,820
Yes, I'm sure. I
want to continue connecting.

5
00:00:29,460 --> 00:00:32,170
And here
is my password.

6
00:00:33,289 --> 00:00:38,519
So what do I want to do
next? Well, next I want SSH keygen

7
00:00:38,519 --> 00:00:43,750
and that is prompting for the private
key as well as the public key.

8
00:00:44,390 --> 00:00:45,429
Oh, it's
telling me that.

9
00:00:46,950 --> 00:00:50,350
Oh, what do we have here? I'm
on the wrong machine, so that's not good.

10
00:00:51,409 --> 00:00:55,984
We are on Linfen and I don't
want to generate the private and public

11
00:00:55,984 --> 00:01:00,560
key on the Centos machine, I want
to generate it on the ubuntu machine.

12
00:01:01,079 --> 00:01:05,400
So take 2 SSH keygen to
generate the public private key pair.

13
00:01:05,939 --> 00:01:11,444
Do we want the passphrase? Let me show
you passphrase as well. So going once and

14
00:01:11,444 --> 00:01:16,949
going twice, and now we have a passphrase
and I can use ssh copy id 219-216-829142.

15
00:01:24,730 --> 00:01:27,379
Oh boy. Am I doing something
wrong? Yeah, I need P 2022.

16
00:01:30,890 --> 00:01:34,515
That is so inconvenient. In many
cases you can put the command option

17
00:01:34,515 --> 00:01:38,140
at the end of the line.
But here we really need P2022 before.

18
00:01:42,430 --> 00:01:47,840
This is telling me that
I need to enter my password.

19
00:01:48,379 --> 00:01:52,194
And that makes sense.
Now I can use SSH

20
00:01:52,194 --> 00:01:56,009
once again to connect
to this remote machine.

21
00:01:57,260 --> 00:02:02,697
And there we can see that here. Also,
the GNOME graphical interface is taking over. And

22
00:02:02,697 --> 00:02:08,134
you know what, it's good enough for me,
I would say cache is key for me

23
00:02:08,134 --> 00:02:13,572
and make sure that it's part of my
graphical session. And now we have set up

24
00:02:13,572 --> 00:02:19,009
secure key based SSH authentication between Ubuntu
and CentOS, and also between CentOS and Ubuntu.
