SSH, or Secure Shell, is a cryptographic network protocol used for secure data communication, remote command-line login, remote command execution, and other secure network services between two networked computers. It is widely used by network administrators to manage systems and applications remotely, ensuring that data sent over the network is encrypted and secure from eavesdropping.
Ubuntu cheatsheet
Here you can find how to configure a secure remote connection and command execution