SSH

From EpixStudios

Jump to: navigation, search

If you are going to be living away from your server's location or just want to control it from another computer, you'll want to allow remote logins. A secure and standard way of doing this is to run a SSH server on the box.

First install it through portage

emerge -av openssh

You'll want to edit ssh's config file to make it more secure.

nano /etc/ssh/sshd_config

Find this line (Ctrl+w)

#PermitRootLogin yes

Remove the commenting hash if there is one and make sure it is disabled with a 'no' value

PermitRootLogin no

Make sure only protocol 2 is enabled

Protocol 2

Sudo

http://www.gentoo.org/doc/en/sudo-guide.xml

emerge -av app-admin/sudo
visudo
USERNAME  ALL=(ALL)  ALL
Personal tools