проблема с соединением FreeNX

Обсуждение настройки и работы сервисов, резервирования, сетевых настроек и вопросов безопасности ОС.

Модераторы: SLEDopit, Модераторы разделов

sawerse
Сообщения: 65
ОС: OpenBSD

проблема с соединением FreeNX

Сообщение sawerse »

Насраивал freeNX следуя этому мануалу.
http://www.altlinux.org/FreeNX

При поптке подсоеденится с другой машины получаю вот это

Код: Выделить всё

NX> 203 NXSSH running with pid: 12064
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: 195.39.214.99 on port: 22
NX> 202 Authenticating user: nx
NX> 208 Using auth method: publickey
HELLO NXSERVER - Version 2.1.0-72-SVN OS (GPL)
NX> 105 hello NXCLIENT - Version 2.1.0
NX> 134 Accepted protocol: 2.1.0
NX> 105 SET SHELL_MODE SHELL
NX> 105 SET AUTH_MODE PASSWORD
NX> 105 login
NX> 101 User: nx
NX> 102 Password:
NX> 103 Welcome to: localhost user: nx
NX> 105 listsession --user="nx" --status="suspended,running" --geometry="1024x768x24+render" --type="unix-kde"
NX> 127 Sessions list of user 'nx' for reconnect:

Display Type             Session ID                       Options  Depth Screen         Status      Session Name
------- ---------------- -------------------------------- -------- ----- -------------- ----------- ------------------------------


NX> 148 Server capacity: not reached for user: nx
NX> 105 startsession  --link="adsl" --backingstore="1" --encryption="1" --cache="16M" --images="64M" --shmem="1" --shpix="1" --strict="0" --composite="1" --media="0" --session="test" --type="unix-kde" --geometry="1024x737" --client="linux" --keyboard="pc105/us" --screeninfo="1024x737x24+render"

/usr/bin/nxserver: line 1221: [: missing `]'
Permission denied (publickey,password,keyboard-interactive).
NX> 280 Exiting on signal: 15

На 1221 строке в nxserver находится вот это

Код: Выделить всё

                        while [ -e /tmp/.X$SESS_DISPLAY-lock -o -e "/tmp/.nX$SESS_DISPLAY-lock"  -o -e "/tmp/.X11-unix/X$SES$/X$SESS_DISPLAY"]

Смотрел лог лог чистый
В чем может быть проблема?
Спасибо сказали:
Аватара пользователя
Ленивая Бестолочь
Бывший модератор
Сообщения: 2760
ОС: Debian; gentoo

Re: проблема с соединением FreeNX

Сообщение Ленивая Бестолочь »

попробуйте пробел вставить перед закрывающей скобкой.
Солнце садилось в море, а люди с неоконченным высшим образованием выбегали оттуда, думая, что море закипит.
Спасибо сказали:
sawerse
Сообщения: 65
ОС: OpenBSD

Re: проблема с соединением FreeNX

Сообщение sawerse »

помогло.

Код: Выделить всё

/usr/bin/nxserver: line 1221: [: missing `]'

ушло но

Код: Выделить всё

Permission denied (publickey,password,keyboard-interactive)

осталось.
В чем тут может быть проблема?
Спасибо сказали:
Аватара пользователя
Ленивая Бестолочь
Бывший модератор
Сообщения: 2760
ОС: Debian; gentoo

Re: проблема с соединением FreeNX

Сообщение Ленивая Бестолочь »

ну это похоже на ошибку при соединении по ssh.
попробуйте разложить ssh-ные ключики правильно.
Солнце садилось в море, а люди с неоконченным высшим образованием выбегали оттуда, думая, что море закипит.
Спасибо сказали:
sawerse
Сообщения: 65
ОС: OpenBSD

Re: проблема с соединением FreeNX

Сообщение sawerse »

Ленивая Бестолочь писал(а):
18.04.2009 15:56
ну это похоже на ошибку при соединении по ssh.
попробуйте разложить ssh-ные ключики правильно.

