Bug#1069236: openssh-server: X over ssh fails with "cannot open display"

allan <[email protected]>
Newsgroups gmane.linux.debian.devel.ssh
Message-ID <171343998026.5675.2209625252651247470.reportbug__4808.93890360079$1713440195$gmane$org@wizard-desktop>
Package: openssh-server
Version: 1:9.7p1-4
Severity: important
X-Debbugs-Cc: [email protected]

On four Sid machines here X over ssh fails with "cannot open display".

Resolved the issue by editing /etc/ssh/sshd_config and changing

#AddressFamily any

to

AddressFamily inet

and restarting sshd.



-- System Information:
Debian Release: trixie/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 6.7.9-amd64 (SMP w/16 CPU threads; PREEMPT)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages openssh-server depends on:
ii  adduser                    3.137
ii  debconf [debconf-2.0]      1.5.86
ii  init-system-helpers        1.66
ii  libaudit1                  1:3.1.2-2.1
ii  libc6                      2.37-17
ii  libcom-err2                1.47.0-2.4
ii  libcrypt1                  1:4.4.36-4
ii  libgssapi-krb5-2           1.20.1-6+b1
ii  libkrb5-3                  1.20.1-6+b1
ii  libpam-modules             1.5.3-7
ii  libpam-runtime             1.5.3-7
ii  libpam0g                   1.5.3-7
ii  libselinux1                3.5-2+b2
ii  libssl3t64                 3.2.1-3
ii  libwrap0                   7.6.q-33
ii  openssh-client             1:9.7p1-4
ii  openssh-sftp-server        1:9.7p1-4
ii  procps                     2:4.0.4-4
ii  runit-helper               2.16.2
ii  sysvinit-utils [lsb-base]  3.09-1
ii  ucf                        3.0043+nmu1
ii  zlib1g                     1:1.3.dfsg-3.1

Versions of packages openssh-server recommends:
ii  libpam-systemd [logind]  255.4-1+b1
ii  ncurses-term             6.4+20240414-1
ii  xauth                    1:1.1.2-1

Versions of packages openssh-server suggests:
pn  molly-guard   <none>
pn  monkeysphere  <none>
ii  ssh-askpass   1:1.2.4.1-16+b1
pn  ufw           <none>

-- debconf information excluded
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.