This article is part of the Admin Setup (Step-by-Step) guide.
SSH is a means to securely access remote servers, such as the one you'll be setting up on DigitalOcean to host your wallets and admin.
Like bitcoin wallets, SSH uses public and private keys.
Your public SSH key is what you'll provide DigitalOcean in order to authorise access to your server. Your private SSH key remains on your computer and is required to log into your server.
Click on your computer's OS below and follow the directions on creating an SSH keypair.
Creating an SSH keypair
Open your computer's Terminal. On macOS, this can be found by typing 'terminal' in Spotlight, or under 'Applications > Utilities > Terminal'.
Type the following command and hit Enter:
ssh-keygen
You'll then be prompted for where to save the new key. If you've never created an SSH key before on this computer, hit Enter without typing anything to save it to the default location.
Generating public/private rsa key pair.
Enter file in which to save the key (/home/username/.ssh/id_rsa):
⚠️ Note: If you already created an SSH key on this computer and you save a new one to the default location, you'll receive a warning first, as you'd be overwriting your existing key. Overwriting an existing key will cause you to lose access to any servers you used the key with, if you haven't backed up that key elsewhere.
After hitting enter, you’ll be prompted for an optional passphrase which encrypts the private SSH key. (This is like adding a password to protect your bitcoin wallet keys. In this case, it protects the keys to access your server droplet, where your machine's wallets are stored.)
We strongly recommend setting a passphrase. Write it down in a secure spot, as losing this passphrase will at least temporarily lock you out of your server droplet.
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
⚠️Note: Nothing will appear in the terminal as you enter your passphrase. This is intentional. You're still typing though.
You now have a public and private key that you'll use to authenticate with the server droplet you'll create. The screen output will look like this:
Obtaining your public SSH key
After generating an SSH keypair, run the following command in your terminal to display your public key:
cat ~/.ssh/id_rsa.pub
Copy the output to a text file, as we'll use it when creating a DigitalOcean droplet in the next steps.
Creating an SSH keypair
Open Windows PowerShell. On Windows 10, this can be found by typing 'powershell' the Start menu's search bar.
In PowerShell, type the following command and hit Enter:
ssh-keygen
You'll then be prompted for where to save the new key. If you've never created an SSH key before on this computer, hit Enter without typing anything to save it to the default location.
Generating public/private rsa key pair.
Enter file in which to save the key (C:\Users\username/.ssh/id_rsa):
⚠️ Note: If you already created an SSH key on this computer and you save a new one to the default location, you'll receive a warning first, as you'd be overwriting your existing key. Overwriting an existing key will cause you to lose access to any servers you used the key with, if you haven't backed up that key elsewhere.
After hitting enter, you’ll be prompted for an optional passphrase which encrypts the private SSH key. (This is like adding a password to protect your bitcoin wallet keys. In this case, it protects the keys to access your server droplet, where your machine's wallets are stored.)
We strongly recommend setting a passphrase. Write it down in a secure spot, as losing this passphrase will at least temporarily lock you out of your server droplet.
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
⚠️Note: Nothing will appear in the PowerShell terminal as you enter your passphrase. This is intentional. You're still typing though.
You now have a public and private key that you'll use to authenticate with the server droplet you'll create. The screen output will look like this:
Obtaining your public SSH key
After generating an SSH keypair, run the following command in your terminal to display your public key:
cat ~/.ssh/id_rsa.pub
Copy the output to a text file by highlighting the portion shown in the video, and right-clicking (which copies in PowerShell). We'll use the public key when creating a DigitalOcean droplet in the next steps.
Comments
0 comments
Article is closed for comments.