Solved ssh between freebsd and linux -- Warning: untrusted X11 forwarding setup failed: xauth key data not generated

I am connecting to a Bhyve VM running Rocky Linux 8 using ssh without passwords. When I successfully connect I nonetheless get the 'untrusted forwarding' error. I am trying to discover on which end of the connection the problem lies. As I do not have this problem when connecting to FreeBSD hosts, whether jails of VMs I infer that the problem lies somewhere in an incompatibility between RL8 and FreeBSD.

Below is an extract of the session setup environment and negotiation:
Code:
[byrnejb_hll@sshpipe-1 ~]$ echo $DISPLAY
sshpipe-1.hamilton.harte-lyne.ca:11.0

[byrnejb_hll@sshpipe-1 ~]$ uname -a
FreeBSD sshpipe-1.hamilton.harte-lyne.ca 13.1-RELEASE-p2 FreeBSD 13.1-RELEASE-p2 GENERIC amd64

[byrnejb_hll@sshpipe-1 ~]$ echo $DISPLAY
sshpipe-1.hamilton.harte-lyne.ca:11.0

[byrnejb_hll@sshpipe-1 ~]$ ssh -vvv -t -X -o ConnectTimeout=10        192.168.216.101
OpenSSH_8.8p1, OpenSSL 1.1.1o-freebsd  3 May 2022
debug1: Reading configuration data /home/byrnejb_hll/.ssh/config
. . .
debug1: Local version string SSH-2.0-OpenSSH_8.8 FreeBSD-20211221
debug1: Remote protocol version 2.0, remote software version OpenSSH_8.0
. . .
debug1: client_input_hostkeys: searching /home/byrnejb_hll/.ssh/known_hosts for 192.168.216.101 / (none)
debug3: Fssh_hostkeys_foreach: reading file "/home/byrnejb_hll/.ssh/known_hosts"
debug3: hostkeys_find: found ssh-ed25519 key under different name/addr at /home/byrnejb_hll/.ssh/known_hosts:23
debug3: hostkeys_find: found ssh-ed25519 key at /home/byrnejb_hll/.ssh/known_hosts:24
debug1: client_input_hostkeys: searching /home/byrnejb_hll/.ssh/known_hosts2 for 192.168.216.101 / (none)
debug1: client_input_hostkeys: hostkeys file /home/byrnejb_hll/.ssh/known_hosts2 does not exist
debug3: client_input_hostkeys: 3 server keys: 2 new, 18446744073709551615 retained, 2 incomplete match. 0 to remove
debug1: client_input_hostkeys: host key found matching a different name/address, skipping UserKnownHostsFile update
debug3: receive packet: type 4
debug1: Remote: /home/byrnejb_hll/.ssh/authorized_keys:3: key options: agent-forwarding port-forwarding pty user-rc x11-forwarding
debug3: receive packet: type 4
debug1: Remote: /home/byrnejb_hll/.ssh/authorized_keys:3: key options: agent-forwarding port-forwarding pty user-rc x11-forwarding
debug3: receive packet: type 91
debug2: Fssh_channel_input_open_confirmation: channel 0: callback start
debug2: client_x11_get_proto: xauth command: /usr/local/bin/xauth -f /tmp/ssh-QCv7x5CUj4Is/xauthfile generate sshpipe-1.hamilton.harte-lyne.ca:11.0 MIT-MAGIC-COOKIE-1 untrusted timeout 1260 2>/dev/null
Warning: untrusted X11 forwarding setup failed: xauth key data not generated
. . .

[byrnejb_hll@hp3k01 ~]$ uname --all
Linux hp3k01.harte-lyne.ca 4.18.0-425.3.1.el8.x86_64 #1 SMP Wed Nov 9 20:13:27 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux

[byrnejb_hll@hp3k01 ~]$ echo $DISPLAY

[byrnejb_hll@hp3k01 ~]$

Any relevant suggestions are welcomed.
 
What is this about?
Code:
debug1: client_input_hostkeys: host key found matching a different name/address, skipping UserKnownHostsFile update
Try removing the stale entry in known_hosts.
 
What is this about?
Code:
debug1: client_input_hostkeys: host key found matching a different name/address, skipping UserKnownHostsFile update
Try removing the stale entry in known_hosts.
That was it. Thanks.
 
Back
Top