3qualizer
12.10.05, 11:40
Hi.
Ich habe hier auf dem Gentoo-Rechner einen NX-Server emerged (net-misc/nxserver-freenx-0.4.0)
Wenn ich das System soweit richtig verstanden habe loggen sich NX-Clients zunächst per SSH ein und da sie den nxserver als Shell haben übernimmt dieser dann.
Mein Problem ist, das ich genau den Punkt mit der Authentifizierung des nx-users nicht hinbekomme.
Hier ein Auszug aus dem SSH-Log, auf Debug gestellt:
Oct 12 11:38:20 [sshd] debug1: rexec start in 4 out 4 newsock 4 pipe 6 sock 7
Oct 12 11:38:20 [sshd] debug1: Forked child 9192.
Oct 12 11:38:20 [sshd] debug1: inetd sockets after dupping: 3, 3
Oct 12 11:38:20 [sshd] Connection from [IP] port 1198
Oct 12 11:38:20 [sshd] debug1: Client protocol version 2.0; client software version OpenSSH_3.9p1
Oct 12 11:38:20 [sshd] debug1: match: OpenSSH_3.9p1 pat OpenSSH_3.*
Oct 12 11:38:20 [sshd] debug1: Enabling compatibility mode for protocol 2.0
Oct 12 11:38:20 [sshd] debug1: Local version string SSH-2.0-OpenSSH_4.2
Oct 12 11:38:22 [sshd] debug1: PAM: initializing for "nx"
Oct 12 11:38:23 [sshd] debug1: PAM: setting PAM_RHOST to "[HOST]"
Oct 12 11:38:23 [sshd] debug1: PAM: setting PAM_TTY to "ssh"
Oct 12 11:38:23 [sshd] debug1: temporarily_use_uid: 103/100 (e=0/0)
Oct 12 11:38:23 [sshd] debug1: trying public key file /usr/NX/home/nx/.ssh/authorized_keys
Oct 12 11:38:23 [sshd] debug1: restore_uid: 0/0
Oct 12 11:38:23 [sshd] debug1: temporarily_use_uid: 103/100 (e=0/0)
Oct 12 11:38:23 [sshd] debug1: trying public key file /usr/NX/home/nx/.ssh/authorized_keys2
Oct 12 11:38:23 [sshd] debug1: restore_uid: 0/0
Oct 12 11:38:23 [sshd] debug1: do_cleanup
Oct 12 11:38:23 [sshd] debug1: PAM: cleanup
([HOST] und [IP] sind natürlich der host/die ip von der ich verbinde)
/usr/NX/home/nx/.ssh/authorized_keys2 existiert und enthält auch einen key, etwa in der Form:
no-port-forwarding,no-X11-forwarding,no-agent-forwarding,command="/usr/NX/bin/nxserver" ssh-dss [KEY] root@lap1600
Der gleiche Key ist in /usr/NX/home/nx/.ssh/server.id_dsa.pub.key enthalten.
Ich versuche mich mit einem WinXP NX-Client zu verbinden. Den Key (die server.id_dsa.pub.key) habe ich mir auf die Win-Kiste kopiert und bei den Optionen unter Key importiert. Beim Verbinden kommt nun diese Meldung (zeitgleich zum SSHd-Log):
NX> 203 NXSSH running with pid: 172
NX> 285 Enabling check on switch command
NX> 285 Enabling skip of SSH config files
NX> 200 Connected to address: [IP] on port: 22
NX> 202 Authenticating user: nx
NX> 208 Using auth method: publickey
NX> 204 Authentication failed.
Hat jemand einen Tip wie es richtig geht? ;)
Tia, three
Ich habe hier auf dem Gentoo-Rechner einen NX-Server emerged (net-misc/nxserver-freenx-0.4.0)
Wenn ich das System soweit richtig verstanden habe loggen sich NX-Clients zunächst per SSH ein und da sie den nxserver als Shell haben übernimmt dieser dann.
Mein Problem ist, das ich genau den Punkt mit der Authentifizierung des nx-users nicht hinbekomme.
Hier ein Auszug aus dem SSH-Log, auf Debug gestellt:
Oct 12 11:38:20 [sshd] debug1: rexec start in 4 out 4 newsock 4 pipe 6 sock 7
Oct 12 11:38:20 [sshd] debug1: Forked child 9192.
Oct 12 11:38:20 [sshd] debug1: inetd sockets after dupping: 3, 3
Oct 12 11:38:20 [sshd] Connection from [IP] port 1198
Oct 12 11:38:20 [sshd] debug1: Client protocol version 2.0; client software version OpenSSH_3.9p1
Oct 12 11:38:20 [sshd] debug1: match: OpenSSH_3.9p1 pat OpenSSH_3.*
Oct 12 11:38:20 [sshd] debug1: Enabling compatibility mode for protocol 2.0
Oct 12 11:38:20 [sshd] debug1: Local version string SSH-2.0-OpenSSH_4.2
Oct 12 11:38:22 [sshd] debug1: PAM: initializing for "nx"
Oct 12 11:38:23 [sshd] debug1: PAM: setting PAM_RHOST to "[HOST]"
Oct 12 11:38:23 [sshd] debug1: PAM: setting PAM_TTY to "ssh"
Oct 12 11:38:23 [sshd] debug1: temporarily_use_uid: 103/100 (e=0/0)
Oct 12 11:38:23 [sshd] debug1: trying public key file /usr/NX/home/nx/.ssh/authorized_keys
Oct 12 11:38:23 [sshd] debug1: restore_uid: 0/0
Oct 12 11:38:23 [sshd] debug1: temporarily_use_uid: 103/100 (e=0/0)
Oct 12 11:38:23 [sshd] debug1: trying public key file /usr/NX/home/nx/.ssh/authorized_keys2
Oct 12 11:38:23 [sshd] debug1: restore_uid: 0/0
Oct 12 11:38:23 [sshd] debug1: do_cleanup
Oct 12 11:38:23 [sshd] debug1: PAM: cleanup
([HOST] und [IP] sind natürlich der host/die ip von der ich verbinde)
/usr/NX/home/nx/.ssh/authorized_keys2 existiert und enthält auch einen key, etwa in der Form:
no-port-forwarding,no-X11-forwarding,no-agent-forwarding,command="/usr/NX/bin/nxserver" ssh-dss [KEY] root@lap1600
Der gleiche Key ist in /usr/NX/home/nx/.ssh/server.id_dsa.pub.key enthalten.
Ich versuche mich mit einem WinXP NX-Client zu verbinden. Den Key (die server.id_dsa.pub.key) habe ich mir auf die Win-Kiste kopiert und bei den Optionen unter Key importiert. Beim Verbinden kommt nun diese Meldung (zeitgleich zum SSHd-Log):
NX> 203 NXSSH running with pid: 172
NX> 285 Enabling check on switch command
NX> 285 Enabling skip of SSH config files
NX> 200 Connected to address: [IP] on port: 22
NX> 202 Authenticating user: nx
NX> 208 Using auth method: publickey
NX> 204 Authentication failed.
Hat jemand einen Tip wie es richtig geht? ;)
Tia, three