Cannot successfully SSH to Raspberry Pi 4

Using the Desktop flavors requires a monitor and keyboard attached and if I recall correct SSH is not enabled on the desktop editons.

To have SSH you need to use the minimal image which has ssh enabled and will guide you through the initial configuration - read the following guide

Other guides on Raspberry Pi

Hacking wifi and installer