As you get familiar with our platform, you might find that you would like to use SSH and customize your server or use our GPCLI (GridPane Command Line Interface) to make adjustments to your server. We've locked down all SSH access to require a SSH key and only the root user can use SSH.
WARNING: With root access you can do anything, including delete everything. Handle with care.
This article will help you generate and push a key. All you will need is a Windows PC and the following software:
Most users are running a 64bit Windows OS, but both should run on your PC.
If you would rather watch a guide, here is the video, otherwise continue to written guide below:
Step 1: Launch PuttyGen
Once you download PuttyGen, launch it and click Generate:
It will ask you to move your mouse around to generate the key.
Step 2: Save the generated key
You'll need to save three files once your key has been generated, it will also prompt about passphrase. If you choose to do a passphrase, the server will prompt for that passphrase. If you don't do a passphrase it'll log you right in with no prompt. First, you want to click conversions and do export OpenSSH key, this is a private key. The OpenSSH key can be used on Linux workstations. More than likely you won't need it, but it's worth exporting it now. Save it to a folder of your choice and call it privateopenssh.key or a name of your choice. The private key is sensitive, never share it with anyone and guard it on your machine.
Next, click save public key button and save it to a folder of your choice, and name it accordingly. The public key is what you'll upload to GridPane, and doesn't need to be guarded.
Last, click save private key button, and save that to a folder of your choice. The private key is sensitive, never share it with anyone and guard it on your machine. This one will save as a .ppk file which is used in Putty.
Step 3: Open public.key, copy and add to GridPane
Go to the folder where you saved the public key, open with notepad, and copy it.
Next, click on your name in the top right, go to your settings in the dropdown, click on SSH Keys on the left menu bar, and then enter your keys details. The name of the key can be anything you would like. Paste the public key in the Public Key section, and then click add key.
Step 4: Push the key to the server
Click on Home in the GridPane UI, click on the "key" symbol beside your server, click on available keys, check your key, and then hit Add Keys to Server.
Step 5: Configure putty and connect to server
Open Putty, and go to Auth settings. Click browse and find the private .ppk you saved.
Next click Default Settings, and click save, this will make the key you have selected stay in Putty. After you save, add the server IP, and press connect. It'll prompt you for login name, type in root and hit enter.
If everything was done correctly, you should see the login prompt.
And that's all there is to it! From there, you can use our GPCLI, customize files, whatever you would like to do.