UBUNTU DUMP‎ > ‎

Ubuntu Server Basic Install (SSH / Static IP / Hostname)

posted 26 Feb 2016, 00:09 by DR Labs   [ updated 2 Feb 2017, 02:04 by Donald Ross ]
Install SSH server

sudo apt-get update
sudo apt-get install opensshserver


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







Comments