You are not logged in.

#1 2016-07-28 01:48:46

steven200796
Member
Registered: 2016-07-28
Posts: 16

SSH X11 Forwarding Not Working [SOLVED]

Getting started with my new arch build but cant get X11 to work.  I am connecting from a mac to the arch desktop.  I tried X-forwarding into other linux (debian) servers and it seems to work fine.  Specifically, running gedit gives me a segfault with core dumped while some programs give no output at all.  sudo has same output so likely not permissions error.  Any help is greatly appreciated, thanks smile.

Here's my config file:

#	$OpenBSD: sshd_config,v 1.98 2016/02/17 05:29:04 djm Exp $

# This is the sshd server system-wide configuration file.  See
# sshd_config(5) for more information.

# This sshd was compiled with PATH=/usr/bin:/bin:/usr/sbin:/sbin

# The strategy used for options in the default sshd_config shipped with
# OpenSSH is to specify options with their default value where
# possible, but leave them commented.  Uncommented options override the
# default value.

Port 11421
AddressFamily any
#ListenAddress 0.0.0.0
#ListenAddress ::

# The default requires explicit activation of protocol 1
#Protocol 2

# HostKey for protocol version 1
#HostKey /etc/ssh/ssh_host_key
# HostKeys for protocol version 2
#HostKey /etc/ssh/ssh_host_rsa_key
#HostKey /etc/ssh/ssh_host_dsa_key
#HostKey /etc/ssh/ssh_host_ecdsa_key
#HostKey /etc/ssh/ssh_host_ed25519_key

# Lifetime and size of ephemeral version 1 server key
#KeyRegenerationInterval 1h
#ServerKeyBits 1024

# Ciphers and keying
#RekeyLimit default none

# Logging
# obsoletes QuietMode and FascistLogging
#SyslogFacility AUTH
#LogLevel INFO

# Authentication:

#LoginGraceTime 2m
PermitRootLogin no
StrictModes yes
MaxAuthTries 3
MaxSessions 5

#RSAAuthentication yes
#PubkeyAuthentication yes

# The default is to check both .ssh/authorized_keys and .ssh/authorized_keys2
# but this is overridden so installations will only check .ssh/authorized_keys
AuthorizedKeysFile	.ssh/authorized_keys

#AuthorizedPrincipalsFile none

#AuthorizedKeysCommand none
#AuthorizedKeysCommandUser nobody

# For this to work you will also need host keys in /etc/ssh/ssh_known_hosts
#RhostsRSAAuthentication no
# similar for protocol version 2
#HostbasedAuthentication no
# Change to yes if you don't trust ~/.ssh/known_hosts for
# RhostsRSAAuthentication and HostbasedAuthentication
#IgnoreUserKnownHosts no
# Don't read the user's ~/.rhosts and ~/.shosts files
#IgnoreRhosts yes

# To disable tunneled clear text passwords, change to no here!
PasswordAuthentication no
#PermitEmptyPasswords no

# Change to no to disable s/key passwords
ChallengeResponseAuthentication no

# Kerberos options
#KerberosAuthentication no
#KerberosOrLocalPasswd yes
#KerberosTicketCleanup yes
#KerberosGetAFSToken no

# GSSAPI options
#GSSAPIAuthentication no
#GSSAPICleanupCredentials yes

# Set this to 'yes' to enable PAM authentication, account processing,
# and session processing. If this is enabled, PAM authentication will
# be allowed through the ChallengeResponseAuthentication and
# PasswordAuthentication.  Depending on your PAM configuration,
# PAM authentication via ChallengeResponseAuthentication may bypass
# the setting of "PermitRootLogin without-password".
# If you just want the PAM account and session checks to run without
# PAM authentication, then enable this but set PasswordAuthentication
# and ChallengeResponseAuthentication to 'no'.
UsePAM yes

AllowAgentForwarding yes
AllowTcpForwarding yes
#GatewayPorts no
X11Forwarding yes
X11DisplayOffset 10
X11UseLocalhost yes
#PermitTTY yes
PrintMotd no # pam does that
#PrintLastLog yes
#TCPKeepAlive yes
#UseLogin no
#UsePrivilegeSeparation sandbox
#PermitUserEnvironment no
#Compression delayed
#ClientAliveInterval 0
#ClientAliveCountMax 3
#UseDNS no
#PidFile /run/sshd.pid
#MaxStartups 10:30:100
#PermitTunnel no
#ChrootDirectory none
#VersionAddendum none