А можно по подробнее. Что где должно лежать?
Спасибо сказали:
Аватара пользователя
Ленивая Бестолочь
Бывший модератор
Сообщения: 2760
ОС: Debian; gentoo

Re: проблема с соединением FreeNX

Сообщение Ленивая Бестолочь »

Солнце садилось в море, а люди с неоконченным высшим образованием выбегали оттуда, думая, что море закипит.
Спасибо сказали:
vold
Сообщения: 11

Re: проблема с соединением FreeNX

Сообщение vold »

Аналогично

NX>595 ERROR: A fatal errop occured in NX Server

ВОПРОС: Куда копать?

на сервере

Код: Выделить всё

/var/log/messages:
 14:02:01 NXNODE-3.3.0-17[2600]: DEBUG: run command: process '2754' stderr was '' main::run_command nxnode 1892
 14:02:01 NXNODE-3.3.0-17[2600]: ERROR: NX> 596 ERROR: NXNODE Ver. 3.3.0-17  (Error id e852969) [e852969] Logger::log nxnode 2937
 14:02:01 NXNODE-3.3.0-17[2600]: ERROR: NX> 596 ERROR: create session: run commands [e852969] Logger::log nxnode 2937
 14:02:01 NXNODE-3.3.0-17[2600]: ERROR: NX> 596 ERROR: execution of last command failed [e852969] Logger::log nxnode 2937
 14:02:01 NXNODE-3.3.0-17[2600]: ERROR: NX> 596 last command: /bin/bash --login -c 'xauth -v -f /home/TeSt/.nx/C-test.mydomain.ru-1005-9AD8A72140FBA6FCCA89B2A51123BC95/authority source /home/TeSt/.nx/C-test.mydomain.ru-1005-9AD8A72140FBA6FCCA89B2A51123BC95/scripts/authority' [e852969] Logger::log nxnode 2937
 14:02:01 NXNODE-3.3.0-17[2600]: ERROR: NX> 596 exit value: 1 [e852969] Logger::log nxnode 2937
 14:02:01 NXNODE-3.3.0-17[2600]: ERROR: NX> 596 stdout: Using authority file /home/TeSt/.nx/C-test.mydomain.ru-1005-9AD8A72140FBA6FCCA89B2A51123BC95/authority [e852969] Logger::log nxnode 2937
 14:02:01 NXNODE-3.3.0-17[2600]: ERROR: NX> 596 Writing authority file /home/TeSt/.nx/C-test.mydomain.ru-1005-9AD8A72140FBA6FCCA89B2A51123BC95/authority [e852969] Logger::log nxnode 2937
 14:02:01 NXNODE-3.3.0-17[2600]: ERROR: NX> 596 stderr: xauth:  creating new authority file /home/TeSt/.nx/C-test.mydomain.ru-1005-9AD8A72140FBA6FCCA89B2A51123BC95/authority [e852969] Logger::log nxnode 2937
 14:02:01 NXNODE-3.3.0-17[2600]: ERROR: NX> 596 xauth: /home/TeSt/.nx/C-test.mydomain.ru-1005-9AD8A72140FBA6FCCA89B2A51123BC95/scripts/authority:3:  bad display name "test.mydomain.ru:1005" in "add" command [e852969] Logger::log nxnode 2937
 14:02:01 NXNODE-3.3.0-17[2600]: ERROR: NX> 596 . [e852969] Logger::log nxnode 2937
 14:02:01 NXNODE-3.3.0-17[2600]: ERROR: NX> 596 init: stdin arguments: user=TeSt,userip=192%2e168%2e1%2e64,uniqueid=9AD8A72140FBA6FCCA89B2A51123BC95,display=1005,node_number=0,server
