Connect to Your Linux Cloud Server
Now that you’ve spun up your first SpinUp Cloud Server, you might be wondering how to connect to it. This article explains, in the simplest terms possible, how to connect to your Linux® Cloud Server. And don’t worry about whether you’re using Microsoft® Windows®, MacOS® X, or Linux at home, we’ll talk about the methods to use for each of those operating systems (OS).
Overview and terminology
Before we begin, lets talk about the basics. When connecting to your Cloud Server, no matter the OS, you need the following basic components: a username, an IP address, and a password. If this is your first time connecting to a Cloud Server, your user is likely
root, for Linux, or
Administrator, for Windows. We’ll reference user, IP address, and password throughout the article, so keep this information handy.
Connect to a Linux Cloud Server
Lets talk about connecting to a Linux Cloud Server. The primary way of connecting to a Linux Cloud Server is via SecureShell (SSH). SSH provides an encrypted connection between your home computer or workstation and your Cloud Server.
Connecting to a Linux Cloud Server from a Windows workstation requires the use of a 3rd party software. While there are many tools to choose from, let’s focus on the popular program, PuTTY. Download PuTTY here. After the download is complete, follow the on-screen prompts to complete the install process.
After the program opens, enter your Cloud Server’s IP address in the Host Name (or IP address) field. Don’t change the Port section unless you’ve configured an alternate port on your Cloud Server or been instructed to do so by your admin.
Click Open at the bottom right corner.
Enter your user in the new window that prompts you for a username. This is usually
root, if it is your first time connecting.
Next, the prompt asks for a password. Go ahead and enter the password for your Cloud Server.
This password is unique to your Cloud Server and is not the password that you use to log in to your SpinUp Control Panel.
You are now logged in to your Linux Cloud Server from a Windows workstation.
Connecting to a Linux Cloud Server from a Linux or OS X workstation requires the use of a terminal emulating program such as Console or Terminal and an SSH client. After you’ve opened up your terminal, issue one of the following commands on your local machine:
sudo apt-get install openssh-client ##if you are using a debian-based distro (Ubuntu) (out)Reading package lists... Done (out)Building dependency tree (out)Reading state information... Done (out)openssh-client is already the newest version (1:7.6p1-4ubuntu0.3). (out)0 upgraded, 0 newly installed, 0 to remove and 172 not upgraded. sudo yum install openssh ##if you are using rhel-based distro (Fedora, CentOS) (out)Last metadata expiration check: 0:52:58 ago on Thu 25 Jul 2019 04:05:32 PM CDT. (out) Package openssh-7.8p1-4.fc28.x86_64 is already installed, skipping. (out)Dependencies resolved. (out)Nothing to do.
If you receive output that deviates from this, go ahead and follow the prompts to install the SSH client. Otherwise, you’re all set.
Use the following commands to connect to your Linux Cloud Server:
Open a terminal.
Grab your username and IP address and issue the following command, substituting your IP address for 127.0.0.1:
Note: The first time you connect to a Cloud Server, a warning similar to the following example displays:
(out)The authenticity of host '169.254.0.1 (169.254.0.1)' can't be established. (out)ECDSA key fingerprint is b6:05:ca:94:53:c2:5d:c8:c0:fb:d4:ad:12:b5:4b:b6. (out)Are you sure you want to continue connecting (yes/no)? (out) (out) If you know you are connecting to the correct IP address, enter `yes` to save the Cloud Server's fingerprint to the *known host* file on your system. The system displays the following message: (out) (out)Warning: Permanently added '184.108.40.206' (ECDSA) to the list of known hosts.
The next time that your client connects to this Cloud Server, the known host file enables the system to verify your client is not an impostor.
- At the login prompt, enter your Cloud Server’s password.
This password is unique to your Cloud Server and not the password that you use to log in to your SpinUp Control Panel.
- If you used the correct password, you should now be logged into your Linux Cloud Server. Whoo!
Take some time to review some Best Practices for Securing your Cloud Server.