0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

LXDでubuntu, AlmaLinuxを構築した場合の初期設定

Last updated at Posted at 2023-09-05

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
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?