_name=localhost,license=%28None%29,subscriptionid=None,productid=LFE,reconnect=1,balance_host=192%2e168%2e1%2e60,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,composi
t
e=1,session=test,shmem=1,type=unix%2dgnome,virtualdesktop=1,screeninfo=1024x718x24%2brender,keyboard=pc102%2fus,geometry=1024x718,link=lan Logger::log nxnode 2937
 14:02:01 NXNODE-3.3.0-17[2600]: DEBUG: sent response message 'NX> 596 ERROR: NXNODE Ver. 3.3.0-17  (Error id e852969)\nNX> 596 ERROR: create session: run commands\nNX> 596 ERROR: execution of last command failed\nNX> 596 last command: /bin/bash --login -c 'xauth -v -f /home/TeSt/.nx/C-test.mydomain.ru-1005-9AD8A72140FBA6FCCA89B2A51123BC95/authority source /home/TeSt/.nx/C-test.mydomain.ru-1005-9AD8A72140FBA6FCCA89B2A51123BC95/scripts/authority'\nNX> 596 exit value: 1\nNX> 596 stdout: Using authority file /home/TeSt/.nx/C-test.mydomain.ru-1005-9AD8A72140FBA6FCCA89B2A51123BC95/authority\nNX> 596 Writing authority file /home/TeSt/.nx/C-test.mydomain.ru-1005-9AD8A72140FBA6FCCA89B2A51123BC95/authority\nNX> 596 stderr: xauth:  creating new authority file /home/TeSt/.nx/C-test.mydomain.ru-1005-9AD8A72140FBA6FCCA89B2A51123BC95/authority\nNX> 596 xauth: /home/TeSt/.nx/C-test.mydomain.ru-1005-9AD8A72140FBA6FCCA89B2A51123BC95/scripts/authority:3:  bad display name "test.mydomain.ru:1005" in "add" command\nNX> 596 init: stdin arguments: user=TeSt,userip=192%2e168%2e1%2e64,uniqueid=9AD8A72140FBA6FCCA89B2A51123BC95,display=1005,node_number=0,server
_name=localhost,license=%28None%29,subscriptionid=None,productid=LFE,reconnect=1,balance_host=192%2e168%2e1%2e60,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,composi
t
e=1,session=test,shmem=1,type=unix%2dgnome,virtualdesktop=1,screeninfo=1024x718x24%2brender,keyboard=pc102%2fus,geometry=1024x718,link=lan' 'NXMsg::send_response'
 14:02:01 NXNODE-3.3.0-17[2600]: DEBUG: Sent response message: 1003, with parameters: '' main::send_response_message nxnode 3003
 14:02:01 NXSERVER-3.3.0-22[2582]: DEBUG: received data in out channel from NX Node: 'NX> 1003 Error.\n' (NXNodeExec). Stored status. 'Logger::statusPush'
 14:02:01 NXSERVER-3.3.0-22[2582]: DEBUG: received data in err channel from NX Node: 'NX> 596 ERROR: NXNODE Ver. 3.3.0-17  (Error id e852969)\nNX> 596 ERROR: create session: run commands\nNX> 596 ERROR: execution of last command failed\nNX> 596 last command: /bin/bash --login -c 'xauth -v -f /home/TeSt/.nx/C-test.mydomain.ru-1005-9AD8A72140FBA6FCCA89B2A51123BC95/authority source /home/TeSt/.nx/C-test.mydomain.ru-1005-9AD8A72140FBA6FCCA89B2A51123BC95/scripts/authority'\nNX> 596 exit value: 1\nNX> 596 stdout: Using authority file /home/TeSt/.nx/C-test.mydomain.ru-1005-9AD8A72140FBA6FCCA89B2A51123BC95/authority\nNX> 596 Writing authority file /home/TeSt/.nx/C-test.mydomain.ru-1005-9AD8A72140FBA6FCCA89B2A51123BC95/authority\nNX> 596 stderr: xauth:  creating new authority file /home/TeSt/.nx/C-test.mydomain.ru-1005-9AD8A72140FBA6FCCA89B2A51123BC95/authority\nNX> 596 xauth: /home/TeSt/.nx/C-test.mydomain.ru-1005-9AD8A72140FBA6FCCA89B2A51123BC95/scripts/authority:3:  bad display name "test.mydomain.ru:1005" in "add" command\nNX> 596 init: stdin arguments: user=TeSt,userip=192%2e168%2e1%2e64,uniqueid=9AD8A72140FBA6FCCA89B2A51123BC95,display=1005,node_number=0,server
