Access & manage instances

See the status of your instances, reservations, and spot bids

You can see the status of all your reservations, spot bids, and individual instances on the Instances page.

Accessing instances

All of your instances are accessible using the instance IP address and your selected SSH key:

1

Prepare your key

Before connecting, make sure you have the correct permissions on your private key file. You can do this with the following command:

chmod 600 /path/to/your/private/key

Replace /path/to/your/private/key with the path to your actual private key file.

2

Connect to the instance

Use the following command to connect to your instance:

ssh -i /path/to/your/private/key ubuntu@<ip>

Again, replace /path/to/your/private/key with the path to your actual private key file.

3

(Optional) Add additional users and keys

Once you are connected, you can add additional users and keys. Here's an example of how you can do this:

# Create a new user

sudo adduser new_user

# Switch to the new user

sudo su - new_user

# Create .ssh directory for the new user

mkdir ~/.ssh

# Change the directory permissions

chmod 700 ~/.ssh

# Create authorized_keys file

touch ~/.ssh/authorized_keys

# Add the public key to the authorized_keys file

echo "new_user_public_key" >> ~/.ssh/authorized_keys

# Change the file permissions

chmod 600 ~/.ssh/authorized_keys

Replace new_user with the username of the new user, and new_user_public_key with the new user's public SSH key.

Last updated