Step by step guide to Rent, Setup and Connect to GPU servers.
In Windows Start Menu, Find Windows PowerShell, Right click on it and click on Run as Administrator.
ssh-keygen -t rsa -b 4096
- You'll see:
Generating public/private rsa key pair.
Enter file in which to save the key (C:\Users\YourUsername\.ssh\id_rsa):
- Press
Enter
to accept the default location.
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
- Press
Enter
to bypass setting password.
cd $env:USERPROFILE\.ssh
Get-Content id_rsa.pub | Set-Clipboard
- Your public key is now copied into your
clipboard
Vast.ai: (Recommended for better performance)
- 1- Register in Vast.ai
- 2- Create an SSH key session by going to
three-lines > Keys > SSH Keys
here - 3- Paste Public SSH key created in your local pc in previous steps.
- Register In Hyperbolic Dashboard
- then, Visit Settings
- Create a new Public SSH key and paste your pubkey into it and save it!
- I use Vast.ai & Hyperbolic since they have crypto payments
- Vast: More GPU avalilability, Supporting VM template (non-dockerized), Cheap GPUs
- Hyperbolic: Less GPU availability, No VM template, Cheap GPUs
- 1- Select Pytorch(Vast) template here
- 2- Choose a supported GPU (I recommend =24GB GPU vRAM, but Gensyn now supporting even 8GB GPU vRAM)
- 3- Increase
Disk Space
slidebar to50GB
- 4- Top-up credits with crypto and rent it.
- 5- Go to instances, refresh the page, click on
key
button. - 6- If you don't see a ssh command in
Direct ssh connect:
section, then you have to press on Add SSH Key. - 7- Copy SSH Command, and Replace
-L 3000:localhost:3000
in front of the command.
- 1- Choose a GPU (.eg RTX 4090) here by going to
Home > GPU List
and click onRent
- 2- Make sure you select
1
asGPU Count
. - 3- Select
pytorch
asTemplate
. - 4- Rent it.
- 5- By clicking on your gpu instance, if gives you a SSH command to connect to your GPU terminal.
- 5- Add this flag:
-L 3000:localhost:3000
in front of your Hyperbolic's SSH command, this will allow you to access to port 3000 on your local system.
- You must get a command like this. For example, it's hyperbolic's SSH Command:
ssh [email protected] -p 312452
- You can add this flag:
-L 3000:localhost:3000
in front of you command to get access to apps running on port 3000 from your local pc. - Paste and Enter the command you copied in
Windows PowerShell
to access your server. - Enter the password you set for SSH public key (if you set before) and press enter to open your GPU terminal
- Optionaly, you can add this flag:
-i $env:USERPROFILE\.ssh\id_rsa
in front of your command, to specify the ssh privatekey file.