martin059 / virtualization-level-2-vagrant-setup

TFG Project's Second & Third Virtualization Levels
Apache License 2.0
0 stars 0 forks source link

Add `X11 forwarding` support #9

Closed martin059 closed 5 months ago

martin059 commented 5 months ago

Issue description

An external/virtual machine can have the ability to allow the execution of a program that is installed in that other machine to have its graphical interface displayed on the user's machine by enabling X11 forwarding.

In this use case, it allows a program installed in the VM to be used on the host machine through SSH.

Development task

martin059 commented 5 months ago

Result:

ssh -p 2200 -v -Y vagrant@127.0.0.1
.
.
.
debug1: client_input_global_request: rtype hostkeys-00@openssh.com want_reply 0
debug1: Requesting X11 forwarding with authentication spoofing.
debug1: Requesting authentication agent forwarding.

Also, executing sudo yum -y install xmessage && xmessage -center hello-world! functions as expected and opens a small GUI window on the host's side.