What is SSH and how it works?

Secure shell simply is a protocol between devices in an encrypted form. Using cryptography any input we send in human readable format is encrypted for travelling over a network. Where it get unencrypted once it reaches the remote machine, such as the diagram below.

SSH login syntax:

ssh user@machineip
ls -a 

List all the files even the hidden files

Here is -a is an argument

ls --help

We can use man command to identify different switches and flags of commands

man ls

To create a file we use touch command

touch note

To create a directory we use mkdir

mkdir mydirectory

To remove files and folder we rm command

rm note

rm -R mydirevtory