How to Log onto a Remote Server in Linux using the SSH Protocol



Linux


In this article, we show how to log onto a remote server in Linux using the SSH protocol.

SSH, or Secure Shell, is a way of logging onto a remote system in linux.

SSH is a method for secure remote login from one computer to another.

It is is a cryptographic network protocol for operating network services securely over an unsecured network.

So using SSH, we can log onto a remote server in linux and do whatever we need to accomplish once connected to this remote server.

SSH is important for many reasons.

Many times we need to connect to a remote server. SSH allows us to do this and do this securely.

For example, we may be hosting a website and the SSH is how we can access this remote server.

For example, this is the case with running a website powered by Django. In order to first set up and establish a user, we need to connect to the root user. Once connected using the random password assigned to us from the hosting company, we can then access the account via SSH and do things such as change the password to our own custom password.

So this is the power and necessity of SSH to connect to a remote server.

So how is this done?

So we can connect to a user via SSH, by typing in ssh followed by the @ sign, followed by the IP address of the hosting account.

This is shown below.



In this case, we connect to the root user account of the remote server account.

The root user is the chief or administrative user of the account. Of course, you can create any other additional users you want for a remote system. The root user would be the first account to be created and addressed, since it's the administrative account.

So all you have to specify is the ssh command, followed by root@, followed by the IP address of the account. In this case, the IP address is 111.111.111.111, in our example.

By specifying all of this, you should be able to gain access to the root user of the remote server system.

If it works, you will see a line specifying the root user account at that IP address.

If it doesn't work, then it will say connection refused.

And this is how we can log onto a remote server in linux using the SSH protocol.


Related Resources

How to Randomly Select From or Shuffle a List in Python



HTML Comment Box is loading comments...