LINUX.ORG.RU

nxserver что-то хочет

 ,


0

1

Хочу поставить nxserver на ноут с OpenSUSE 12.2. Сами пакеты поставил, службу запустил. Не дает коннектиться. Вот вывод:

> sudo /usr/NX/bin/nxserver --useradd bvn13 --system
NX> 309 User: bvn13 is already present on the system.
NX> 801 User: bvn13 uses SSHD authentication.
NX> 900 Adding public key for user: bvn13 to the authorized keys file.
NX> 716 Public key added to: /home/bvn13/.ssh/authorized_keys2.
NX> 900 Verifying public key authentication for NX user: bvn13.
NX> 910 WARNING: The SSH  key to be used for user authentication was
NX> 910 WARNING: added to the private authorized keys file of user
NX> 910 WARNING: but user authentication didn't succeed.
NX> 910 WARNING: Please note that, with these settings, the user won't
NX> 910 WARNING: be able to successfully run any sessions.
NX> 910 WARNING: Run the following command to get some hints on the possible
NX> 910 WARNING: reasons of the problem:
NX> 910 WARNING:
NX> 910 WARNING: nxserver --usercheck bvn13
NX> 910 WARNING:
NX> 301 User: bvn13 enabled in the NX user DB.
NX> 999 Bye.

> sudo /usr/NX/bin/nxserver --usercheck bvn13
NX> 900 Verifying public key authentication for NX user: bvn13.
NX> 900 Adding public key for user: bvn13 to the authorized keys file.
NX> 716 Public key is already present in: /home/bvn13/.ssh/authorized_keys2.
NX> 900 Verifying public key authentication for NX user: bvn13.
NX> 500 ERROR: Public key authentication failed
NX> 500 WARNING: NX server was unable to login as user: bvn13
NX> 500 WARNING: Please check that the account is enabled to login.
NX> 500 WARNING: Also check that user's home directory, the directory
NX> 500 WARNING: ~/.ssh and the file ~/.ssh/authorized_keys2 have
NX> 500 WARNING: correct permissions according to the StrictModes of
NX> 500 WARNING: your SSHD configuration
NX> 999 Bye.

> ll ~/.ssh
итого 32
-rw------- 1 bvn13 users  672 февр. 11 09:40 authorized_keys2
-rw------- 1 bvn13 users 1766 окт.  13 15:36 id_rsa
-rw-r--r-- 1 bvn13 users  397 окт.  13 15:36 id_rsa.pub
-rw------- 1 bvn13 users 1679 янв.  23 15:02 id_rsa_void
-rw-r--r-- 1 bvn13 users  397 янв.  23 15:02 id_rsa_void.pub
-rw-r--r-- 1 bvn13 users 8153 нояб. 19 17:26 known_hosts

сам клиент при коннекте пишет: The NX service is not available or the NX access was disabled on host 192.168.13.11.

А детально:

NX> 203 NXSSH running with pid: 14480
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.13.11 on port: 22
NX> 202 Authenticating user: nx
NX> 208 Using auth method: publickey
NX> 204 Authentication failed.

что он от меня хочет?

★★★★★

Ответ на: комментарий от anonymous

хм. читать вроде я умею. перефразирую. Что мне необходимо сделать, чтобы успешно пройти авторизацию по публичному ключу?

bvn13 ★★★★★
() автор топика

Согласно инструкции я изменил параметр

SSHAuthorizedKeys = "authorized_keys"
и рестартанул nxserver. После этого:
# /usr/NX/bin/nxserver --useradd bvn13 --system
NX> 309 User: bvn13 is already present on the system.
NX> 801 User: bvn13 uses SSHD authentication.
NX> 900 Adding public key for user: bvn13 to the authorized keys file.
NX> 716 Public key added to: /home/bvn13/.ssh/authorized_keys.
NX> 900 Verifying public key authentication for NX user: bvn13.
NX> 900 Public key authentication succeeded.
NX> 313 User: bvn13 is already in the NX user DB.
NX> 999 Bye.

т.е. вроде все ок. да? но все равно клиентом не пускает.

bvn13 ★★★★★
() автор топика
Ответ на: комментарий от bvn13

Забыть временно о NX

[bvn13] $ chmod 700 .ssh
[bvn13] $ chmod 600 .ssh/*
[bvn13] $ ssh bvn13@localhost   --- проверка захода по ключу.
anonymous
()
Ответ на: комментарий от anonymous

в /usr/NX/home/nx/.ssh переименовал authorized_keys2 в authorized_keys и все заработало.

bvn13 ★★★★★
() автор топика
Вы не можете добавлять комментарии в эту тему. Тема перемещена в архив.