Connecting via SSH is secure and easy, yet if you’re just starting out on Linux it might be a bit confusing.

Let’s say you would like to connect to the IP address So first of all open up your terminal and type in

$ ssh

It will ask for your confirmation for the first time saying it is unsafe, just click on yes, and type in your username and password when it asks for the same.

Now in some cases the server will have a non-default port for SSH. In that case you will have to specify the port to connect to the ssh service. Let’s say, the admin has configured the SSH to use the port 8254. In that case the command to connect to the SSH will be like follows:

$ ssh -p 8254

So that’s it. If you have any doubts or you need any help, let me know that by commenting below.