Docs
DataCrunch HomeSDKAPILogin / Signup
  • Welcome to DataCrunch
    • Overview
    • Locations and Sustainability
    • Support
  • GPU Instances
    • Set up a GPU instance
    • Securing Your Instance
    • Shutdown, Hibernate, and Delete
    • Adding a New User
    • Block Volumes
    • Shared Filesystems (SFS)
    • Managing SSH Keys
    • Connecting to Your DataCrunch.io Server
    • Connecting to Jupyter notebook with VS Code
    • Team Projects
    • Pricing and Billing
  • Clusters
    • Instant Clusters
      • Deploying a GPU cluster
      • Slurm
      • Spack
      • Good to know
    • Customized GPU clusters
  • Containers
    • Overview
    • Container Registries
    • Scaling and health-checks
    • Batching and Streaming
    • Async Inference
    • Tutorials
      • Quick: Deploy with vLLM
      • In-Depth: Deploy with TGI
      • In-Depth: Deploy with SGLang
      • In-Depth: Deploy with vLLM
      • In-Depth: Deploy with Replicate Cog
      • In-Depth: Asynchronous Inference Requests with Whisper
  • Inference
    • Overview
    • Authorization
    • Audio Models
      • Whisper X
  • Pricing and Billing
  • Resources
    • Resources Overview
    • DataCrunch API
  • Python SDK
  • Get Free Compute Credits
Powered by GitBook
On this page

Was this helpful?

  1. GPU Instances

Adding a New User

Last updated 1 year ago

Was this helpful?

It is not recommended only to have a root user on your server, thus we will set up a new user account.

The process is fairly straightforward:

adduser username

Provide a secure password, and your new user account is created.

We will want occasional higher privileges:

usermod -aG sudo username

And you are done! Read the for increased security.

SSH login with a new username

Next, we will allow the newly created. Go to the new User's folder and create .ssh folder and authorized_keys file, and change its file permissions:

cd /home/<username>
mkdir .ssh
chmod 700 .ssh
touch .ssh/authorized_keys
chmod 600 .ssh/authorized_keys
chown -R <username>:<username> .ssh

To authenticate the new user, you will need to copy the corresponding to the user:

echo "<PUBLIC_KEY_LINE" >> .ssh/authorized_keys

You can now login from your workstation:

ssh <username>@<server_ip>

Alternatively, you can copy the entire authorized_keys file from the root user:

cp /root/.ssh/authorized_keys /home/<username>/.ssh/

Make sure to give an ownership of .ssh folder to <username>:

chown -R <username>:<username> .ssh
Securing Your Instance guide
public key