freeNX サーバー + fedora 10 x86_64

niwaii2009-05-24

 承前、デスクトップのfedora 10 x86_64 に、ubuntu 9.04 の/etc/sshd_config を上書きコピーした所、ノートPCのwinxpからリモート接続できた。まともなssh認証になっていないので半分成功だ。freeNXは、サーバーもクライアントもNoMachine社のサイトにあるフリー版を使用している。
.
「追記」
 認証鍵の生成とコピーについては、"nxserver --keygen"でググったところ直ぐに見付かった。引用した手順の3〜6で成功した。
openSUSE 11.1 Installation and Setup」
http://www.benmccann.com/dev-blog/opensuse-111-installation-and-setup/

Setup remote desktop through NX
(中略)
1. Download the NX Linux packages
2. Run “rpm -iv nxclient-3.3.0-3.i386.rpm”, “rpm -iv nxnode-3.3.0-3.i386.rpm”, and “rpm -iv nxserver-3.3.0-3.i386.rpm
3. Run “/usr/NX/scripts/setup/nxserver –install”
4. Run “/usr/NX/bin/nxserver –keygen”
5. In your NX client, open “Configure…” > “General” tab > “Key …”
6. Copy the contents of “/usr/NX/share/keys/default.id_dsa.key” into the key window and save it
7. Open “/usr/NX/etc/server.cfg”
8. Change line 563 from ‘EnableSessionShadowingAuthorization = “1″‘ to ‘EnableSessionShadowingAuthorization = “0″‘ which will enable you to select “Shadow” in the client under the “General” tab’s “Desktop” framebox if you’d like to do desktop sharing
9. YaST > “Security and Users” > “Firewall” > “Allowed Services”
10. Allow “Secure Shell Server”

 "nxserver --keygen"を実行後、クライアントからデフォルトの鍵のままで接続を試行すると認証に失敗することも確認した。

NX> 204 Authentication failed.

 その後、ssh_configの記述の原因(私的な無知)を特定した。
"PasswordAuthentication no"の時、 NXで接続不可(Authentication failed for user xxxxxxx)となり、
"PasswordAuthentication yes" と記述なしの時、NXで接続可だった。