Install SSH server sudo apt-get install opensshserversudo apt-get update Set Static IP sudo nano /etc/network/interfaces# The loopback network interface auto lo iface lo inet loopback # The primary network interface auto eth0 iface eth0 inet static address 10.0.0.41 netmask 255.255.255.0 network 10.0.0.0 broadcast 10.0.0.255 gateway 10.0.0.1 dns-nameservers 10.0.0.1 8.8.8.8 *Virtual # The primary network interface auto ens160 iface ens160 inet static address 10.0.0.41 netmask 255.255.255.0 network 10.0.0.0 broadcast 10.0.0.255 gateway 10.0.0.1 dns-nameservers 10.0.0.1 8.8.8.8 Change Hostname /etc/hostname and /etc/hosts sudo service hostname restart *add user adduser --home /restricted/directory restricted_user
|
UBUNTU DUMP >