This GUI isn’t super intuitive but heres where to click to dig down in and find your settings.
UDM
UDM > Settings (Bottom of sidebar menu) > Advanced > SSH
Unifi Switch
UDM > Network > Settings (Bottom of sidebar menu) > System > Application Configuration > Device SSH Authentication.