sshd[419]: error: Failed to allocate internet-domain X11 display socket.

If you cannot get ssh X11 forwarding to work even when you configured your sshd_config properly, and you get the
message “sshd[419]: error: Failed to allocate internet-domain X11 display socket.” in your console… you need to disable
openssh’s ipv6 mode.
add this to your sshd_config file:
ListenAddress 0.0.0.0
And change your init script to pass the “-4” option to sshd, as:
case $1 in
‘start’)
create_key $SSHDIR/ssh_host_rsa_key rsa
create_key $SSHDIR/ssh_host_dsa_key dsa
/opt/acs/sbin/sshd -4 &
;;
Restart sshd and you’ll have X11Forwarding working
86/433

Leave a Reply

Your email address will not be published. Required fields are marked *