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
  • Creating an SSH Key
  • Linux
  • Windows
  • Add/remove SSH key to existing instance

Was this helpful?

  1. GPU Instances

Managing SSH Keys

Last updated 6 months ago

Was this helpful?

Creating an SSH Key

Linux

Run the following in your terminal:

ssh-keygen -t ed25519

By default, the key will be stored in $HOME/.ssh/id_ed25519, you can change the location if needed. You will be prompted for a passphrase next.

In general, it is a good idea to set a passphrase for your private key.

If you used the default key name it is now saved in $HOME/.ssh/id_ed25519.pub

To view your public key, type:

 cat .ssh/id_ed25519.pub

You can now add your public key to your project to be available when creating new instances.

Go to Keys -> SSH Keys -> Create and paste your key into the window that looks like this:

Next, you can add your key, deploy your server and your key will automatically be allowed on your instance!

Windows

When setting up an instance on DataCrunch, you need to provide an SSH key to provide secure access to your server.

Here, you will learn how to create such a key using PuttyGen.

When installing Putty, you can choose to install PuttyGen as well, so let's fire it up:

We choose Ed25519 as the type of key, and click 'Generate'. Move your cursor over the grey area, and your key will appear.

Don't forget to add a passphrase to your keys!

Copy the output in the Public key field on top and save your private key somewhere safe. You can use PuttyGen to re-generate your public key from your private key but not vice versa; hence, we only need to save the private key.

When creating your server, you can paste the output in the Key input field.

Next, you can add your key, deploy your server and your key will automatically be allowed on your instance!


Add/remove SSH key to existing instance

Log into the instance.

Edit the file /root/.ssh/authorized_keys and add the new key in a new line, or remove an existing key.