1
00:00:00,000 --> 00:00:10,080
In this video, you'll learn about console redirection.

2
00:00:10,080 --> 00:00:15,440
VNC can be used for console redirection of a complete graphical console.

3
00:00:15,440 --> 00:00:19,400
And SSH port forwarding can be used to forward individual ports.

4
00:00:19,400 --> 00:00:25,719
SSH X11 forwarding is used to show a graphical application window on a current machine.

5
00:00:25,719 --> 00:00:30,959
And to use X11 forwarding, a local graphical server must be installed.

6
00:00:30,959 --> 00:00:33,799
On Linux, this is your regular graphical server.

7
00:00:33,799 --> 00:00:37,080
On Macs, XQuartz can be used.

8
00:00:37,080 --> 00:00:42,439
And on Windows, Mobile Xtrem provides easy SSH forwarding.

9
00:00:42,439 --> 00:00:47,119
If you want to do SSH forwarding, use SSH minus uppercase X.

10
00:00:47,119 --> 00:00:53,480
That enables X11 forwarding in a way that is subject to X11 security extension restrictions.

11
00:00:54,119 --> 00:00:58,560
SSH minus uppercase Y enables trusted X11 forwarding,

12
00:00:58,560 --> 00:01:03,040
which is not subject to X11 security extension restrictions.

13
00:01:03,040 --> 00:01:08,559
So your chances of being successful with SSH minus Y are bigger.

14
00:01:08,559 --> 00:01:11,040
To configure trusted X11 forwarding,

15
00:01:11,040 --> 00:01:16,839
you need to set the forward X11 trusted option in etc.ssh ssh-config.

16
00:01:16,839 --> 00:01:21,279
Set it to yes to give clients full access to the X11 display.

17
00:01:21,279 --> 00:01:24,519
Then you can also use SSH port forwarding.

18
00:01:24,519 --> 00:01:29,040
That is what is used to expose a remote port on a local port.

19
00:01:29,040 --> 00:01:37,120
Use for instance ssh-fnl4444-localhost22 root at remote host.

20
00:01:37,120 --> 00:01:38,639
Sounds like a complex command.

21
00:01:38,639 --> 00:01:39,639
What will it do?

22
00:01:39,639 --> 00:01:42,680
Well, it will log in as root on a remote host,

23
00:01:42,680 --> 00:01:49,239
and from there connect port 22 to port 4444 on localhost.

24
00:01:49,239 --> 00:01:53,559
If you want to test this, it's a good idea to use a third machine.

25
00:01:53,559 --> 00:01:55,919
Let me demonstrate.

26
00:01:55,919 --> 00:02:04,080
Okay, let me use SSH minus Y 192.168.29.145,

27
00:02:04,080 --> 00:02:09,720
and let's use gedit gnome-editor.

28
00:02:09,720 --> 00:02:13,919
So this is going to establish a remote connection over SSH,

29
00:02:13,919 --> 00:02:16,759
and oops, that's not going to be successful

30
00:02:17,080 --> 00:02:21,160
because SSH by default does not allow root access.

31
00:02:21,160 --> 00:02:26,320
So let me do it as user student at remote host.

32
00:02:26,320 --> 00:02:29,919
And these are your options for forwarding graphical applications.