_name=localhost,license=%28None%29,subscriptionid=None,productid=LFE,reconnect=1,balance_host=192%2e168%2e1%2e60,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,composi
t
e=1,session=test,shmem=1,type=unix%2dgnome,virtualdesktop=1,screeninfo=1024x718x24%2brender,keyboard=pc102%2fus,geometry=1024x718,link=lan\n' (NXNodeExec). Stored status. 'Logger::statusPush'
 14:02:01 NXSERVER-3.3.0-22[2582]: DEBUG: Error: received message 'ERROR' from NX Node (NXNodeExec). Stored status. 'Logger::statusPush'
 14:02:01 NXSERVER-3.3.0-22[2582]: DEBUG: closing nxssh's in, out, err FDs (flagfinished is: 1) (NXNodeExec). Stored status. 'Logger::statusPush'
 14:02:02 NXNODE-3.3.0-17[2600]: DEBUG: session monitor: removing applications authority cookies Logger::log nxnode 8768
 14:02:02 NXNODE-3.3.0-17[2600]: DEBUG: shutdown: no applications authority cookies script to run Logger::log nxnode 8790
 14:02:02 NXNODE-3.3.0-17[2600]: DEBUG: session monitor: no printers to remove Logger::log nxnode 8822
 14:02:02 NXNODE-3.3.0-17[2600]: getting agent pid: cannot read pid file '/home/TeSt/.nx/C-test.mydomain.ru-1005-9AD8A72140FBA6FCCA89B2A51123BC95/pids/agent'. Exiting. main::get_agent_pid nxnode 8829
 14:02:02 NXNODE-3.3.0-17[2600]: DEBUG: unexpected nxagent process running with pid '-1' killed with signal '9' 'main::killAgent'
 14:02:02 NXNODE-3.3.0-17[2600]: directory '/home/TeSt/.nx/C-test.mydomain.ru-1005-9AD8A72140FBA6FCCA89B2A51123BC95' moved into '/home/TeSt/.nx/F-C-test.mydomain.ru-1005-9AD8A72140FBA6FCCA89B2A51123BC95' for investigation Logger::log nxnode 8886
 14:02:02 NXSERVER-3.3.0-22[2582]: DEBUG: waiting process: with pid '2595' 'WaitProcess::waitProcess'
 14:02:02 NXSERVER-3.3.0-22[2582]: DEBUG: waiting process: using 5s as timeout 'WaitProcess::waitProcess'
 14:02:02 NXSERVER-3.3.0-22[2582]: DEBUG: process with pid '2595' has exited 'WaitProcess::waitProcess'
 14:02:02 NXSERVER-3.3.0-22[2582]: DEBUG: process exit status is '0' 'WaitProcess::getExitStatus'
 14:02:02 NXSERVER-3.3.0-22[2582]: DEBUG: process exit status is '0' 'WaitProcess::getExitStatus'
 14:02:02 NXSERVER-3.3.0-22[2582]: DEBUG: nxssh process exited with '0' 'NXNodeExec::exec'
 14:02:02 NXSERVER-3.3.0-22[2582]: DEBUG: Error: NX Node finished with errors (NXNodeExec). Stored status. 'Logger::statusPush'
 14:02:02 NXSERVER-3.3.0-22[2582]: DEBUG: SCRIPTS:: script_before_session_failure [9AD8A72140FBA6FCCA89B2A51123BC95,TeSt,localhost,22] 'NXScripts::script_before_session_failure'

Код: Выделить всё

