You can test whether SSH is working on your Ubuntu machine by trying to connect to it from another device through SSH. If you can connect successfully, SSH works properly on your Ubuntu machine.