User Tools

Site Tools


vps_setup

networking

edit /etc/network/interfaces

static ip

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
allow-hotplug eth0
auto eth0
iface eth0 inet static
address 172.16.1.84
netmask 255.255.255.0
gateway 172.16.1.1

dns

edit /etc/resolve.conf

nameserver 208.67.222.222
nameserver 208.67.220.220

sudo user setup

apt-get install sudo
usermod -a -G sudo example_user

disable ssh timeout

edit /etc/ssh/sshd_config

ClientAliveInterval 60

then run sudo service ssh restart

updates

apt-get update
apt-get upgrade

add users

adduser $theUser --home /home/$theUser \
--shell /bin/bash \
--ingroup $theUser
usermod -a -G sudo $theUser

(on local machine)

ssh-keygen
scp ~/.ssh/id_rsa.pub example_user@SERVER.URL:

(back on the server)

mkdir .ssh
mv id_rsa.pub .ssh/authorized_keys
chown -R EXAMPLEuser:EXAMPLEuser .ssh; chmod 700 .ssh; chmod 600 .ssh/authorized_keys
vps_setup.txt · Last modified: 2016/07/23 08:56 (external edit)