-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi,
I used this tiny script, run in my desktop machine, to open firefox in my
"mediaserver" and display a youtube there:
cer@Telcontar:~> cat /home/cer/bin/IsengardFirefox
#!/bin/bash
ssh cer@isengard.valinor "DISPLAY=:0 firefox $1 $2 $3"
cer@Telcontar:~>
Both machines have been upgraded to 15.4 since then, and now the script
fails:
cer@Telcontar:~> IsengardFirefox
https://www.youtube.com/watch?v=Y-4S7cdo3tY
Invalid MIT-MAGIC-COOKIE-1 keyNo protocol specified
Error: cannot open display: :0
cer@Telcontar:~>
This is a solution we concocted on this thread:
Archived-At:
https://lists.opensuse.org/archives/list/users@lists.opensuse.org/message/23...
Date: Sun, 18 Sep 2022 14:01:49 +0200 (CEST)
From: "Carlos E. R."
To: oS-en
Subject: [oS-en] How can I fire up firefox on another computer using ssh?
Why doesn't it work now?
Verbose try:
cer@Telcontar:~> IsengardFirefox https://www.youtube.com/watch?v=Y-4S7cdo3tY
OpenSSH_8.4p1, OpenSSL 1.1.1l 24 Aug 2021 SUSE release 150400.7.25.1
debug1: Reading configuration data /home/cer/.ssh/config
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 20: Applying options for *
debug1: Connecting to isengard.valinor [192.168.1.16] port 22.
debug1: Connection established.
debug1: identity file /home/cer/.ssh/id_rsa type 0
debug1: identity file /home/cer/.ssh/id_rsa-cert type -1
debug1: identity file /home/cer/.ssh/id_dsa type 1
debug1: identity file /home/cer/.ssh/id_dsa-cert type -1
debug1: identity file /home/cer/.ssh/id_ecdsa type -1
debug1: identity file /home/cer/.ssh/id_ecdsa-cert type -1
debug1: identity file /home/cer/.ssh/id_ecdsa_sk type -1
debug1: identity file /home/cer/.ssh/id_ecdsa_sk-cert type -1
debug1: identity file /home/cer/.ssh/id_ed25519 type -1
debug1: identity file /home/cer/.ssh/id_ed25519-cert type -1
debug1: identity file /home/cer/.ssh/id_ed25519_sk type -1
debug1: identity file /home/cer/.ssh/id_ed25519_sk-cert type -1
debug1: identity file /home/cer/.ssh/id_xmss type -1
debug1: identity file /home/cer/.ssh/id_xmss-cert type -1
debug1: Local version string SSH-2.0-OpenSSH_8.4
debug1: Remote protocol version 2.0, remote software version OpenSSH_8.4
debug1: match: OpenSSH_8.4 pat OpenSSH* compat 0x04000000
debug1: Authenticating to isengard.valinor:22 as 'cer'
debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug1: kex: algorithm: curve25519-sha256
debug1: kex: host key algorithm: ecdsa-sha2-nistp256
debug1: kex: server->client cipher: chacha20-poly1305@openssh.com MAC: <implicit> compression: none
debug1: kex: client->server cipher: chacha20-poly1305@openssh.com MAC: <implicit> compression: none
debug1: kex: curve25519-sha256 need=64 dh_need=64
debug1: kex: curve25519-sha256 need=64 dh_need=64
debug1: expecting SSH2_MSG_KEX_ECDH_REPLY
debug1: Server host key: ecdsa-sha2-nistp256 SHA256:IL....
debug1: Host 'isengard.valinor' is known and matches the ECDSA host key.
debug1: Found key in /home/cer/.ssh/known_hosts:65
debug1: rekey out after 134217728 blocks
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug1: SSH2_MSG_NEWKEYS received
debug1: rekey in after 134217728 blocks
debug1: Skipping ssh-dss key /home/cer/.ssh/id_dsa - not in PubkeyAcceptedKeyTypes
debug1: Skipping ssh-dss key carloser@cvs.sf.net - not in PubkeyAcceptedKeyTypes
debug1: Skipping ssh-dss key carloser@shell.sf.net - not in PubkeyAcceptedKeyTypes
debug1: Skipping ssh-dss key carloser@cf.sf.net - not in PubkeyAcceptedKeyTypes
debug1: Will attempt key: /home/cer/.ssh/id_rsa RSA SHA256:domyQmwzSv4RGTBnyqQtTl5MSxLX9JYfyFL5sMqDEYE agent
debug1: Will attempt key: cer@nimrodel RSA SHA256:lD... agent
debug1: Will attempt key: /home/cer/.ssh/id_ecdsa
debug1: Will attempt key: /home/cer/.ssh/id_ecdsa_sk
debug1: Will attempt key: /home/cer/.ssh/id_ed25519
debug1: Will attempt key: /home/cer/.ssh/id_ed25519_sk
debug1: Will attempt key: /home/cer/.ssh/id_xmss
debug1: SSH2_MSG_EXT_INFO received
debug1: kex_input_ext_info: server-sig-algs=
debug1: SSH2_MSG_SERVICE_ACCEPT received
debug1: Authentications that can continue: publickey
debug1: Next authentication method: publickey
debug1: Offering public key: /home/cer/.ssh/id_rsa RSA SHA256:domy... agent
debug1: Server accepts key: /home/cer/.ssh/id_rsa RSA SHA256:domy... agent
debug1: Authentication succeeded (publickey).
Authenticated to isengard.valinor ([192.168.1.16]:22).
debug1: channel 0: new [client-session]
debug1: Requesting no-more-sessions@openssh.com
debug1: Entering interactive session.
debug1: pledge: network
debug1: client_input_global_request: rtype hostkeys-00@openssh.com want_reply 0
debug1: Remote: /home/cer/.ssh/authorized_keys:8: key options: agent-forwarding port-forwarding pty user-rc x11-forwarding
debug1: Remote: /home/cer/.ssh/authorized_keys:8: key options: agent-forwarding port-forwarding pty user-rc x11-forwarding
debug1: Sending command: DISPLAY=:0 firefox https://www.youtube.com/watch?v=Y-4S7cdo3tY
Invalid MIT-MAGIC-COOKIE-1 keyNo protocol specified
Error: cannot open display: :0
debug1: client_input_channel_req: channel 0 rtype exit-status reply 0
debug1: client_input_channel_req: channel 0 rtype eow@openssh.com reply 0
debug1: channel 0: free: client-session, nchannels 1
Transferred: sent 2884, received 3088 bytes, in 0.6 seconds
Bytes per second: sent 4834.0, received 5175.9
debug1: Exit status 1
cer@Telcontar:~>
- --
Cheers
Carlos E. R.
(from 15.4 x86_64 at Telcontar)
-----BEGIN PGP SIGNATURE-----
iHoEARECADoWIQQZEb51mJKK1KpcU/W1MxgcbY1H1QUCZBBB1Bwccm9iaW4ubGlz
dGFzQHRlbGVmb25pY2EubmV0AAoJELUzGBxtjUfVXzAAnRC+uQwNE4NhAqs47gfd
USocx779AJ9GBbjI+NpGbW+dytHvX8jo7CSyLQ==
=8iiA
-----END PGP SIGNATURE-----