LogoLogo
Foundry Documentation
Foundry Documentation
  • Welcome to Foundry
  • Quickstart guide
  • Compute & Storage
    • Compute overview
    • Instance types & specifications
    • Reserving compute
    • Spot bids
      • Spot auction mechanics
    • Startup scripts
    • Access & manage instances
      • Statuses
    • Compute quotas
    • Managing open ports
    • Persistent storage
      • File shares
      • Block storage
    • Ephemeral storage
  • Foundry API
    • API overview and quickstart
    • API reference
      • Projects
      • Instance types
      • SSH Keys
      • Volumes
      • Instances
      • Spot
        • Bids
        • Availability
      • API Keys
      • Profile
    • Specification
  • Access Management
    • Access Management Overview
    • SSH keys
  • Account and Billing
    • Billing overview
    • Foundry Referral Program
  • Security & trust
    • Foundry's approach to security
    • Reporting security concerns
Powered by GitBook
LogoLogo

© 2025 Foundry Technologies, Inc.

On this page
  1. Compute & Storage

Access & manage instances

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

PreviousStartup scriptsNextStatuses

Last updated 6 months ago

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.