Configuração Ubuntu/Debian, Docker, SSH, RabbitMQ, sud

# Criando um usuáriosudo useradd -m --shell /bin/bash ubivis# Mudando a senha do usuariosudo passwd ubivis# Digite a senha, algo tipo 8a7sd6as6d9JGbpADFADKLfn56a346783420f78fh# Habilitando conexão ssh com senhassudo sed -i 's/^# *PasswordAuthentication.*/PasswordAuthentication yes/g' /etc/ssh/sshd_config# Permitindo usuario ubivis fazer sudo apenas em alguns comandossudo sh -c 'echo "# /etc/sudoers.d/ubivisubivis ALL=(root) NOPASSWD: /usr/bin/docker psubivis ALL=(root) NOPASSWD: /usr/bin/docker exec -it rabbitmq /bin/bashubivis ALL=(root) NOPASSWD: /usr/bin/docker start rabbitmqubivis ALL=(root) NOPASSWD: /usr/bin/docker stop rabbitmqubivis ALL=(root) NOPASSWD: /usr/bin/docker exec -it nodered /bin/bashubivis ALL=(root) NOPASSWD: /usr/bin/docker start noderedubivis ALL=(root) NOPASSWD: /usr/bin/docker stop nodered" > /etc/sudoers.d/ubivis'sudo docker run -d --hostname rabbitmq --name rabbitmq --restart unless-stopped --network host rabbitmq:managementsudo docker run -d --hostname nodered --name nodered --restart unless-stopped --network host nodered/node-red