6.9 KiB
Create Coop-Cloud Capsul and Login Using SSH
Capsul is software by Cyberia Club for "small virtual machine (vm) as a service."
-
Open https://yolo.servers.coop in your browser. Click on Login in the upper right corner.
-
Fill in your email address in the box. You will need to use this email address multiple times, so do not use a throw-away email address. Click the Log In button.
-
Open your email client and look for a new email with subject Click This Link to Login to Capsul and open the email. The email message contains an authorization link to your new account on yolo.servers.coop. Click the link, or copy and paste it into your browser's address bar.
-
Back in your browser on the yolo servers website, click the SSH & API Keys link. There will be no front-end to your capsul. All access to it will be remote, for example, with ssh. You need to create SSH keys before you can create your capsul.
-
Create SSH Key on your local Windows computer. This document explains how to do so using Window's built-in OpenSSH feature. If you prefer PuTTY, you can skip these steps and use that instead.
- Open an Administrator PowerShell window.
- Use the get-WindowsCapability command to find out if Windows already has the OpenSSH client installed. If you see "State : Installed" in the response, you don't need to add it. If it is not installed, use the Add-WindowsCapability command to add it.
- Use the Windows command line:
- Open a cmd.exe window.
- cd to your home directory. In this example, the home directory is c:\users\userid.
- Use dir to discover if you already have a .ssh subdirectory in your home directory.
- If necessary, use mkdir .ssh to create the subdirectory.
- Run ssh-keygen.exe to generate an SSH key pair. Press enter key to accept the default filename. Press enter key twice to skip adding a passphrase. Your key pair identification is then saved in the .ssh subdirectory. You will see a key fingerprint ending in your Windows username @ your Windows hostname. You'll also see the key's randomart image.
- Launch Notepad.exe and open file c:\users\userid\.ssh\id_rsa.pub. Select all of the file's contents and copy to the clipboard.
-
Return to the SSH PUBLIC KEYS page in your browser, find the box labeled File Contents and paste your public key from the clipboard into the box. Then, click the Upload button.
-
Your uploaded public key will appear near the top of the page.
-
Add funds to your account.
- Click the Account Balance link. The method used for payment is called Stripe.
- Click on the Add funds with the Credit/Debit (stripe) link. Fill in an amount in the box. For example, $20.
- Click on Pay with Stripe.
- Your browser will open the Stripe page. Fill in your email address and your card information. You have the option to save the information so you can pay faster next time.
- Click the Pay $20.00 button when done. Wait for it to verify your payment.
- Return to the Account Balance section and verify your ACCOUNT BALANCE
-
Click the Capsuls link, and the click the Create one! link. This will open the CREATE CAPSUL page.
- You will see your account balance
- Pick a Capsul Size from the drop-down box. This screenshot shows size f1-xs selected.
- Leave Debian 10 (Buster) as the operating system; it's the only one availabe for Capsuls at this time.
- Put a check mark in the box next to the name of your public SSH key. In this screenshot, it's named user-name@host-name.
- Click on the Create button.
- Wait for your Capsul to be created and initialized.
-
Check out your new Capsul!
-
Remotely login to your new Capsul using ssh.
- Open a cmd.exe window
- Run ssh command. The name of the Linux user on the Capsul is user. You'll use the IPv4 address from the previous step. In this guide, the Capsul's address is 148.251.164.88.
- When you run the ssh command, you'll see a line saying the authenticity of the host can't be established. It will show you the key fingerprint.
- Use the mouse to copy the fingerprint string to the clipboard
- Open the Capsul fingerprints text file you saved in the previous step.
- Search for the key fingerprint by pasting it from the clipboard into the text editor's search query box. You should see that the fingerprint from the ssh command matches the fingerprint you saved when you created your Capsul.
- If it matches, enter "yes" in the command line window prompt "Are you sure you want to continue connecting".
- You are now logged into your remote Capsule.
- The default login shell for user is dash. If you prefer the bash shell, you can change it with the chsh command, as shown:
Congratulations! You have created your remote Capsul and logged into it from your local Windows computer.