graf. Anwendung auf ssh-Server startet nicht

Alle weiteren Dienste, die nicht in die drei oberen Foren gehören.
Antworten
letzter3
Beiträge: 446
Registriert: 16.07.2011 22:07:31

graf. Anwendung auf ssh-Server startet nicht

Beitrag von letzter3 » 09.07.2016 16:35:33

Ich will mich per ssh von einem client (Mageia 4) auf einen anderen Rechenr (Debian) schalten und den X-Server starten.
Dies wird mit folgendem Fehler abgebrochen:

Code: Alles auswählen

[letzter@wuerfel ~]$ ssh ADRESSE.myfritz.net
Linux ptLWL01 3.2.0-4-amd64 #1 SMP Debian 3.2.81-1 x86_64

...
letzter@ptLWL01:~$ su -   
Passwort: 
root@ptLWL01:~# startx


X.Org X Server 1.12.4
Release Date: 2012-08-27
X Protocol Version 11, Revision 0
Build Operating System: Linux 3.16.0-4-amd64 x86_64 Debian
Current Operating System: Linux ptLWL01 3.2.0-4-amd64 #1 SMP Debian 3.2.81-1 x86_64
Kernel command line: BOOT_IMAGE=/vmlinuz-3.2.0-4-amd64 root=/dev/mapper/vg0-root ro quiet
Build Date: 09 February 2015  09:46:52AM
xorg-server 2:1.12.4-6+deb7u6 (Julien Cristau <jcristau@debian.org>) 
Current version of pixman: 0.26.0
        Before reporting problems, check http://wiki.x.org
        to make sure that you have the latest version.
Markers: (--) probed, (**) from config file, (==) default setting,
        (++) from command line, (!!) notice, (II) informational,
        (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(==) Log file: "/var/log/Xorg.0.log", Time: Sat Jul  9 16:22:48 2016
(==) Using system config directory "/usr/share/X11/xorg.conf.d"
(II) [KMS] drm report modesetting isn't supported.
  XRANDR name: VGA-0
  Connector: VGA
  CRT1: INTERNAL_KLDSCP_DAC1
  DDC reg: 0x7e40
Dac detection success
finished output detect: 0
finished all detect
Dac detection success

Fatal server error:
no screens found

Please consult the The X.Org Foundation support 
         at http://wiki.x.org
 for help. 
Please also check the log file at "/var/log/Xorg.0.log" for additional information.

Server terminated with error (1). Closing log file.
^Cxinit: giving up                       #STRG + C zum Abrechen.
xinit: unable to connect to X server: Connection refused
xinit: unexpected signal 2
Ein Auszug aus der Xorg.0.log (vollständig hier NoPaste-Eintrag39405)

Code: Alles auswählen

661966.810] drmOpenDevice: node name is /dev/dri/card15
[661966.819] (EE) RADEON(0): [dri] RADEONDRIGetVersion failed to open the DRM
[dri] Disabling DRI.
[661966.819] (II) RADEON(0): using shadow framebuffer
[661966.819] (II) Loading sub module "shadow"
[661966.819] (II) LoadModule: "shadow"
[661966.819] (II) Loading /usr/lib/xorg/modules/libshadow.so
[661966.819] (II) Module shadow: vendor="X.Org Foundation"
[661966.820]    compiled for 1.12.4, module version = 1.1.0
[661966.820]    ABI class: X.Org ANSI C Emulation, version 0.4
[661966.820] (II) RADEON(0): Detected total video RAM=32768K, accessible=32768K (PCI BAR=32768K)
[661966.820] (--) RADEON(0): Mapped VideoRAM: 32768 kByte (128 bit DDR SDRAM)
[661966.820] (II) RADEON(0): Color tiling disabled
[661966.820] (II) Loading sub module "ddc"
[661966.820] (II) LoadModule: "ddc"
[661966.820] (II) Module "ddc" already built-in
[661966.820] (II) Loading sub module "i2c"
[661966.820] (II) LoadModule: "i2c"
[661966.820] (II) Module "i2c" already built-in
[661966.820] (II) RADEON(0): PLL parameters: rf=10000 rd=12 min=90000 max=120000; xclk=40000
[661966.820] (II) RADEON(0): Output VGA-0 has no monitor section
[661966.820] (II) RADEON(0): I2C bus "VGA-0" initialized.
[661966.820] (II) RADEON(0): Port0:
[661966.820]   XRANDR name: VGA-0
[661966.820]   Connector: VGA
[661966.820]   CRT1: INTERNAL_KLDSCP_DAC1
[661966.820]   DDC reg: 0x7e40
[661966.820] (II) RADEON(0): I2C device "VGA-0:ddc2" registered at address 0xA0.
[661966.830] Dac detection success
[661966.830] (II) RADEON(0): Output: VGA-0, Detected Monitor Type: 0
[661966.830] finished output detect: 0
[661966.830] (EE) RADEON(0): No connected devices found!
[661966.830] finished all detect
[661966.839] Dac detection success
[661966.840] (II) RADEON(0): Output: VGA-0, Detected Monitor Type: 0
[661966.840] (II) RADEON(0): EDID for output VGA-0
[661966.840] (II) RADEON(0): Output VGA-0 disconnected
[661966.840] (WW) RADEON(0): No outputs definitely connected, trying again...
[661966.840] (II) RADEON(0): Output VGA-0 disconnected
[661966.840] (WW) RADEON(0): Unable to find initial modes
[661966.840] (EE) RADEON(0): No valid modes.
[661966.840] (II) UnloadModule: "radeon"
[661966.840] (II) UnloadSubModule: "shadow"
[661966.840] (II) Unloading shadow
[661966.840] (II) UnloadSubModule: "int10"
[661966.840] (II) Unloading int10
[661966.840] (II) UnloadSubModule: "vgahw"
[661966.841] (II) Unloading vgahw
[661966.841] (EE) Screen(s) found, but none have a usable configuration.
[661966.841] 
Fatal server error:
[661966.841] no screens found
[661966.841] 
Please consult the The X.Org Foundation support 
         at http://wiki.x.org
 for help. 
