Skip to content

OpnenSSH troubleshoot

on client side

  • X11 forwarding request failed on channel 0

on server with server in debug mode

  • Failed to allocate internet-domain X11 display socket.

ssh not listen on port 6010 (601x)

ssh should listen on localhost

possible causes

  • localhost not configured correct in hosts/dns
  • port is used
  • ipv6 was disabled

SOLUTION

A - put on first line in /etc/ssh/sshd_config

  • AddressFamily inet

B - enable ipv6 for lo interface

Bad Solution

Do not use in configuration fallowing option

  • X11UseLocalhost yes

Proof of working

All above errors will dissapear and on client side you should see this

  • Running /usr/bin/xauth remove unix:10.0 /usr/bin/xauth add unix:10.0 MIT-MAGIC-COOKIE-1 865bb68dba649ae81de2ab9647db9dfa