SSH for Linux RDP for Windows

In this tutorial, we will see how to use SSH to connect to a remote server?

What is SSH?

SSH stands for Secure Socket Shell and it is a network protocol used to access a system remotely in a secured way. SSH is an application layer protocol and it allows you to access another machine without physical access. Simply, you can control the servers remotely via the internet. In the early 90s, IT professionals were using Telnet for data transfer. It was an application layer protocol and used to transfer data without encryption. Later SSH was created as a secured alternative to Telnet which encrypts data so that others cannot retrieve it without access. SSH allows encrypted communication between two computers and also, it is used to manage systems and applications remotely. With the help of SSH you can:

Issue remote commands Transfer files, data, text Connect to remote servers Provide secure access for automated processes and users.

How does SSH work?

It works by connecting a client device with an SSH server. You can start the server on Ubuntu by running sudo systemctl start ssh. You install the SSh application on the client-side and provide information related to the remote server. On the server-side, There will be an SSH daemon that continuously checks for specific TCP/IP ports for client connection requests. Once the client initiates the connection requests with the right credentials, the SSH daemon starts exchanging the identification data with the client to establish a secured remote connection. So to connect to a remote server using SSH, you need to make sure that SSH is installed on both the server and client devices. In this tutorial, we will use OpenSSH which is an open-source SSH tool for Linux. First, we will install it on both the client and remote devices and then we will use it to connect to the remote device.

Installing an OpenSSH server

The server machine which you are trying to access with SSH must have a server-side part of the SSH software kit. You can also check if you have already installed the OpenSSH server on the remote server or not by connecting to the localhost: So if you do not have OpenSSH installed on your remote server then you can follow the below steps to install one. Now as you have installed an SSH server on a remote machine, you are ready to accept the connection request from a different remote device or your client device.

Installing an OpenSSH client

We need to install the OpenSSH client on our primary device which we will use to connect to a remote server or machine. So to check if you have already installed the OpenSSH client on your device or not. Follow the below steps: Or if you do not have a client installed on your system then follow these steps to install one: Now you can connect to any device which has an ssh server installed on it and you have a hostname and IP address of that device.

How to use SSH to connect to a remote server?

After installing OpenSSH on the client and server machines you can proceed to create a connection between them. Here is the screenshot of ssh command:

Conclusion

SSH is the light, secured and easy method to connect to a remote server. Also, it is one of the most important things to be mastered by a System Administrator. It is a simple and common Linux activity and you can learn it for your daily use too.

How to Use SSH to Connect Remote Linux Server   TecAdmin - 8