jueves, 7 de enero de 2021

How does SSH work and how to set it up?

SSH(Secure SHell) is a internet protocol, same as HTTP or FTP.

SSH is used to remotely connect to a PC. Which means you will have a terminal window on your host computer that acts as a terminal in the geest computer. Very useful for controlling a server through the internet. All data passed between them are encrypted. It's default port is 22.

Now that we know a bot of what we can do with SSH let's learn how to use it. 

For linux based systems

If your system has a linux based terminal like Terminal in Linux and MacOS or WSL/Git Bash in Windows you can do SSH directly from your terminal, just type:

 ssh user@IPaddress  
Replace "user" with the user you would like to use, like root, or pi if your connecting to a Raspberry Pi.
Keep the @ and replace "IPaddress" with the IP address of the machine you want to connect to.
Now the default port for SSH is 22 but it can be changed to a different port, if this is the case, just type a colon at the end of the last command and the port number you want to use.

In Windows with no linux terminals

If your using a Windows machine and don't have any linux terminals, well you should, see how to activate WSL(Windows Subsystem for Linux) here.
But if you insist, a simple program for Windows called Putty should do the trick.
Just install it from its web page: www.putty.org

Once installed and opened you'll find this UI:
As you could probably imagine, to use it you just type the IP address were it says Host Name and you can even change the port. By default SSH uses port 22, unless the machine your connecting to has set a different port for SSH connection just keep as default. 

After that a terminal window will appear it will ask for user password...etc. And your finished. You can connect to another computer using SSH.

Installation video for all systems

Here I'll leave a video explaining how to install SSH. 
I explain how to do it with the two methods I showed in this post, works for all operating systems.

No hay comentarios:

Publicar un comentario