[Bug 434799] Re: X11 forwarding via SSH does not work after upgrade to karmic

Andrew Schulman launchpad-andrex at sneakemail.com
Mon May 3 20:31:15 BST 2010


Setting

AddressFamily inet

in /etc/ssh/sshd_config and restarting sshd does work around this
problem.


** Description changed:

  I had a proper configuration on jaunty (sshd_config) so I could ssh into
  that machine and run X11 applications there with X11 forwarding, so I
  could use apps fromt here remotely. After upgrade to karmic (same
  sshd_config on the server, client is not changed) I got this (for
  example):
  
- xterm Xt error: Can't open display: 
+ xterm Xt error: Can't open display:
  xterm:  DISPLAY is not set
  
  I've tried ssh  -X, -Y and -X -Y too together with no success.
  
  So DISPLAY environment variable is not even set because of some reason,
  though I found this in /var/log/auth.log:
  
  Sep 22 19:56:02 vega sshd[11206]: error: Failed to allocate internet-
  domain X11 display socket.
  
  openssh-server:
-   Installed: 1:5.1p1-6ubuntu1
-   Candidate: 1:5.1p1-6ubuntu1
-   Version table:
-  *** 1:5.1p1-6ubuntu1 0
-         500 http://archive.ubuntu.com karmic/main Packages
-         100 /var/lib/dpkg/status
+   Installed: 1:5.1p1-6ubuntu1
+   Candidate: 1:5.1p1-6ubuntu1
+   Version table:
+  *** 1:5.1p1-6ubuntu1 0
+         500 http://archive.ubuntu.com karmic/main Packages
+         100 /var/lib/dpkg/status
  xauth:
-   Installed: 1:1.0.3-2
-   Candidate: 1:1.0.3-2
-   Version table:
-  *** 1:1.0.3-2 0
-         500 http://archive.ubuntu.com karmic/main Packages
-         100 /var/lib/dpkg/status
+   Installed: 1:1.0.3-2
+   Candidate: 1:1.0.3-2
+   Version table:
+  *** 1:1.0.3-2 0
+         500 http://archive.ubuntu.com karmic/main Packages
+         100 /var/lib/dpkg/status
  
  sshd_config file:
  
  Port 22
  ListenAddress 0.0.0.0
  Protocol 2
  HostKey /etc/ssh/ssh_host_rsa_key
  HostKey /etc/ssh/ssh_host_dsa_key
  UsePrivilegeSeparation yes
  KeyRegenerationInterval 3600
  ServerKeyBits 768
  SyslogFacility AUTH
  LogLevel INFO
  LoginGraceTime 600
  StrictModes yes
  RSAAuthentication yes
  PubkeyAuthentication yes
  IgnoreRhosts yes
  RhostsRSAAuthentication no
  HostbasedAuthentication no
  PermitEmptyPasswords no
  PasswordAuthentication no
  X11Forwarding yes
  X11DisplayOffset 10
  PrintMotd no
  PrintLastLog yes
  TCPKeepAlive yes
  Subsystem sftp /usr/lib/openssh/sftp-server
  UsePAM yes
  PermitTunnel yes
  PermitRootLogin forced-commands-only

-- 
X11 forwarding via SSH does not work after upgrade to karmic
https://bugs.launchpad.net/bugs/434799
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to openssh in ubuntu.



More information about the Ubuntu-server-bugs mailing list