sudo fdisk -l
sudo resize2fs /dev/xvda1
sudo cp /usr/share/zoneinfo/Japan /etc/localtime
-
useradd <username>
passwd <username>
-
sudo visudo
<username> ALL=(ALL) ALL
-
sudo su -<username>
cd /home/<username>
mkdir .ssh
cd .ssh
ssh-keygen -t rsa
cp id_rsa.pub authorized_keys
chmod 600 authorized_keys
cd ../
chmod 700 .ssh
-
cat id_rsa
- SSHd
sudo vi /etc/ssh/sshd_config
AuthorizedKeysFile .ssh/authorized_keys
sudo fdisk -l
sudo yum install xfsprogs
sudo mkdir /mnt/xvdb
sudo mkfs.xfs /dev/xvdb
sudo mkfs.ext4 /dev/xvdb
sudo mount /dev/xvdb /mnt/xvdb
vi /etc/fstab
/dev/xvdb /mnt/xvdb ext4 noatime 0 0
-
-
userdel -r ec2-user
-
passwd ec2-user
sudo su -
crontab -e
00 13 * * 1-5 /sbin/shutdown -h now
SWAP †
epel for Amazon Linux †
nkf on Amazon Linux †