Подтвердить что ты не робот

Разница между SSH -X и ssh -Y

Я был SSH'ing на сервере, запустив такой код:

ssh [email protected] "./runServer" &

в самой следующей строке script, когда я запустил VM на клиенте и написал startX на нем, он сказал: X Error of failed request: Bad Window.

После поиска этой ошибки я решил это с помощью sshing с использованием пересылки "Y".

ssh -Y [email protected] "./runServer" &

Я не могу понять, являются ли пересылки X и Y одинаковыми понятиями - и сколько таких пересылок X, Y Z возможно?

Спасибо.

4b9b3361

Ответ 1

На странице man:

 -X      Enables X11 forwarding.  This can also be specified on a per-host
         basis in a configuration file.

         X11 forwarding should be enabled with caution.  Users with the
         ability to bypass file permissions on the remote host (for the
         user X authorization database) can access the local X11 display
         through the forwarded connection.  An attacker may then be able
         to perform activities such as keystroke monitoring.

         For this reason, X11 forwarding is subjected to X11 SECURITY
         extension restrictions by default.  Please refer to the ssh -Y
         option and the ForwardX11Trusted directive in ssh_config(5) for
         more information.

 -Y      Enables trusted X11 forwarding.  Trusted X11 forwardings are not
         subjected to the X11 SECURITY extension controls.

Смотрите также: https://askubuntu.com/info/35512/difference-between-ssh-y-and-ssh-x