iface enp0s25 inet dhcp
要改成固定IP的話
auto enp0s25
iface enp0s25 inet static
address 192.168.0.16
netmask 255.255.255.0
gateway 192.168.0.1
dns-nameservers 8.8.4.4 8.8.8.8
2. disable ivp6
/etc/sysctl.conf
net.ipv6.conf.all.disable_ipv6 = 1 net.ipv6.conf.default.disable_ipv6 = 1 net.ipv6.conf.lo.disable_ipv6 = 1
allow root login
- sudo nano /etc/ssh/sshd_config
- changePermitRootLogin prohibit-password
toPermitRootLogin yesorsudo sed -i 's/prohibit-password/yes/' /etc/ssh/sshd_config- in order to PAM authentication addAllowUsers root
orsudo echo "AllowUsers root" >> /etc/ssh/sshd_configsudo service ssh restart
works fine
in order you don't know your root password set new with privileged user
sudo passwd root