Yes, I usually configure onion service for ssh access for most of my devices.