PermitRootLogin no\r\nAllowUsers yourusername\r\n<\/code><\/pre>\nFor even more security, you can consider implementing password-less authentication using SSH-keys. For more information on password-less authentication. Congratulations, you saved yourself from over 90% of attackers out there. Now, onto installing the Teamspeak server.<\/p>\n
It is bad practice to run a service as root, so create a user solely for Teamspeak:<\/p>\n
sudo useradd -m -s \/bin\/bash teamspeak\r\n<\/code><\/pre>\nAfterwards, log into that user account and switch to the home directory:<\/p>\n
sudo su teamspeak\r\ncd\r\n<\/code><\/pre>\nDownload Teamspeak. Depending on your architecture, you will need either the\u00a0x64<\/strong>\u00a0version:<\/p>\nwget http:\/\/dl.4players.de\/ts\/releases\/3.0.11.1\/teamspeak3-server_linux-amd64-3.0.11.1.tar.gz\r\n<\/code><\/pre>\nOr<\/em>\u00a0the\u00a0x86<\/strong>\u00a0version:<\/p>\nwget http:\/\/dl.4players.de\/ts\/releases\/3.0.11.1\/teamspeak3-server_linux-x86-3.0.11.1.tar.gz\r\n<\/code><\/pre>\nUnpack the downloaded archive:<\/p>\n
tar -xzvf *.tar.gz && rm *.tar.gz\r\n<\/code><\/pre>\nNow, you have a folder named\u00a0teamspeak3-server_linux-amd64<\/strong>\u00a0with some scripts in it. Switch back to your normal user:<\/p>\nexit\r\n<\/code><\/pre>\nSetup a script to automatically start your server after a reboot. This script also easily stops or restarts the Teamspeak service. Paste the following into\u00a0\/etc\/init.d\/teamspeak<\/strong>:<\/p>\n#!\/bin\/sh\r\n### BEGIN INIT INFO\r\n# Provides: teamspeak\r\n# Required-Start: $local_fs $network\r\n# Required-Stop: $local_fs $network\r\n# Default-Start: 2 3 4 5\r\n# Default-Stop: 0 1 6\r\n# Description: Teamspeak 3 Server\r\n### END INIT INFO\r\n\r\nUSER=\"teamspeak\"\r\nDIR=\"\/home\/teamspeak\/teamspeak3-server_linux-amd64\"\r\n###### Teamspeak 3 server start\/stop script ######\r\ncase \"$1\" in\r\nstart)\r\nsu $USER -c \"$DIR\/ts3server_startscript.sh start\"\r\n;;\r\nstop)\r\nsu $USER -c \"$DIR\/ts3server_startscript.sh stop\"\r\n;;\r\nrestart)\r\nsu $USER -c \"$DIR\/ts3server_startscript.sh restart\"\r\n;;\r\nstatus)\r\nsu $USER -c \"$DIR\/ts3server_startscript.sh status\"\r\n;;\r\n*)\r\necho \"Usage: \" >&2\r\nexit 1\r\n;;\r\nesac\r\nexit 0\r\n<\/code><\/pre>\nMake that file executable:<\/p>\n
sudo chmod 700 \/etc\/init.d\/teamspeak\r\n<\/code><\/pre>\nNow, make Teamspeak start at boot:<\/p>\n
sudo update-rc.d teamspeak defaults\r\n<\/code><\/pre>\nAll that’s left is to start the service:<\/p>\n
sudo service teamspeak start\r\n<\/code><\/pre>\nHappy chatting!<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"open","ping_status":"closed","template":"","format":"standard","manualknowledgebasecat":[105,233,242],"manual_kb_tag":[203],"_links":{"self":[{"href":"https:\/\/support.aklwebhost.com\/wp-json\/wp\/v2\/manual_kb\/2296"}],"collection":[{"href":"https:\/\/support.aklwebhost.com\/wp-json\/wp\/v2\/manual_kb"}],"about":[{"href":"https:\/\/support.aklwebhost.com\/wp-json\/wp\/v2\/types\/manual_kb"}],"author":[{"embeddable":true,"href":"https:\/\/support.aklwebhost.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/support.aklwebhost.com\/wp-json\/wp\/v2\/comments?post=2296"}],"version-history":[{"count":1,"href":"https:\/\/support.aklwebhost.com\/wp-json\/wp\/v2\/manual_kb\/2296\/revisions"}],"predecessor-version":[{"id":2297,"href":"https:\/\/support.aklwebhost.com\/wp-json\/wp\/v2\/manual_kb\/2296\/revisions\/2297"}],"wp:attachment":[{"href":"https:\/\/support.aklwebhost.com\/wp-json\/wp\/v2\/media?parent=2296"}],"wp:term":[{"taxonomy":"manualknowledgebasecat","embeddable":true,"href":"https:\/\/support.aklwebhost.com\/wp-json\/wp\/v2\/manualknowledgebasecat?post=2296"},{"taxonomy":"manual_kb_tag","embeddable":true,"href":"https:\/\/support.aklwebhost.com\/wp-json\/wp\/v2\/manual_kb_tag?post=2296"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}