Forum Linux.général Mise en place de NXServer sur du SSH déjà présent

Posté par  .
Étiquettes : aucune
0
26
juin
2008
Bonjour à tous,

Je tente actuellement de passer au système NXserver afin de remplacer le couple VNC/tunnel SSH.
Cependant, je me heurte à pas mal de problèmes de clés d'authentifications et autres.
Bon alors, j'ai suivi ce tuto Gentoo >> http://gentoo-wiki.com/Talk:HOWTO_FreeNX_Server#Authenticati(...)
sans grand succès, j'ai toujours un erreur au moment de la connexion, et je m'embrouille un peu avec toutes ces clés (notamment la clé privée que l'on doit avoir du côté client...:/)

En fait, j'ai déjà configuré mes deux machines A et B pour avoir une connexion SSH facilement de A vers B (server SSH sur B uniquemement) avec authentification par clé exclusive (pas d'authentification par mot de passe possible)

J'aurai bien voulu garder mes couples de clés existant et les utiliser avec NX au lieu d'en créer, mais comme j'ai voulu suivre le tuto à la lettre, j'ai recréer une paire de clé spécialement pour NX, mais le résultat est toujours pareil, j'obtiens ça :

NX> 203 NXSSH running with pid: 13253
NX> 285 Enabling check on switch command
NX> 285 Enabling skip of SSH config files
NX> 285 Setting the preferred NX options
NX> 200 Connected to address: 192.168.0.10 on port: 22
NX> 202 Authenticating user: nx
NX> 208 Using auth method: publickey
NX> 204 Authentication failed.


(Pour l'instant, la connexion se fait sur le même réseau local, d'où le 192.168.0.10)
Je comprend pas très bien comment fonctionne NX, mais c'est un peu le bazar, déjà on doit installer nxclient,server,node sur A et B. De plus, pourquoi doit-on utiliser la clé privée créer sur le serveur sur le client ? Ca devrait pas être la clé publique ?
Si je met des passphrase à mes clés, il semble que NX le prenne pas en compte...

Bref, si quelqu'un si pouvait m'aider à sortir de ce pétrin...

