ssh public key

Discussion in 'Mac Apps and Mac App Store' started by trainguy77, Nov 10, 2006.

  1. trainguy77 macrumors 68040

    Nov 13, 2003
    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@ 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:
    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: on port: 22
    NX> 202 Authenticating user: nx
    NX> 208 Using auth method: publickey
    NX> 204 Authentication failed.
    Any ideas?
  2. tag macrumors 6502a


    Apr 29, 2005
    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.
  3. trainguy77 thread starter macrumors 68040

    Nov 13, 2003
    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@ then i type the password and I get to the prompt just fine. Well I will still look into the key thing though.

Share This Page