echo "mybot:x:1001:1001::/home/mybot:/bin/bash" >> /etc/passwd
echo "mybot:{password}" | chpasswd
echo "mybot:{password}" | chpasswd -R /mnt/dev/sda
echo "mybot ALL=(root) NOPASSWD: ALL" > /etc/sudoers.d/mybot
sudo sed -i 's/^#\?PasswordAuthentication no/PasswordAuthentication yes/' /etc/ssh/sshd_config
sudo sed -i 's/PasswordAuthentication yes/PasswordAuthentication no/' /etc/ssh/sshd_config
sudo systemctl reload sshd
|