Ubuntu
TL;DL
passwd root
timedatectl set-timezone Asia/Tokyo
hostnamectl set-hostname ubuntu-server
apt -y update
apt -y install openssh-server
echo "PermitRootLogin yes" | tee /etc/ssh/sshd_config
echo -e "password\npassword\n" | passwd root
systemctl start ssh && systemctl enable ssh
rootパスワードの設定
$ passwd root
タイムゾーン、ホストネームの設定
timedatectl set-timezone Asia/Tokyo
hostnamectl set-hostname ubuntu-server
sshの設定
apt -y update
apt -y install openssh-server
echo "PermitRootLogin yes" | tee /etc/ssh/sshd_config
echo -e "password\npassword\n" | passwd root
systemctl enable sshd && systemctl restart sshd && systemctl start sshd