sudo su
hostnamectl set-hostname hostname
timedatectl set-timezone Asia/Jakarta
verify
date
vim /etc/netplan/00-installer-config.yaml
apply configuration
netplan apply
verify
ip a
sudo apt update -y && sudo apt upgrade -y
useradd -m -s /bin/bash deploy
set password
passwd deploy
echo "deploy ALL=(ALL:ALL) NOPASSWD:ALL" > /etc/sudoers.d/deploy
apt install sshpass
vim /etc/ssh/ssh_config
edit this
StrictHostKeyChecking no
su - deploy
ssh-keygen -t rsa
echo -e "192.168.212.1\n192.168.212.2\n192.168.212.3" > hosts
echo "password" > pass
for hostname in `cat hosts`; do sshpass -f pass ssh-copy-id deploy@${hostname}; done