What is the password for a sudo command

Step 9 and 12 in the link you provided above tells you exactly where the uuid and secret are.

But I should add that this has nothing to do with the karaf console.

To run sudo commands and the like you need to ssh to the regular ssh port on the machine OH is running on.