uname -a
Linux test.mydomain.ru 2.6.29.1-100.fc11.i686.PAE #1 SMP Sat Apr 18 18:16:13 EDT 2009 i686 i686 i386 GNU/Linux

ssh -v -l nx localhost
OpenSSH_5.2p1, OpenSSL 0.9.8k-fips
...
debug1: Remote: Port forwarding disabled.
debug1: Remote: Agent forwarding disabled.
debug1: Remote: Forced command: /usr/NX/bin/nxserver --login
debug1: Server accepts key: pkalg ssh-dss blen 434
debug1: Remote: Port forwarding disabled.
debug1: Remote: Agent forwarding disabled.
debug1: Remote: Forced command: /usr/NX/bin/nxserver --login
debug1: Authentication succeeded (publickey).
debug1: Requesting tun unit 2147483647 in mode 1
debug1: sys_tun_open: failed to open tunnel control interface: Permission denied
Tunnel device open failed.
Could not request tunnel forwarding.
debug1: channel 0: new [client-session]
debug1: Requesting no-more-sessions@openssh.com
debug1: Entering interactive session.
debug1: Requesting X11 forwarding with authentication spoofing.
debug1: Requesting authentication agent forwarding.
debug1: Sending environment.
debug1: Sending env LANG = en_US.UTF-8
HELLO NXSERVER - Version 3.3.0-22 - LFE
NX> 105 quit                                                                     <Enter>
Quit
NX> 999 Bye.
.....
Connection to localhost closed.
debug1: Exit status 0

Код: Выделить всё

cat sshd_config

Port 22
Protocol 2
SyslogFacility AUTHPRIV
LogLevel DEBUG
LoginGraceTime 2m
PermitRootLogin forced-commands-only
StrictModes yes
MaxAuthTries 6
MaxSessions 10
RSAAuthentication no
PubkeyAuthentication yes
AuthorizedKeysFile    .ssh/authorized_keys2
RhostsRSAAuthentication no
HostbasedAuthentication no
IgnoreUserKnownHosts no
IgnoreRhosts yes
PasswordAuthentication yes
PermitEmptyPasswords no
ChallengeResponseAuthentication no
KerberosAuthentication no
GSSAPIAuthentication no
UsePAM yes
AcceptEnv LANG LC_CTYPE LC_NUMERIC LC_TIME LC_COLLATE LC_MONETARY LC_MESSAGES
AcceptEnv LC_PAPER LC_NAME LC_ADDRESS LC_TELEPHONE LC_MEASUREMENT
AcceptEnv LC_IDENTIFICATION LC_ALL LANGUAGE
AllowTcpForwarding yes
GatewayPorts yes
X11Forwarding yes
X11DisplayOffset 10
X11UseLocalhost yes
PrintMotd yes
PrintLastLog yes
TCPKeepAlive yes
UseLogin no
UsePrivilegeSeparation yes
PermitUserEnvironment yes
Compression delayed
ClientAliveInterval 0
ClientAliveCountMax 3
ShowPatchLevel no
UseDNS yes
PidFile /var/run/sshd.pid
MaxStartups 10
PermitTunnel yes
ChrootDirectory none
Banner none
Subsystem    sftp    /usr/libexec/openssh/sftp-server
Спасибо сказали:
vold
Сообщения: 11

Re: проблема с соединением FreeNX

Сообщение vold »

Оно себе заработало ... после рихтовки настроек DNS.
--------------------------------------------------
/etc/hosts
...
192.168.1.1 test.mydomain.ru test
--------------------------------------------------
host test
test.MYDOMAIN.RU has address 192.168.1.1
--------------------------------------------------
host 192.168.1.1
1.1.168.192.in-addr.arpa domain name pointer test.mydomain.ru.
--------------------------------------------------
/usr/NX/etc/node.cfg

AgentFontServer=""
--------------------------------------------------
NXSERVER-3.3.0-22 -> http://www.nomachine.com/download-package.php?Prod_Id=719
Спасибо сказали: