./categories/os
Ubuntu 설치·네트워크·SSH
root 비밀번호
sudo passwd root
네트워크 (/etc/network/interfaces)
ifconfig
sudo vi /etc/network/interfaces
auto eth0
iface eth0 inet static
address 192.168.0.20
netmask 255.255.255.0
gateway 192.168.1.254
dns-nameservers 168.126.63.1 168.126.63.2 8.8.8.8
apt 미러 (kr → us)
sudo vi /etc/apt/sources.list
# vim: :%s/kr\./us./g
sudo apt update
필수 유틸·SSH
sudo apt install net-tools vim
dpkg -l | grep openssh-server
sudo apt-get install openssh-server
sudo service ssh start
root SSH 허용
sudo vi /etc/ssh/sshd_config
# PermitRootLogin yes
sudo service ssh restart
./comments