Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

trainguy77

macrumors 68040
Original poster
Nov 13, 2003
3,567
1
I just got my mac pro so i am trying to setup a NX client. However i error in authentication due to the pubic key. It worked on my old system. But the difference is that on that system when i went into terminal and went ssh roor@192.168.1.6 for the first time it offered to download the key. This time it did not. How do I go about getting the key? I still have access to the old system.

EDIT: well i found out where to delete any keys so it asked to add that host no change here is the error log when connecting to it via the NX client:
Code:
NX> 203 NXSSH running with pid: 1452
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.6 on port: 22
NX> 202 Authenticating user: nx
NX> 208 Using auth method: publickey
NX> 204 Authentication failed.

Any ideas?
 
Ok, because of the way this protocol is set up, you wouldn't be able to download the needed private key by just connecting to the server for the first time.

There should be a public key stored on your server, and the private key stored on your client, in this case your Mac Pro. From your old system you will need to copy over its matching private key to your new laptop.

This will be located in ~/.ssh

Most likely the private key will be either 'id_dsa' or 'id_rsa' (unless you specifically named it something else).

Copy over the private keys to your new system, check permissions and hopefully all should be a go.
 
Yeah its on a new mac pro not a laptop. Anyway, I don't remember ever needing to copy keys around. Also just typing ssh root@192.168.1.6 then i type the password and I get to the prompt just fine. Well I will still look into the key thing though.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.