# no default banner path
#Banner none

# override default of no subsystems
Subsystem	sftp	/usr/lib/ssh/sftp-server

# Example of overriding settings on a per-user basis
#Match User anoncvs
#	X11Forwarding yes
#	AllowTcpForwarding yes
#	PermitTTY no
#	ForceCommand cvs server

========
I have a localhost entry in /etc/hosts

Last edited by steven200796 (2016-10-05 21:41:29)

Offline

#2 2016-07-28 06:10:19

masolit
Member
Registered: 2013-12-24
Posts: 46

Re: SSH X11 Forwarding Not Working [SOLVED]

.

Last edited by masolit (2019-12-03 16:07:47)

Offline

#3 2016-07-28 22:10:39

steven200796
Member
Registered: 2016-07-28
Posts: 16

Re: SSH X11 Forwarding Not Working [SOLVED]

I reinstalled and used those options.

Here's the status:

● sshd.service - OpenSSH Daemon
   Loaded: loaded (/usr/lib/systemd/system/sshd.service; enabled; vendor preset:
   Active: active (running) since Thu 2016-07-28 14:00:06 EDT; 8min ago
 Main PID: 460 (sshd)
    Tasks: 1 (limit: 512)
   CGroup: /system.slice/sshd.service
           └─460 /usr/bin/sshd -D

Jul 28 14:00:06 Arch systemd[1]: Started OpenSSH Daemon.
Jul 28 14:00:06 Arch sshd[460]: Server listening on 0.0.0.0 port 11421.
Jul 28 14:00:06 Arch sshd[460]: Server listening on :: port 11421.

SSH works fine but running applications poses same result.

Last edited by steven200796 (2016-08-07 01:59:53)

Offline

#4 2016-07-29 00:21:57

steven200796
Member
Registered: 2016-07-28
Posts: 16

Re: SSH X11 Forwarding Not Working [SOLVED]

Bump

Offline

#5 2016-07-29 00:26:51

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 19,772

Re: SSH X11 Forwarding Not Working [SOLVED]


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Offline

#6 2016-07-29 00:44:50

steven200796
Member
Registered: 2016-07-28
Posts: 16

Re: SSH X11 Forwarding Not Working [SOLVED]

Thanks ewaller, can the community provide some insight on where other configurations might be relevant.  I ask this specifically because my configurations are how it's specified in the arch ssh setup guide and trying sudo gives me the same result (thus eliminating possibility of permissions error).  The only thing I can think of is that other configurations need to be changed.

The server I tested x forwarding on which worked is hosted on my school's Debian computers which has never given me problems before.

Offline

#7 2016-07-31 00:20:10

steven200796
Member
Registered: 2016-07-28
Posts: 16

Re: SSH X11 Forwarding Not Working [SOLVED]

Hi community, I'm not entirely sure how to begin debugging this so if anyone can point me there that'd be really appreciated.  Likewise, if there are certain logs that would be super helpful please let me know.  Thanks!

Offline

#8 2016-08-04 03:11:40

steven200796
Member
Registered: 2016-07-28
Posts: 16

Re: SSH X11 Forwarding Not Working [SOLVED]

Here are my logs.  I see some modules like nouveau and fbdev failed to load.  This wasn't mentioned in the install guide.  Can anyone offer insight as to what these might mean?

[    31.053] (--) Log file renamed from "/var/log/Xorg.pid-3863.log" to "/var/log/Xorg.0.log"
[    31.054]
X.Org X Server 1.18.4
Release Date: 2016-07-19
[    31.054] X Protocol Version 11, Revision 0
[    31.054] Build Operating System: Linux 4.5.4-1-ARCH x86_64
[    31.054] Current Operating System: Linux steven 4.6.4-1-ARCH #1 SMP PREEMPT Mon Jul 11 19:12:32 CEST 2016 x86_64
[    31.054] Kernel command line: initrd=\intel-ucode.img initrd=\initramfs-linux.img root=PARTUUID=08b3241f-8496-4936-a626-52399233c182 nomodeset
[    31.054] Build Date: 19 July 2016  05:54:24PM
[    31.054]
[    31.054] Current version of pixman: 0.34.0
[    31.054]    Before reporting problems, check [url]http://wiki.x.org[/url]
        to make sure that you have the latest version.
[    31.054] Markers: (--) probed, (**) from config file, (==) default setting,
        (++) from command line, (!!) notice, (II) informational,
        (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[    31.054] (==) Log file: "/var/log/Xorg.0.log", Time: Sun Jul 24 11:40:28 2016
[    31.054] (==) Using system config directory "/usr/share/X11/xorg.conf.d"
[    31.054] (==) No Layout section.  Using the first Screen section.
[    31.054] (==) No screen section available. Using defaults.
[    31.054] (**) |-->Screen "Default Screen Section" (0)
[    31.054] (**) |   |-->Monitor "<default monitor>"
[    31.054] (==) No monitor specified for screen "Default Screen Section".
        Using a default monitor configuration.
[    31.054] (==) Automatically adding devices
[    31.054] (==) Automatically enabling devices
[    31.054] (==) Automatically adding GPU devices
[    31.054] (==) Max clients allowed: 256, resource mask: 0x1fffff
[    31.054] (WW) `fonts.dir' not found (or not valid) in "/usr/share/fonts/100dpi/".
[    31.054]    Entry deleted from font path.
[    31.054]    (Run 'mkfontdir' on "/usr/share/fonts/100dpi/").
[    31.054] (WW) `fonts.dir' not found (or not valid) in "/usr/share/fonts/75dpi/".
[    31.054]    Entry deleted from font path.
[    31.054]    (Run 'mkfontdir' on "/usr/share/fonts/75dpi/").
[    31.054] (==) FontPath set to:
        /usr/share/fonts/misc/,
        /usr/share/fonts/TTF/,
        /usr/share/fonts/OTF/,
        /usr/share/fonts/Type1/
[    31.054] (==) ModulePath set to "/usr/lib/xorg/modules"
[    31.054] (II) The server relies on udev to provide the list of input devices.
        If no devices become available, reconfigure udev or disable AutoAddDevices.
[    31.054] (II) Loader magic: 0x821d40
[    31.054] (II) Module ABI versions:
[    31.054]    X.Org ANSI C Emulation: 0.4
[    31.054]    X.Org Video Driver: 20.0
[    31.054]    X.Org XInput driver : 22.1
[    31.054]    X.Org Server Extension : 9.0
[    31.055] (++) using VT number 1

[    31.057] (II) systemd-logind: took control of session /org/freedesktop/login1/session/c163
[    31.058] (--) PCI:*(0:2:0:0) 10de:1b81:1458:3701 rev 161, Mem @ 0xdb000000/16777216, 0xb0000000/268435456, 0xc0000000/33554432, I/O @ 0x0000e000/128, BIOS @ 0x????????/131072
[    31.059] (WW) Open ACPI failed (/var/run/acpid.socket) (No such file or directory)
[    31.059] (II) LoadModule: "glx"
[    31.059] (II) Loading /usr/lib/xorg/modules/extensions/libglx.so
[    31.060] (II) Module glx: vendor="X.Org Foundation"
[    31.060]    compiled for 1.18.4, module version = 1.0.0
[    31.060]    ABI class: X.Org Server Extension, version 9.0
[    31.060] (==) AIGLX enabled
[    31.060] (==) Matched nouveau as autoconfigured driver 0
[    31.060] (==) Matched nv as autoconfigured driver 1
[    31.060] (==) Matched modesetting as autoconfigured driver 2
[    31.060] (==) Matched fbdev as autoconfigured driver 3
[    31.060] (==) Matched vesa as autoconfigured driver 4
[    31.060] (==) Assigned the driver to the xf86ConfigLayout
[    31.060] (II) LoadModule: "nouveau"
[    31.060] (WW) Warning, couldn't open module nouveau
[    31.060] (II) UnloadModule: "nouveau"
[    31.060] (II) Unloading nouveau
[    31.060] (EE) Failed to load module "nouveau" (module does not exist, 0)
[    31.060] (II) LoadModule: "nv"
[    31.060] (WW) Warning, couldn't open module nv
[    31.060] (II) UnloadModule: "nv"
[    31.060] (II) Unloading nv
[    31.060] (WW) Warning, couldn't open module nv
[    31.060] (II) UnloadModule: "nv"
[    31.060] (II) Unloading nv
[    31.060] (EE) Failed to load module "nv" (module does not exist, 0)
[    31.060] (II) LoadModule: "modesetting"
[    31.060] (II) Loading /usr/lib/xorg/modules/drivers/modesetting_drv.so
[    31.060] (II) Module modesetting: vendor="X.Org Foundation"
[    31.060]    compiled for 1.18.4, module version = 1.18.4
[    31.060]    Module class: X.Org Video Driver
[    31.060]    ABI class: X.Org Video Driver, version 20.0
[    31.060] (II) LoadModule: "fbdev"
[    31.061] (WW) Warning, couldn't open module fbdev
[    31.061] (II) UnloadModule: "fbdev"
[    31.061] (II) Unloading fbdev
[    31.061] (EE) Failed to load module "fbdev" (module does not exist, 0)
[    31.061] (II) LoadModule: "vesa"
[    31.061] (WW) Warning, couldn't open module vesa
[    31.061] (II) UnloadModule: "vesa"
[    31.061] (II) Unloading vesa
[    31.061] (EE) Failed to load module "vesa" (module does not exist, 0)
[    31.061] (II) Unloading vesa
[    31.061] (EE) Failed to load module "vesa" (module does not exist, 0)
[    31.061] (II) modesetting: Driver for Modesetting Kernel Drivers: kms
[    31.061] (EE) open /dev/dri/card0: No such file or directory
[    31.061] (WW) Falling back to old probe method for modesetting
[    31.061] (EE) open /dev/dri/card0: No such file or directory
[    31.061] (EE) Screen 0 deleted because of no matching config section.
[    31.061] (II) UnloadModule: "modesetting"
[    31.061] (EE) Device(s) detected, but none match those in the config file.
[    31.061] (EE)
Fatal server error:
[    31.061] (EE) no screens found(EE)
[    31.061] (EE)
Please consult the The X.Org Foundation support
         at [url]http://wiki.x.org[/url]
 for help.
[    31.061] (EE) Please also check the log file at "/var/log/Xorg.0.log" for additional information.
[    31.061] (EE)
[    31.064] (EE) Server terminated with error (1). Closing log file.

Last edited by steven200796 (2016-08-07 01:43:46)

Offline

#9 2016-08-04 04:03:19

ngoonee
Forum Fellow
From: Between Thailand and Singapore
Registered: 2009-03-17
Posts: 7,355

Re: SSH X11 Forwarding Not Working [SOLVED]

No screens found meaning X isn't even starting. What xorg driver do you have or are using?

Sounds like this is a headless server, are you sure you're running Arch and not Arch Linux ARM (a different distro)?

pacman -Qs xf86-video

Allan-Volunteer on the (topic being discussed) mailn lists. You never get the people who matters attention on the forums.
jasonwryan-Installing Arch is a measure of your literacy. Maintaining Arch is a measure of your diligence. Contributing to Arch is a measure of your competence.
Griemak-Bleeding edge, not bleeding flat. Edge denotes falls will occur from time to time. Bring your own parachute.

Offline

#10 2016-08-05 00:16:12

steven200796
Member
Registered: 2016-07-28
Posts: 16

Re: SSH X11 Forwarding Not Working [SOLVED]

Thanks ngoonee.  Nothing was outputted for the command you gave me.  I presume this means that I don't have xf86-video?  This is not a headless server, I'm positive I'm running Arch and not Arch ARM.  Here's my xorg-driver:

[steven@Arch ~]$ pacman -Qs xorg-driver
local/xf86-input-evdev 2.10.3-1 (xorg-drivers xorg)
    X.org evdev input driver

Last edited by steven200796 (2016-08-07 01:46:00)

Offline

#11 2016-08-05 03:11:51

ngoonee
Forum Fellow
From: Between Thailand and Singapore
Registered: 2009-03-17
Posts: 7,355

Re: SSH X11 Forwarding Not Working [SOLVED]

steven200796 wrote:

Thanks ngoonee.  Nothing was outputted for the command you gave me.  I Presume this means that I don't have xf86-video?  TThis is not a headless server, I'm positive I'm running Arch and not Arch ARM.  Here's my xorg-driver:
[steven@Arch ~]$ pacman -Qs xorg-driver
local/xf86-input-evdev 2.10.3-1 (xorg-drivers xorg)
    X.org evdev input driver

That's not a video driver. Did you install using the Beginner's Guide? At the end of it it asks you to look at the General Recommendations page, and mentions the things you need for a user interface.

Basically you need a display driver.

And if you're not on a headless server than how are you getting any display at all? Are you running wayland?


Allan-Volunteer on the (topic being discussed) mailn lists. You never get the people who matters attention on the forums.
jasonwryan-Installing Arch is a measure of your literacy. Maintaining Arch is a measure of your diligence. Contributing to Arch is a measure of your competence.
Griemak-Bleeding edge, not bleeding flat. Edge denotes falls will occur from time to time. Bring your own parachute.

Offline

#12 2016-08-05 11:54:20

steven200796
Member
Registered: 2016-07-28
Posts: 16

Re: SSH X11 Forwarding Not Working [SOLVED]

ngoonee wrote:
steven200796 wrote:

Thanks ngoonee.  Nothing was outputted for the command you gave me.  I Presume this means that I don't have xf86-video?  TThis is not a headless server, I'm positive I'm running Arch and not Arch ARM.  Here's my xorg-driver:
[steven@Arch ~]$ pacman -Qs xorg-driver
local/xf86-input-evdev 2.10.3-1 (xorg-drivers xorg)
    X.org evdev input driver

That's not a video driver. Did you install using the Beginner's Guide? At the end of it it asks you to look at the General Recommendations page, and mentions the things you need for a user interface.

Basically you need a display driver.

And if you're not on a headless server than how are you getting any display at all? Are you running wayland?

I did install using the Beginner's Guide.  I'm using the NVidia proprietary drivers as my display driver.  I am not running wayland.  Let me know if this is not what you were referring to.

Last edited by steven200796 (2016-08-07 01:48:50)

Offline

#13 2016-08-05 11:58:45

steven200796
Member
Registered: 2016-07-28
Posts: 16

Re: SSH X11 Forwarding Not Working [SOLVED]

Is SSH not able to utilize the NVidia drivers? How can I test this?

Offline

#14 2016-08-07 00:43:33

steven200796
Member
Registered: 2016-07-28
Posts: 16

Re: SSH X11 Forwarding Not Working [SOLVED]

Can anyone confirm that Nvidia drivers do not work over ssh X11?  I'm not able to find it in documents hmm.

Offline

#15 2016-08-07 01:10:11

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: SSH X11 Forwarding Not Working [SOLVED]

There are a number of questions or prompts that the community has provided that you have completely ignored; this might help you understand why you are essentially typing to yourself in here...

Go back and reread #2 carefully, and then answer the questions that ngoonee has asked you. While you are at it, edit your posts and use code tags:
https://wiki.archlinux.org/index.php/Co … s_and_code


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#16 2016-08-07 02:09:55

steven200796
Member
Registered: 2016-07-28
Posts: 16

Re: SSH X11 Forwarding Not Working [SOLVED]

Thanks jsonwryan.
I believe I had done what #2 asked...but perhaps my response didn't make that clear.  I have gone back and edited my posts to explicitly answer the questions.

Offline

#17 2016-08-07 02:23:23

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: SSH X11 Forwarding Not Working [SOLVED]

On the remote machine, please provide the output of `pacman -Q xorg-xauth xorg-xhost` and `systemctl status sshd`

On the local machine, please provide the output of `pacman -Q xorg`


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#18 2016-08-14 22:27:57

steven200796
Member
Registered: 2016-07-28
Posts: 16

Re: SSH X11 Forwarding Not Working [SOLVED]

remote machine

[steven@Arch ~]$ pacman -Q xorg-xauth xorg-xhost
xorg-xauth 1.0.9-1
xorg-xhost 1.0.7-1
[steven@Arch ~]$ systemctl status sshd
● sshd.service - OpenSSH Daemon
   Loaded: loaded (/usr/lib/systemd/system/sshd.service; enabled; vendor preset:
   Active: active (running) since Sun 2016-08-14 14:21:04 EDT; 1min 55s ago
 Main PID: 464 (sshd)
    Tasks: 1 (limit: 4915)
   CGroup: /system.slice/sshd.service
           └─464 /usr/bin/sshd -D

Aug 14 14:21:04 Arch systemd[1]: Started OpenSSH Daemon.
Aug 14 14:21:04 Arch sshd[464]: Server listening on 0.0.0.0 port 11421.
Aug 14 14:21:04 Arch sshd[464]: Server listening on :: port 11421.

local machine is running OSX.  I have X11 v2.7.7 which runs xorg-server 1.15.2.

I apologize for the long response time.  I was away on a business trip without access to my desktop.

Last edited by steven200796 (2016-08-16 22:06:17)

Offline

#19 2016-10-05 21:41:04

steven200796
Member
Registered: 2016-07-28
Posts: 16

Re: SSH X11 Forwarding Not Working [SOLVED]

Oddly enough, this was solved with a kernel upgrade.

Offline

Board footer

Powered by FluxBB