Working to set up the GnuPG keymanager for SSH and now FreeNX server on CentOS 6 and NoMachine NXclient on my new install of ArchLinux I've been reading more about keys than I've ever read before. I'm at the level of "A Postal Analogy" from Wikipedia. So, it makes perfect sense a private key is kept on the originating system and the public key is the one shared. And this message is repeated again and again:
"The thing is that your private key must never be compromised."
However, instructions to set up NX From CentOS's FreeNX setup page (scroll down): "You will need to ssh into the server [...] Copy all the text (including the BEGIN DSA PRIVATE KEY and END DSA PRIVATE KEY lines."
From NoMachine's setup page: "Distribute the private key from the newly generated couple of keys located in the file [...] to all clients that have to be granted acccess to the specific NX server host."
The client can certainly generate its own private key.
EDIT: And... After trying to take the below comments into consideration, I reconfigured the user for nx. What's going on with the failed authentication asking for (what I expect) the public key?
NX> 203 NXSSH running with pid: 4523
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.2.8 on port: 22
NX> 202 Authenticating user: nx
**NX> 208 Using auth method: publickey**
NX> 204 Authentication failed.