[661966.841] Please also check the log file at "/var/log/Xorg.0.log" for additional information.
[661966.841] 
[661966.845] Server terminated with error (1). Closing log file.
root@ptLWL01:~# ^C

Die sshd des Servers:

Code: Alles auswählen

root@ptLWL01:/etc/ssh# cat /etc/ssh/sshd_config
# Package generated configuration file
# See the sshd_config(5) manpage for details

# What ports, IPs and protocols we listen for
Port 22
# Use these options to restrict which interfaces/protocols sshd will bind to
#ListenAddress ::
#ListenAddress 0.0.0.0
Protocol 2
# HostKeys for protocol version 2
HostKey /etc/ssh/ssh_host_rsa_key
HostKey /etc/ssh/ssh_host_dsa_key
#Privilege Separation is turned on for security
UsePrivilegeSeparation yes

# Lifetime and size of ephemeral version 1 server key
KeyRegenerationInterval 3600
ServerKeyBits 768

# Logging
SyslogFacility AUTH
LogLevel INFO

# Authentication:
LoginGraceTime 120
PermitRootLogin without-password
StrictModes yes

RSAAuthentication yes
PubkeyAuthentication yes
#AuthorizedKeysFile     %h/.ssh/authorized_keys

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

# To enable empty passwords, change to yes (NOT RECOMMENDED)
PermitEmptyPasswords no

# Change to yes to enable challenge-response passwords (beware issues with
# some PAM modules and threads)
ChallengeResponseAuthentication no

# Change to no to disable tunnelled clear text passwords
#PasswordAuthentication yes

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

# GSSAPI options
#GSSAPIAuthentication no
#GSSAPICleanupCredentials yes

X11Forwarding yes
X11DisplayOffset 10
PrintMotd no
PrintLastLog yes
TCPKeepAlive yes
#UseLogin no

#MaxStartups 10:30:60
#Banner /etc/issue.net

# Allow client to pass locale environment variables
AcceptEnv LANG LC_*

Subsystem sftp /usr/lib/openssh/sftp-server

# 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

# eingefügt wegen X11 Forwarding
AddressFamily inet
X11UseLocalhost no

#eingefügt wegen langsamem Starten evrschiedener Anwendungen
usedns no
root@ptLWL01:/etc/ssh# 
Wie kann ich das Problem beheben?

Benutzeravatar
Blackbox
Beiträge: 4289
Registriert: 17.09.2008 17:01:20
Lizenz eigener Beiträge: GNU Free Documentation License

Re: graf. Anwendung auf ssh-Server startet nicht

Beitrag von Blackbox » 12.07.2016 21:40:40

Ganz doofe Frage, was passiert wenn du

Code: Alles auswählen

$ ssh -X user@host
eingibst?
Aber erst einmal werf deine Basteleien aus deiner ssh Konfiguration raus.
Eigenbau PC: Debian Sid - Kernel: 6.5.13 - Xfce 4.18 mit sway
Desktop PC: Dell Inspiron 530 - Debian Sid - Kernel: 6.5.13 - Xfce 4.18 mit sway
Notebook: TUXEDO BU1406 - Debian Sid - Kernel: 6.5.13 - Xfce 4.18 mit sway
Alles Minimalinstallationen und ohne sudo/PA/PW.
Rootserver: Rocky Linux 9.3 - Kernel: 5.14

Freie Software unterstützen, Grundrechte stärken!

diggerchen
Beiträge: 114
Registriert: 15.01.2005 22:35:26

Re: graf. Anwendung auf ssh-Server startet nicht

Beitrag von diggerchen » 13.07.2016 09:03:38

Ich mag völlig daneben liegen - in dem Fall könnte ich immerhin was lernen. Aber was hat der X-Server auf der Remote-Maschine mit der sshd-Konfiguration auf derselben Maschine zu tun? Da auch Blackbox Richtung Forwarding zielt: Müsste die Konstellation nicht so sein, dass der X-Server auf dem Client laufen muss statt auf der Remote-Maschine? Das Forwarding leitet dann doch nur die Zugriffe der Anwendung auf dem Remote-System auf den X-Server auf dem Client weiter. Dann wäre die sshd-Konfiguration von Interesse.

Ob der X-Server nicht startet weil er über eine Remote-Session aufgerufen wird, kann ich nicht sagen.

uname
Beiträge: 12075
Registriert: 03.06.2008 09:33:02

Re: graf. Anwendung auf ssh-Server startet nicht

Beitrag von uname » 13.07.2016 09:58:18

Was willst du denn von deinem entfernten System auf dem Client sehen? Wirklich einen ganzen Desktop (da du startx eingegeben hast)? Welchen Desktop? Wenn du das willst solltest du vielleicht andere Dinge wie z.B. "vnc über ssh" verwenden. Wenn es einzelne Anwendungen sind dann "ssh -X user@server" und die Anwendungen einzeln tunneln wie z.B. "xterm".

letzter3
Beiträge: 446
Registriert: 16.07.2011 22:07:31

Re: graf. Anwendung auf ssh-Server startet nicht

Beitrag von letzter3 » 13.07.2016 20:18:17

Bin gerade völlig Land unter.
Rückmeldung kommt...

Antworten