UniFi Controller (New versions)
In the newer controller versions, you should be able to go to
Settings -> NETWORK SETTINGS -> Device Authentication
To view the SSH credentials.
UniFi 5.6.x Controller
Go to Settings -> Site -> DEVICE AUTHENTICATION