Oh, cool. Thank you. I read it somewhere that that's the way to check it but I guess it's not.
The only reason I thought it wasn't running is because I can't get in through SSH. I changed the default port to my secret [PortNumber] and for some reason it doesn't work. My ssh_config file looks like this:
Code:
Host *
GSSAPIAuthentication yes
ForwardX11Trusted yes
SendEnv LANG LC_CTYPE LC_NUMERIC LC_TIME LC_COLLATE LC_MONETARY LC_MESSAGES
SendEnv LC_PAPER LC_NAME LC_ADDRESS LC_TELEPHONE LC_MEASUREMENT
SendEnv LC_IDENTIFICATION LC_ALL
# Protocol 2,1
Protocol 2
# Run ssh on a non-standard port:
Port [PortNumber]
And my iptables entry as you saw above is:
Code:
# SSH
iptables -A INPUT -p tcp --dport [PortNumber] -j ACCEPT
When I try to connect I get:
Code:
[root@webhost ~]# ssh root@myserver -p [PortNumber]
ssh: connect to host myserver port [PortNumber]: Connection refused