service sshd start
. Add
it to your boot time services with chkconfig --add sshd
. (The
sshd rc script is part of the OpenSSH rpm)
#allow ssh connections ipchains -A input -j ACCEPT -i eth0 -s any/0 --dport 22 -p tcpThen rerun the script and save the rules (as discussed before). (Note that this works for any service, just replace the port number)
-s any/0
with any IP address (or range of IP addresses, see the ipchains
manual). Or use tcpwrappers to provide further access control
(/etc/hosts.{allow,deny}
).