Skip to main content
Crusoe Support Help Center home page
Crusoe

How-To: Resolve Root Access Issues

Rishabh Sinha
Rishabh Sinha
Updated

Last Updated: Dec 01, 2025

Introduction

This article addresses issue related to obtaining root access on Crusoe Cloud VMs and logging in directly using root user. During VM provisioning via the Crusoe Cloud UI console, SSH keys are automatically associated with the ubuntu default user, this user is granted sudo privileges to execute root-level commands.

Note: The default user for all ubuntu based images is ubunturoot access is considered to be deprecated, and you will be warned on login.

Prerequisites

  • A VM provisioned with the ubuntu user as the default account
  • SSH keys provided for user authentication

Step-by-Step Instructions

  1. SSH in to the VM using the ubuntu user and the associated SSH key.

    ssh -i <ssh-key> ubuntu@<server-ip>
  2. Use the sudo su command to switch to the root user .

    sudo su
  3. Navigate to the root user’s .ssh directory.

    cd /root/.ssh
  4. If the .ssh directory does not exist, create it:

    mkdir -p /root/.ssh && chmod 700 /root/.ssh
  5. Open the authorized_keys file in a text editor and append the provided SSH key, then save and exit the editor .

    vi authorized_keys
    ssh-rsa SDLNKDFNDSKJNF.....
  6. Set the appropriate permissions for the file:

     chmod 600 authorized_keys
  7. Open a new terminal session and log in directly as the root user using the SSH key.

Note:

  • Ensure that all changes to SSH configuration maintain security best practices.
  • We recommend using the Crusoe CLI for streamlined VM and resource management.
  • Mismanagement of root access or SSH keys can lead to security vulnerabilities. Always back up critical configuration files before making changes.
     

Related to

Was this article helpful?

0 out of 0 found this helpful

Still need help?

Our support team is ready to assist you with any questions.

Have more questions? Submit a request

Recently Viewed

Comments

0 comments

Article is closed for comments.