# cd; wget --no-check-certificate https://raw.github.com/imbolc/squeeze-setup/master/root-install.sh
# bash root-install.sh
# adduser <username>
Remove user sudo password. Add to /etc/sudoers
user ALL=NOPASSWD: ALL
# su <user>
$ cd; wget --no-check-certificate https://raw.github.com/imbolc/squeeze-setup/master/user-install.sh
$ bash user-install.sh
Copy pubkey from local mashine:
local@mashine$ ssh-copy-id <user@sever_ip>
Edit /etc/ssh/sshd_config:
# disable password auth
PasswordAuthentication no
PermitEmptyPasswords no
# disable root login
PermitRootLogin no
# ssh access allowed user list
AllowUsers <user>
Restart ssh daemon:
/etc/init.d/ssh restart