SSH is an open protocol for encrypted communication between two entities over a network. The program runing on the far end (not your computer) runs an SSH “server” which listens on a port (typically 22). When you want to connect, you launch an SSH “client” on your local machine and provide the ip address (or hostname) and port of the remote machine.
This is how you can log-in to a remote server and use a text console (terminal).
apt install openssh-client
)