Skip to end of metadata
Go to start of metadata

Joyent's Smart Machines and Linux Virtual Machines uses SSH keys as the primary method of accessing the servers.

About SSH Keys

In order to access a newly purchased machine from the new Joyent Cloud portal, you need an SSH key. However, you can modify the machine after accessing it with your SSH key to revert to the former method (login name / password) if you prefer. You may also build this credentialing information into custom scripts to be accessed through the Joyent Cloud Public API to make those changes on provisioning.

Where to find your SSH key

The default location of your SSH key on your local machine at ~/.ssh/id_rsa.pub or ~/.ssh/id_dsa.pub.

If you have a different location for you key you will have to specify the location and use that public key

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.

You can learn more about PuTTY in Accessing Your SmartMachine from Windows with PuTTY.

Adding more SSH Keys on SmartMachines

Once you have your initial key uploaded to your Joyent Cloud account, you can add more keys from other computers to your SmartMachine. Any SSH keys added to your Joyent Cloud account will allow access to all of your Joyent Cloud SmartMachines.

To provide access to a single machine, generate the key on the new computer and add it to the following location on the SmartMachine:

Keys associated with your Joyent Cloud account will be used to access any SmartMachine you create. Keys added on a single machine will only allow access to that single machine. The keys in your Joyent Cloud account allow SSH access to the admin and root POSIX user accounts.

Disabling SmartLogin on a SmartMachine

Before disabling the SmartLogin, please make sure you have either added an ssh key manually to your SmartMachines (e.g., adding a public key to .ssh/authorized_keys) or have enabled password access for a given one of your user accounts.

SmartLogin is a plugin to the ssh that allows a live lookup of your SSH key from your Joyent Cloud account via the API. With SmartLogin enabled, whenever you attempt to SSH into a SmartMachine, SmartLogin will check your Joyent Cloud account for a matching public key. If a key is not found, it will then revert to the standard behaviour of looking for the public key in the .ssh/authorized_keys file of specified user.

Although SSH keys are the more secure, you may prefer access your SmartMachines via username and password. You can disable the SmartLogin plugin and the live ssh key lookup on any given SmartMachine by commenting out (with a '#') or removing the following in the /etc/ssh/sshd_config file:

Once that line has been commented out, you will need to restart the ssh service:

SmartLogin should now be disabled.

SmartOS SmartMachines and SmartOS64 SmartMachines do not have users and credentials initially setup as the SmartOSPlus and SmartOS64Plus SmartMachines do. On these machines, make sure you ssh in as the root user before disabling SmartLogin and set the password for the root and admin users:

Changing SSH Key on a Virtual Machine

If you change your SSH key on your local computer you will need to log into your Virtual Machine with your old key first.

Then you need to add your new key and remove your old key from:

At a Glance

Joyent SmartMachines and Virtual Machines use SSH keys to control access.

For more information on SSH keys more generally see the SSH Guide.

Labels:
ssh ssh Delete
sshkeys sshkeys Delete
admin admin Delete
root root Delete
login login Delete
putty putty Delete
Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.