How to connect to remote VPS on Linux?
In this article we will explain how to connect to your server / VPS (virtual private server) remotely using your computer or laptop using secure shell (ssh).
1. Login to your client area link
2. Navigate to you VPS control panel to get VPS IP and root password (do not forget to press on "show" to see the root password" as shown on the below mentioned photo.
3. Open your terminal then insert the below mentioned command
ssh -p 22 root@<server-IP>
Note that:
- p: The default port number for SSH is 22, however, it is highly recommended to modify it for improved security measures.
- root: is your VPS root username and it is recommended to create new user and disable ssh for root user for security reasons
- IP: is your VPS static IP. you will get it from your VPS control panel as shown in step no. 2
4. Upon initiating a request for your remote VPS to establish an ssh connection, you will be required to input the root user credentials acquired in step 2. Upon successful authentication, you will have securely connected to your VPS via the secure shell (ssh) protocol.
Summary:
Connecting to your VPS using secure shell (SSH) is a straightforward procedure. Remember to enhance security by disabling SSH access for the root user and altering the default port 22.