Login into Centos, Ubuntu, Linux VPS - Secure SSH

In this chapter, you will learn

  1. How to Login into Centos/Ubuntu VPS Server using Command prompt and PuTTy

After purchasing a suitable VPS plan, you might be wondering how to log in and initiate administrative processes on your server. Logging into your VPS is one of the initial steps you take in managing your server. In this tutorial, I will demonstrate various methods for logging into your VPS.

In order to login to your VPS, you just need three details.

  1. Server IP address
  2. Username
  3. Password

After purchasing a VPS plan, you will receive three essential details via email. Armed with this information, let's proceed to log in to your CentOS, Ubuntu, or other Linux VPS server.

Login using Command Prompt

This is the most straightforward method to access your VPS. No need to download any apps or server clients for the login process.

Step 1: To open the Command Prompt, press the Windows Key + R to launch the Run dialog box. Type "cmd" and click OK. Alternatively, you can search for "cmd" in the Start menu and open it.
Step 2: Type the following command and press Enter.
ssh username@ipaddress
Example: ssh [email protected]
Step 3: Next, you might be prompted for host key updating, especially if you are logging in for the first time using the Command Prompt. Type "yes" and pressEnter.
>C:\Windows\System32> ssh [email protected]
The authenticity of host '157.xxx.xxx.162' can't be established. FQ72234 key fingerprint is SHA256:zIeNZaAQtKHYUdkardfdrOiksYIZTLX6kJUyhdl6so. This key is not known by any other names Are you sure you want to continue connecting (yes/no/[fingerprint])? yes Warning: Permanently added '157.xxx.xxx.162' (FQ72234) to the list of known hosts. [email protected]'s password: Permission denied, please try again. [email protected]'s password: [root@centos7 ~]#
Step 4: You will be prompted to enter your password. Copy the password from the email and right-click in the command prompt window to paste it. Note that the password will appear invisible, so you won't see any text in the command prompt. Simply press Enter to complete the login process.

Loing using Putty

PuTTY is a renowned SSH/Telnet client utilized for connecting to your Linux VPS server. You can employ PuTTY in the following manner:

Step 1: Download Putty and open it.
Step 2: Fill IP address and port number (default 22).
Login into Server using Putty
Step 3: Click the "Open" button to initiate the connection. If you are logging in using PuTTY for the first time, you will be prompted to cache the host key. Click the "Accept" button to proceed.
Add host key into Putty
Step 4: Enter your username and press Enter. Subsequently, you will be prompted to enter your password. Type the password and press Enter to log in to your VPS.

Conclusion

Logging into your Linux VPS is not a challenging task if you have the necessary login details. You can use either the command prompt or PuTTY to do so.