circuitbasics.com show us how to setup a Wifi dongle using SSH connection.
Now I’ll explain how to use that SSH connection to setup a WiFi dongle so you can run your Raspberry Pi wirelessly from a remote desktop application. This is a really useful way to set up your Raspberry Pi, because you will be able to access your it over the internet from anywhere in the world. You can use it from your iPhone, iPad, or Laptop from anywhere with an internet connection.
How to Set Up WiFi on the Raspberry Pi – [Link]