freeNX server 新增用戶無法登入~~~ - Linux

By Agatha
at 2017-12-07T06:43
at 2017-12-07T06:43
Table of Contents
各位PTT 企鵝版的版友大家好~~
我的電腦安裝CentOS 6.9 系統~~
之前已經安裝好了 ssh freeNX 的套件...也啟動這兩種功能~~
有設定一個帳號,可以遠端登入~~
也可以操作~~~~
後來我又想新增一個帳號~~~
有先在centos 系統裡,建立一個新的用戶帳號 layout01
接著我在終端機視窗輸入
/usr/libexec/nx/nxserver --adduser layout01
增加layout01 用戶
再來
/usr/libexec/nx/nxserver --passwd layout01
建立layout01密碼~~
再來
nxsetup --install --setup-nomachine-key
最後
service freenx-server restart
再下一個步驟
在/etc/ssh/sshd_config
最底下的 AllowUsers 增加一個 layout01 用戶
儲存後..
終端機視窗輸入
service sshd restart
後來我來到了,windows的客戶端的NX Client 上~~
一樣是用和以前另一個帳號相同可以登入的key
ip登入位置也一樣~~~~~登入帳號換layout01
但無法登入....
NX 顯式無法登入的Details 如下:
------------------------------------------------------------------------------------------------------
NX> 203 NXSSH running with pid: 3760
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.1.15 on port: 22
NX> 202 Authenticating user: nx
NX> 208 Using auth method: publickey
HELLO NXSERVER - Version 3.2.0-74-SVN OS (GPL, using backend: not detected)
NX> 105 hello NXCLIENT - Version 3.2.0
NX> 134 Accepted protocol: 3.2.0
NX> 105 SET SHELL_MODE SHELL
NX> 105 SET AUTH_MODE PASSWORD
NX> 105 login
NX> 101 User: layout01
NX> 102 Password:
NX> 103 Welcome to: localhost.localdomain user: layout01
NX> 105 listsession --user="layout01" --status="suspended,running"
--geometry="1920x1080x32+render+fullscreen" --type="unix-gnome"
NX> 127 Sessions list of user 'layout01' for reconnect:
Display Type Session ID Options Depth
Screen Status Session Name
------- ---------------- -------------------------------- -------- -----
-------------- ----------- ------------------------------
NX> 148 Server capacity: not reached for user: layout01
NX> 105 startsession --link="lan" --backingstore="1" --encryption="1"
--cache="16M" --images="64M" --shmem="1" --shpix="1" --strict="0"
--composite="1" --media="0" --session="layout" --type="unix-gnome"
--geometry="1914x1013" --fullscreen="1" --client="winnt"
--keyboard="pc102/us" --screeninfo="1920x1080x32+render+fullscreen"
Permission denied (publickey,gssapi-keyex,gssapi-with-mic).
NX> 280 Exiting on signal: 15
---------------------------------------------------------------------------------------------------------------------------------------------------------------------
我google找不到原因,PTT Linux的版友可以幫幫我嗎~~
謝謝~~~~
--
我的電腦安裝CentOS 6.9 系統~~
之前已經安裝好了 ssh freeNX 的套件...也啟動這兩種功能~~
有設定一個帳號,可以遠端登入~~
也可以操作~~~~
後來我又想新增一個帳號~~~
有先在centos 系統裡,建立一個新的用戶帳號 layout01
接著我在終端機視窗輸入
/usr/libexec/nx/nxserver --adduser layout01
增加layout01 用戶
再來
/usr/libexec/nx/nxserver --passwd layout01
建立layout01密碼~~
再來
nxsetup --install --setup-nomachine-key
最後
service freenx-server restart
再下一個步驟
在/etc/ssh/sshd_config
最底下的 AllowUsers 增加一個 layout01 用戶
儲存後..
終端機視窗輸入
service sshd restart
後來我來到了,windows的客戶端的NX Client 上~~
一樣是用和以前另一個帳號相同可以登入的key
ip登入位置也一樣~~~~~登入帳號換layout01
但無法登入....
NX 顯式無法登入的Details 如下:
------------------------------------------------------------------------------------------------------
NX> 203 NXSSH running with pid: 3760
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.1.15 on port: 22
NX> 202 Authenticating user: nx
NX> 208 Using auth method: publickey
HELLO NXSERVER - Version 3.2.0-74-SVN OS (GPL, using backend: not detected)
NX> 105 hello NXCLIENT - Version 3.2.0
NX> 134 Accepted protocol: 3.2.0
NX> 105 SET SHELL_MODE SHELL
NX> 105 SET AUTH_MODE PASSWORD
NX> 105 login
NX> 101 User: layout01
NX> 102 Password:
NX> 103 Welcome to: localhost.localdomain user: layout01
NX> 105 listsession --user="layout01" --status="suspended,running"
--geometry="1920x1080x32+render+fullscreen" --type="unix-gnome"
NX> 127 Sessions list of user 'layout01' for reconnect:
Display Type Session ID Options Depth
Screen Status Session Name
------- ---------------- -------------------------------- -------- -----
-------------- ----------- ------------------------------
NX> 148 Server capacity: not reached for user: layout01
NX> 105 startsession --link="lan" --backingstore="1" --encryption="1"
--cache="16M" --images="64M" --shmem="1" --shpix="1" --strict="0"
--composite="1" --media="0" --session="layout" --type="unix-gnome"
--geometry="1914x1013" --fullscreen="1" --client="winnt"
--keyboard="pc102/us" --screeninfo="1920x1080x32+render+fullscreen"
Permission denied (publickey,gssapi-keyex,gssapi-with-mic).
NX> 280 Exiting on signal: 15
---------------------------------------------------------------------------------------------------------------------------------------------------------------------
我google找不到原因,PTT Linux的版友可以幫幫我嗎~~
謝謝~~~~
--
Tags:
Linux
All Comments

By Donna
at 2017-12-12T06:00
at 2017-12-12T06:00

By Steve
at 2017-12-15T10:45
at 2017-12-15T10:45

By Emily
at 2017-12-20T09:03
at 2017-12-20T09:03

By Christine
at 2017-12-23T04:15
at 2017-12-23T04:15

By Robert
at 2017-12-26T14:41
at 2017-12-26T14:41

By Elma
at 2017-12-29T12:50
at 2017-12-29T12:50

By Iris
at 2018-01-02T00:38
at 2018-01-02T00:38

By Susan
at 2018-01-02T10:04
at 2018-01-02T10:04

By Olga
at 2018-01-06T19:50
at 2018-01-06T19:50
Related Posts
Microcode 可以降級嗎?

By Dinah
at 2017-12-06T12:57
at 2017-12-06T12:57
postfix限制使用者流量

By Rosalind
at 2017-12-05T21:28
at 2017-12-05T21:28
安裝14.04時發生的問題

By Audriana
at 2017-12-05T16:10
at 2017-12-05T16:10
Hadoop架設問題(Ubuntu 14.04)

By Genevieve
at 2017-12-04T05:46
at 2017-12-04T05:46
XDMCP外網無法連線

By Rae
at 2017-12-03T02:27
at 2017-12-03T02:27