Above example helps us how to turn on SSH on Pi. This example is the prerequisite of above example.
For Linux OS:
Open the terminal and write down this
ssh pi@your local IP address. Then you will need to provide the password.
Note: Here pi: your raspberry pi username and your local IP address: the IP address of your device. You will get this IP address from your router, DHCP client list. However, this topic is out of scope.
For Windows OS: We can use Putty to login via ssh. At Host Name write your Raspberry pi IP address.
After pressing Open. You should provide your username and password. After the successful attempt, you will get this screen.