
Read: In this video, I show you how to setup PAM security to prevent SSH users to login as root, as well as test it. I also show you how to change the SSH port and add it to the iptables rules (OPTIONAL!). Also note, anything I do in this, it may be deemed as non-secure in some ways. Well, I'm perfectly aware of that. I'm just showing how to do specific things. Security is the next step, and can be read up on. Thank you, Shane. Written version: www.bromosapien.net If you want a truly secure SSH ability, you may want to read this as a reference... fedorasolved.org . I do not cover this. Notes: If you use debian or anything debian based, I cannot and will not help you. Do not ask for help on those distributions. Especially ubuntu. Prerequisits: -You followed the first two videos -DHCP and IPTABLES concepts understood and completed on your server You can follow along completely if you use these distributions: --Fedora --CentOS Commands to note: vi -- It's an editor in linux. i for insert, o for a new line, shift+g to go to the end of the file, ESC for command mode. :wq saves your file (zz does too). nano -- Another editor in linux, much easier to use. pico --Alternative to nano if not available. services name restart --name being the name of the service ssh --Secure Shell. Allows a machine to remotely access another with encryption. useradd --Adds a user passwd --Changes the password for a user (if typed without a username, it changes the password of the current logged in <b>...</b>
linux
cent
centos
os
rpm
yum
install
router
dhcp
command
line
commandline
bash
shell
root
firewall
rule
rules
iptables
ip
iptable