[opensuse] Opening a program in a different computer
I have two computers installed as shown on this extract of /etc/hosts: 192.168.2.1 fritz.box fb # unknown 192.168.2.16 acer ac # Leap_15.1 192.168.2.11 susa se # SuSE_13.2 It is no problem to start a program, e.g. urxvt, from acer on susa. I simply do it by setting $DISPLAY to susa:0.0 on acer: setenv DISPLAY susa:0.0 urxvt & But the inverse setting does not work: setenv DISPLAY acer:0.0 urxvt & This produces the following error message: "urxvt: can't open display acer:0.0, aborting." In other words, a setting of $DISPLAY under SuSE_13.2 works no more under Leap_15.1. Also, disabling access control by setting xhost + does not help. What can I do to force acer to accept setting $DISPLAY to acer:0.0 ? Thanks in advance and best regards, Wolfgang -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
Am 13.08.19 um 11:26 schrieb Wolfgang Mueller:
I have two computers installed as shown on this extract of /etc/hosts:
192.168.2.1 fritz.box fb # unknown 192.168.2.16 acer ac # Leap_15.1 192.168.2.11 susa se # SuSE_13.2
It is no problem to start a program, e.g. urxvt, from acer on susa. I simply do it by setting $DISPLAY to susa:0.0 on acer:
setenv DISPLAY susa:0.0 urxvt &
But the inverse setting does not work:
setenv DISPLAY acer:0.0 urxvt &
This produces the following error message: "urxvt: can't open display acer:0.0, aborting."
In other words, a setting of $DISPLAY under SuSE_13.2 works no more under Leap_15.1. Also, disabling access control by setting xhost + does not help.
What can I do to force acer to accept setting $DISPLAY to acer:0.0 ?
Thanks in advance and best regards, Wolfgang
Never done it like this, i always use ssh. but as a hint, try to disable on both sides the firewall. if its working then you have to check what port you must open. simoN -- www.becherer.de -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On Tue, 13 Aug 2019 at 11:30:40 +0200, Simon Becherer wrote:
Am 13.08.19 um 11:26 schrieb Wolfgang Mueller:
I have two computers installed as shown on this extract of /etc/hosts:
192.168.2.1 fritz.box fb # unknown 192.168.2.16 acer ac # Leap_15.1 192.168.2.11 susa se # SuSE_13.2
It is no problem to start a program, e.g. urxvt, from acer on susa. I simply do it by setting $DISPLAY to susa:0.0 on acer:
setenv DISPLAY susa:0.0 urxvt &
But the inverse setting does not work:
setenv DISPLAY acer:0.0 urxvt &
This produces the following error message: "urxvt: can't open display acer:0.0, aborting."
In other words, a setting of $DISPLAY under SuSE_13.2 works no more under Leap_15.1. Also, disabling access control by setting xhost + does not help.
What can I do to force acer to accept setting $DISPLAY to acer:0.0 ?
Thanks in advance and best regards, Wolfgang
Never done it like this, i always use ssh.
If I type ssh acer I get the response ssh: connect to host ac port 22: Connection refused
but as a hint, try to disable on both sides the firewall.
I had done that already before.
if its working then you have to check what port you must open.
As you have seen above, I have to open port 22. But the system refuses the connection. Is there any remedy? Best regards, Wolfgang -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
Dne úterý 13. srpna 2019 13:04:37 CEST, Wolfgang Mueller napsal(a):
On Tue, 13 Aug 2019 at 11:30:40 +0200, Simon Becherer wrote:
Am 13.08.19 um 11:26 schrieb Wolfgang Mueller: Never done it like this, i always use ssh.
If I type ssh acer I get the response ssh: connect to host ac port 22: Connection refused
but as a hint, try to disable on both sides the firewall.
I had done that already before.
if its working then you have to check what port you must open.
As you have seen above, I have to open port 22. But the system refuses the connection. Is there any remedy?
Is SSH service running? systemctl status sshd.service If not, enable it and start it systemctl enable sshd.service systemctl start sshd.service HTH -- Vojtěch Zeisek Komunita openSUSE GNU/Linuxu Community of the openSUSE GNU/Linux https://www.opensuse.org/ https://trapa.cz/
On Tue, 13 Aug 2019 at 13:08:59 +0200, Vojtěh Zeisek wrote:
Dne úterý 13. srpna 2019 13:04:37 CEST, Wolfgang Mueller napsal:
[...]
As you have seen above, I have to open port 22. But the system refuses the connection. Is there any remedy?
Is SSH service running? systemctl status sshd.service If not, enable it and start itt systemctl enable sshd.service systemctl start sshd.service
Thanks a lot, Vojtěh! As ssh was not running, I started it, following your instruction. Now the system does not refuse the connection any more. But there remains still my initial problem: setenv DISPLAY acer:0.0 urxvt & This produces the following error message: "urxvt: can't open display acer:0.0, aborting." The only DISPLAY setting accepted is :0.0, not preceeded by any hostname. Do you know any remedy? Best regards, Wolfgang -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On 13/08/2019 14.04, Wolfgang Mueller wrote:
On Tue, 13 Aug 2019 at 13:08:59 +0200, Vojtěh Zeisek wrote:
...
This produces the following error message: "urxvt: can't open display acer:0.0, aborting."
The only DISPLAY setting accepted is :0.0, not preceeded by any hostname.
Do you know any remedy?
The easiest, is using "ssh -X" because it automatically sets the environment as needed :-) -- Cheers / Saludos, Carlos E. R. (from 15.0 x86_64 at Telcontar)
On Tue, 13 Aug 2019 at 14:23:38 +0200, Carlos E. R. wrote:
On 13/08/2019 14.04, Wolfgang Mueller wrote:
On Tue, 13 Aug 2019 at 13:08:59 +0200, Vojtěh Zeisek wrote:
...
This produces the following error message: "urxvt: can't open display acer:0.0, aborting."
The only DISPLAY setting accepted is :0.0, not preceeded by any hostname.
Do you know any remedy
The easiest, is using "ssh -X" because it automatically sets the environment as needed :-)
On my computers, "ssh -X" produces the following response: usage: ssh [-1246AaCfgKkMNnqsTtVvXxYy] [-b bind_address] [-c cipher_spec] [-D [bind_address:]port] [-E log_file] [-e escape_char] [-F configfile] [-I pkcs11] [-i identity_file] [-L [bind_address:]port:host:hostport] [-l login_name] [-m mac_spec] [-O ctl_cmd] [-o option] [-p port] [-Q cipher | cipher-auth | mac | kex | key] [-R [bind_address:]port:host:hostport] [-S ctl_path] [-W host:port] [-w local_tun[:remote_tun]] [user@]hostname [command] I can't detect any "-X" among the parameters listed here. Wolfgang -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Tuesday, 2019-08-13 at 15:06 +0200, Wolfgang Mueller wrote:
On Tue, 13 Aug 2019 at 14:23:38 +0200, Carlos E. R. wrote:
On 13/08/2019 14.04, Wolfgang Mueller wrote:
On Tue, 13 Aug 2019 at 13:08:59 +0200, Vojtěh Zeisek wrote:
...
The easiest, is using "ssh -X" because it automatically sets the environment as needed :-)
On my computers, "ssh -X" produces the following response:
usage: ssh [-1246AaCfgKkMNnqsTtVvXxYy] [-b bind_address] [-c cipher_spec] [-D [bind_address:]port] [-E log_file] [-e escape_char] [-F configfile] [-I pkcs11] [-i identity_file] [-L [bind_address:]port:host:hostport] [-l login_name] [-m mac_spec] [-O ctl_cmd] [-o option] [-p port] [-Q cipher | cipher-auth | mac | kex | key] [-R [bind_address:]port:host:hostport] [-S ctl_path] [-W host:port] [-w local_tun[:remote_tun]] [user@]hostname [command]
I can't detect any "-X" among the parameters listed here.
Well, you have to add the rest of the options. Account and host names or addreses. Like: ssh -X USERNAME@HOST.DOMAIN And it is in the man page: -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's 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. - -- Cheers, Carlos E. R. (from openSUSE 15.0 x86_64 at Telcontar) -----BEGIN PGP SIGNATURE----- iHoEARECADoWIQQZEb51mJKK1KpcU/W1MxgcbY1H1QUCXVK3BRwccm9iaW4ubGlz dGFzQHRlbGVmb25pY2EubmV0AAoJELUzGBxtjUfVe2IAn0F6pUJqEulAXnyLuxxZ JgRpmb5JAJ9Z1IlIl0gGXZgsP1nnSM/KpdH5fQ== =oGn0 -----END PGP SIGNATURE-----
Wolfgang Mueller wrote:
I can't detect any "-X" among the parameters listed here.
The option '-X' most definitely exists.
From the man page:
-X Enables X11 forwarding. -- Per Jessen, Zürich (18.5°C) http://www.hostsuisse.com/ - dedicated server rental in Switzerland. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On 2019-08-13 09:31 AM, Per Jessen wrote:
The option '-X' most definitely exists.
From the man page:
-X Enables X11 forwarding.
Yep. I've used it many, many times. Back when I was using openSUSE for my firewall, I'd often use that to run Wireshark on it. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On 2019-08-13 14:06, Wolfgang Mueller wrote:
On my computers, "ssh -X" produces the following response:
usage: ssh [-1246AaCfgKkMNnqsTtVvXxYy] [-b bind_address] ...
I can't detect any "-X" among the parameters listed here.
It's in the first part: [-1246AaCfgKkMNnqsTtVvXxYy] -- Jeremy Nicoll - my opinions are my own -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On 13/08/2019 14.04, Wolfgang Mueller wrote:
On Tue, 13 Aug 2019 at 13:08:59 +0200, Vojtěh Zeisek wrote: This produces the following error message: "urxvt: can't open display acer:0.0, aborting."
The only DISPLAY setting accepted is :0.0, not preceeded by any hostname.
The easiest, is using "ssh -X" because it automatically sets the environment as needed :-)
SSH must allow graphical connections, check if /etc/ssh/sshd_config contains X11Forwarding yes and if no, change to yes and restart SSH systemctl restart sshd.service I don't know Your way, but VNC according to https://doc.opensuse.org/documentation/leap/reference/html/ book.opensuse.reference/cha.vnc.html is very simple and straightforward, I like it.
Le 13/08/2019 à 13:04, Wolfgang Mueller a écrit :
As you have seen above, I have to open port 22. But the system refuses the connection. Is there any remedy?
start sshd? jdd -- http://dodin.org -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On Tue, 13 Aug 2019 at 13:11:58 +0200, jdd <jdd@dodin.org> wrote:
[...] start sshd?
jdd
Mercy, Jean-Daniel! See my answer to Vojtěh Zeisek. Wolfgang -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On 13/08/2019 13.04, Wolfgang Mueller wrote:
On Tue, 13 Aug 2019 at 11:30:40 +0200, Simon Becherer wrote:
Never done it like this, i always use ssh.
If I type ssh acer I get the response ssh: connect to host ac port 22: Connection refused
When the computer is first installed, there is a question whether to to start ssh service, and to allow or not on the firewall. After installation, it is not so easy to do, but still possible. Assuming sshd is installed (if not, install it), then systemctl enable sshd.service systemctl start sshd.service And open port 22 in the firewall. Finally, you have to call ssh this way: ssh -X username@susa in order to run graphical programs. -- Cheers / Saludos, Carlos E. R. (from 15.0 x86_64 at Telcontar)
On 08/13/2019 06:04 AM, Wolfgang Mueller wrote:
If I type ssh acer I get the response ssh: connect to host ac port 22: Connection refused
On acer: $ systemctl status sshd If not running, then # systemctl enable sshd # systemctl start sshd Now retry. -- David C. Rankin, J.D.,P.E. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On 8/13/19 11:26 AM, Wolfgang Mueller wrote:
But the inverse setting does not work:
setenv DISPLAY acer:0.0 urxvt &
This produces the following error message: "urxvt: can't open display acer:0.0, aborting."
In other words, a setting of $DISPLAY under SuSE_13.2 works no more under Leap_15.1. Also, disabling access control by setting xhost + does not help.
What can I do to force acer to accept setting $DISPLAY to acer:0.0 ?
Using "xhost +" had never been a good (secure) idea. Another direction: man xauth Have a nice day, Berny -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
participants (10)
-
Bernhard Voelker
-
Carlos E. R.
-
David C. Rankin
-
James Knott
-
jdd@dodin.org
-
Jeremy Nicoll - ml openSUSE
-
Per Jessen
-
Simon Becherer
-
Vojtěch Zeisek
-
Wolfgang Mueller