设置root密码
sudo passwd
1、vi /etc/network/interfaces
添加内容:
auto eth0iface eth0 inet static
address 192.168.8.100
netmask 255.255.255.0
gateway 192.168.8.2
dns-nameserver 119.29.29.29
vim /etc/ssh/sshd_config
- #PermitRootLogin without-password
- PermitRootLogin yes
killall命令
apt-get install psmisc