Merci d'avance ;)
  • # Bon

    Posté par  . Évalué à 1.

    Finalement, j'ai réussi à régler ce problème d'authentification, mais j'ai un autre problème maintenant :

    Sur le client :


    :36 machineB NXSERVER-3.2.0-13[8352]: User 'user1' logged in from '192.168.0.11'. 'NXLogin::set'
    :36 machineB NXSERVER-3.2.0-13[8352]: Selected node host:localhost with port:22 'main::selectNode'
    :36 machineB NXSERVER-3.2.0-13[8352]: Current selected node: localhost is in status: running 'main::selectNode'
    :36 machineB NXSERVER-3.2.0-13[8352]: Selected session type: unix-gnome allowed in the profile of user: user1 'NXShell::Static'
    :39 machineB NXSERVER-3.2.0-13[8352]: ERROR: nxssh process exited with '255' 'NXNodeExec::exec'
    :41 machineB NXNODE-3.2.0-11[8370]: ERROR: NX> 596 ERROR: NXNODE Ver. 3.2.0-11 (Error id eEC512F) [eEC512F] Logger::log nxnode 2893
    :41 machineB NXNODE-3.2.0-11[8370]: ERROR: NX> 596 ERROR: create session: run commands [eEC512F] Logger::log nxnode 2893
    :41 machineB NXNODE-3.2.0-11[8370]: ERROR: NX> 596 ERROR: execution of last command failed [eEC512F] Logger::log nxnode 2893
    :41 machineB NXNODE-3.2.0-11[8370]: ERROR: NX> 596 last command: /bin/bash --login -c '/usr/bin/xauth -v source /home/user1/.nx/C-machineB-1007-6D747CAAAA03632342A77902BFF73EF5/scripts/authority' [eEC512F] Logger::log nxnode 2893
    :41 machineB NXNODE-3.2.0-11[8370]: ERROR: NX> 596 exit value: 1 [eEC512F] Logger::log nxnode 2893
    :41 machineB NXNODE-3.2.0-11[8370]: ERROR: NX> 596 stdout: [eEC512F] Logger::log nxnode 2893
    :41 machineB NXNODE-3.2.0-11[8370]: ERROR: NX> 596 stderr: /usr/bin/xauth: /home/user1/.Xauthority not writable, changes will be ignored [eEC512F] Logger::log nxnode 2893
    :41 machineB NXNODE-3.2.0-11[8370]: ERROR: NX> 596 . [eEC512F] Logger::log nxnode 2893
    :41 machineB NXNODE-3.2.0-11[8370]: ERROR: NX> 596 init: stdin arguments: user=user1,userip=192%2e168%2e0%2e11,uniqueid=6D747CAAAA03632342A77902BFF73EF5,display=1007,license=%28Evaluation%29,subscriptionid=None,productid=LES,reconnect=1,balance_host=192%2e168%2e0%2e10,encryption_mode=3,connection=local,images=64M,cache=16M,client=linux,media=0,backingstore=1,encryption=1,strict=0,clipboard=both,shpix=1,rootless=0,composite=1,session=essai,shmem=1,type=unix%2dgnome,virtualdesktop=1,screeninfo=800x600x24%2brender,keyboard=pc105%2ffr,geometry=800x600%2b240%2b64,link=lan Logger::log nxnode 2893
    :42 machineB NXNODE-3.2.0-11[8370]: getting agent pid: cannot read pid file '/home/user1/.nx/C-machineB-1007-6D747CAAAA03632342A77902BFF73EF5/pids/agent'. Exiting. main::get_agent_pid nxnode 8717
    :42 machineB NXNODE-3.2.0-11[8370]: directory '/home/user1/.nx/C-machineB-1007-6D747CAAAA03632342A77902BFF73EF5' moved into '/home/user1/.nx/F-C-machineB-1007-6D747CAAAA03632342A77902BFF73EF5' for investigation Logger::log nxnode 8774
    :42 machineB NXSERVER-3.2.0-13[8352]: ERROR: (exception id 45B37686) Failed to add the host to the list of known hosts (/usr/NX/home/nx/.ssh/known_hosts).^M
    :42 machineB NXSERVER-3.2.0-13[8352]: ERROR: (exception id 45B37686) NX> 596 ERROR: NXNODE Ver. 3.2.0-11 (Error id eEC512F)
    :42 machineB NXSERVER-3.2.0-13[8352]: ERROR: (exception id 45B37686) NX> 596 ERROR: create session: run commands
    :42 machineB NXSERVER-3.2.0-13[8352]: ERROR: (exception id 45B37686) NX> 596 ERROR: execution of last command failed
    :42 machineB NXSERVER-3.2.0-13[8352]: ERROR: (exception id 45B37686) NX> 596 last command: /bin/bash --login -c '/usr/bin/xauth -v source /home/user1/.nx/C-machineB-1007-6D747CAAAA03632342A77902BFF73EF5/scripts/authority'
    :42 machineB NXSERVER-3.2.0-13[8352]: ERROR: (exception id 45B37686) NX> 596 exit value: 1
    :42 machineB NXSERVER-3.2.0-13[8352]: ERROR: (exception id 45B37686) NX> 596 stdout:
    :42 machineB NXSERVER-3.2.0-13[8352]: ERROR: (exception id 45B37686) NX> 596 stderr: /usr/bin/xauth: /home/user1/.Xauthority not writable, changes will be ignored
    :42 machineB NXSERVER-3.2.0-13[8352]: ERROR: (exception id 45B37686) NX> 596 init: stdin arguments: user=user1,userip=192%2e168%2e0%2e11,uniqueid=6D747CAAAA03632342A77902BFF73EF5,display=1007,license=%28Evaluation%29,subscriptionid=None,productid=LES,reconnect=1,balance_host=192%2e168%2e0%2e10,encryption_mode=3,connection=local,images=64M,cache=16M,client=linux,media=0,backingstore=1,encryption=1,strict=0,clipboard=both,shpix=1,rootless=0,composite=1,session=essai,shmem=1,type=unix%2dgnome,virtualdesktop=1,screeninfo=800x600x24%2brender,keyboard=pc105%2ffr,geometry=800x600%2b240%2b64,link=lan
    :42 machineB NXSERVER-3.2.0-13[8352]: ERROR: (exception id 45B37686) NXNodeExec::exec('startsession', 'user=user1&userip=192%2e168%2e0%2e11&uniqueid=6D747CAAAA036323...', 'localhost', 22) called at handlers/nxserver.pl line 3398
    :42 machineB NXSERVER-3.2.0-13[8352]: ERROR: (exception id 45B37686) NXShell::handler_session_start('--link="lan" --backingstore="1" --encryption="1" --cache="16M" -...') called at NXShell.pm line 373
    :42 machineB NXSERVER-3.2.0-13[8352]: ERROR: (exception id 45B37686) NXShell::handle_command('startsession', '--link="lan" --backingstore="1" --encryption="1" --cache="16M" -...') called at NXShell.pm line 145
    :42 machineB NXSERVER-3.2.0-13[8352]: ERROR: (exception id 45B37686) NXShell::run() called at nxserver.pl line 4461
    :42 machineB NXSERVER-3.2.0-13[8352]: ERROR: (exception id 45B37686) eval {...} called at nxserver.pl line 4420




    Je soupçonnes Xauth de poser problème...

Suivre le flux des commentaires

Note : les commentaires appartiennent à celles et ceux qui les ont postés. Nous n’en sommes pas responsables.