Ubuntu10.04とWindowsXPでNX Free Edition、マイメモその2

 ん、sshのポート変更しているので、起動していないっぽい。
freenxとnomachineのnxの違いはあるけど、以下を参考に設定。

http://michigantelephone.wordpress.com/2007/10/15/how-to-install-nx-server-and-client-under-ubuntukubuntu-linux/


 まず、nxで接続の際に使用する公開鍵を指定。

sudo emacs /usr/NX/home/nx/.ssh/sshd_config

で、編集。以下を記載。

AuthorizedKeysFile /usr/NX/home/nx/.ssh/authorized_keys2

で、sshを再起動して

sudo /etc/init.d/ssh restart

確認すると、

$sudo /usr/NX/bin/nxserver --status
NX> 900 ssh: connect to host 127.0.0.1 port 22: Connection refused
NX> 110 NX Server is stopped.
NX> 999 Bye.

ん、はいまだ駄目ですね。

SSH port

 いま使用しているsshポートの確認。

sudo emacs /etc/ssh/sshd_config

 'Port'で検索して、調べます。
仮に、'Port 3939'だとして、

sudo emacs /usr/NX/etc/node.cfg

を開いて、'3939'に編集します。

#
# Specify the TCP port where the NX node SSHD daemon is running.
#
#SSHDPort = "22"

で、再確認してみると。

$ sudo /usr/NX/bin/nxserver --status
NX> 900 Connecting to server ...
NX> 110 NX Server is running.
NX> 999 Bye.
OKです^^

で、windowsのnxclientから接続すると繋がらないw;


 以下のportも変更してみたけど、駄目だった。

sudo emacs /usr/NX/etc/server.cfg


ん、デフォルトの22でやり直したほうがいいのかw