VPS install routine

basics
apt-get update
apt-get install nano
apt-get upgrade

sudo stuff. for Debian 6, no need to add wheel group, just use the sudo group.
/usr/sbin/groupadd wheel
/usr/sbin/visudo

in the file
## Allows people in group wheel to run all commands
%wheel ALL=(ALL) ALL

add a new user
/usr/sbin/adduser newuser
/usr/sbin/usermod -a -G wheel newuser

SSH config
nano /etc/ssh/sshd_config
in the file
Port xxxx
Protocol 2
PermitRootLogin no
PasswordAuthentication no
UseDNS no
AllowUsers newuser
ClientAliveInterval 300
ClientAliveCountMax 3

then reload ssh
/etc/init.d/ssh reload

Leave a Comment

Before leaving a comment, please ensure you have read and understand my comments policy and my privacy policy. Any comment that does not abide by the comment policy will be deleted immediately.

Related Posts