|
Joyent's Node.js™ Smart Machine service uses SSH keys as the primary method of accessing the service. |
At a Glance
Node.js SmartMachines use SSH keys to control access. For more information on SSH keys more generally see the SSH Guide. |
Where to find your SSH key
You can find your SSH key on your local machine at ~/.ssh/id_rsa.pub or ~/.ssh/id_dsa.pub. If neither of those files exist, create them with this command:
To view your public key from the command line, use this command:
| If you are on Windows and using PuTTY and puttygen.exe to generate your keys, be sure that you use the key listed in the box labeled Public key for pasting into OpenSSH authorized_keys file.
If you continue to experience problems with PuTTY, try CygWin http://cygwin.org |
Adding more SSH Keys on a Node.js Smart Machines
Once you have your initial key uploaded you can add more keys from other computers to your Node.js SmartMachine. To do this generate the key on the new computer and add it to the following location on your Node.js SmartMachine:
Be careful not to overwrite the existing file. If you delete existing keys those remote computers will not be able to log into your Node.js SmartMachine.
Changing your SSH Key on a Node.js Smart Machines
If you change your SSH key on your local computer you will need to log into your Node.js SmartMachine with your old key first.
Then you need to add your new key and remove your old key from:
Invalid SSH Key on a Node.js Smart Machines
If you try to log into your Node.js SmartMachine and you are prompted for a password your need to update your key by opening a support ticket.
To do this send an email to support@joyent.com letting us know that you can not log into your Node.js SmartMachine. Please make sure you provide us the following:
- your account name
- the name of your Node.js Smart Machine
- update your no.de account with the proper SSH keys https://api.no.de/#PUT-/sshkeys/:id
If you are still unable to log in as the user node to your Node.js SmartMachine please send the following to support@joyent.com:
- The output of this command:

Make sure you replace <YOUR_SMARTMACHINE> with the subdomain name of your Node.js SmartMachine Also, you need to log into your Node.js SmartMachine as the user 'node'
- Your public SSH key
10 Comments
comments.show.hideMar 04, 2011
Anonymous
The page at https://no.de/sshkeys does not accept RSA 1 or RSA 2 keys generated with puttygen.exe on Windows. Is there a way to use keys originating from a Windows machine?
Mar 06, 2011
Anonymous
At the very top of the puttygen.exe dialog, there is a "Public key for pasting into OpenSSH" box. Copy and paste this key into https://no.de/sshkeys, and it will be accepted.
Mar 07, 2011
Philip Borenstein
Added to [Node SmartMachine Troubleshooting Guide]. Thanks.
Mar 12, 2011
Anonymous
I copied the content of "Public key for pasting into OpenSSH" box into https://no.de/sshkeys, no.de accept my key already. But I got an error when connect to putty after display an prompt "Login as:", I tried to type my username, node, and my register name, but all failed to login, I got "Server refused our key" error. That's strange, I also use ssh-keygen to generate an key for me in an debain VM, they both failed.
Mar 12, 2011
Anonymous
I copied the content of "Public key for pasting into OpenSSH" box into https://no.de/sshkeys, no.de accept my key already. But I got an error when connect to putty after display an prompt "Login as:", I tried to type my username, node, and my register name, but all failed to login, I got "Server refused our key" error. That's strange, I also use ssh-keygen to generate an key for me in an debain VM, they both failed.
Mar 13, 2011
Philip Borenstein
Can you log in to your no.de machine from your Debian VM?
The username to use when logging into your no.de machine is "node". If the name of your Node Smart Machine is "example", you would log into it like this:
ssh node@example.no.de
Mar 10, 2011
Anonymous
I've successfully added my ssh key into https://no.de/sshkeys but I can't get putty to connect to my Node Smart Machine.
I keep getting the "Server refused our key" error message.
Any idea how to configure Putty in order to make it work?
Here is the Putty's Event Log:
2011-03-10 14:38:47 Looking up host "64.30.140.66"
2011-03-10 14:38:47 Connecting to 64.30.140.66 port 22
2011-03-10 14:38:47 Server version: SSH-2.0-Sun_SSH_1.5
2011-03-10 14:38:47 We claim version: SSH-2.0-PuTTY_Release_0.60
2011-03-10 14:38:47 Using SSH protocol version 2
2011-03-10 14:38:47 Doing Diffie-Hellman group exchange
2011-03-10 14:38:47 Doing Diffie-Hellman key exchange with hash SHA-1
2011-03-10 14:38:50 Host key fingerprint is:
2011-03-10 14:38:50 ssh-rsa 2048 4f:92:a2:b7:a4:b1:b7:6d:c0:29:27:17:9d:41:51:da
2011-03-10 14:38:50 Initialised AES-256 SDCTR client->server encryption
2011-03-10 14:38:50 Initialised HMAC-SHA1 client->server MAC algorithm
2011-03-10 14:38:50 Initialised AES-256 SDCTR server->client encryption
2011-03-10 14:38:50 Initialised HMAC-SHA1 server->client MAC algorithm
2011-03-10 14:38:50 Reading private key file "C:\joyent.ppk"
2011-03-10 14:38:50 Offered public key
2011-03-10 14:38:50 Server refused public key
2011-03-10 14:38:50 Disconnected: No supported authentication methods available
2011-03-10 14:38:47Looking up host "64.30.140.66"
2011-03-10 14:38:47Connecting to 64.30.140.66 port 22
2011-03-10 14:38:47Server version: SSH-2.0-Sun_SSH_1.5
2011-03-10 14:38:47We claim version: SSH-2.0-PuTTY_Release_0.60
2011-03-10 14:38:47Using SSH protocol version 2
2011-03-10 14:38:47Doing Diffie-Hellman group exchange
2011-03-10 14:38:47Doing Diffie-Hellman key exchange with hash SHA-1
2011-03-10 14:38:50Host key fingerprint is:
2011-03-10 14:38:50ssh-rsa 2048 4f:92:a2:b7:a4:b1:b7:6d:c0:29:27:17:9d:41:51:da
2011-03-10 14:38:50Initialised AES-256 SDCTR client->server encryption
2011-03-10 14:38:50Initialised HMAC-SHA1 client->server MAC algorithm
2011-03-10 14:38:50Initialised AES-256 SDCTR server->client encryption
2011-03-10 14:38:50Initialised HMAC-SHA1 server->client MAC algorithm
2011-03-10 14:38:50Reading private key file "C:\joyent.ppk"
2011-03-10 14:38:50Offered public key
2011-03-10 14:38:50Server refused public key
2011-03-10 14:38:50Disconnected: No supported authentication methods available
Mar 10, 2011
Philip Borenstein
I think this may help.
Mar 21, 2011
Anonymous
What goes in the 'name' field when adding my 1st SSH Key?
Mar 22, 2011
Philip Borenstein
This field is to help you distinguish between different keys if you have more than one or two. It could be your name, "Joe's Key" or anything else that means something to you.