1. create the file:
/etc/cockpit/machines.d/00-hosts.json
2. with the content like this:
{ "web.local.test": { "address": "web.local.test", "visible": true, "color": "rgb(100, 200, 0)", "user": "root" }, "fs.local.test": { "address": "fs.local.test", "visible": true, "color": "rgb(100, 200, 0)", "user": "root" } }