I have a server where I just use openssh, openvpn and rabbitmq (which requires a lot of erlang dependencies).
Every time I reboot my server I can't access to it anymore getting
Port 22: Connection Refused
And I have to install everything from scratch.
What should I check to avoid this problem??
To view your firewall settings in a terminal perform the following: -
you looking for somehting ike this
if no port ssh (22) rule is set then try:
save current iptables firewall rules to a file called
/root/dsl.fw
, type:To restore iptables rules, enter:
To restore rules automatically upon Linux system reboot add following command to your
/etc/rc.local
file, enter:Append the line:
To check what init services are running and at what run level try this in a terminal
if sshd is not listed do then enter this in your terminal:
This message indicates that a firewall is actively blocking your connection attempt or alternatively that sshd is not listening on that port.
Verify that:
Just try (as root)
sudo apt-get install ssh
i havn't ssh server in standard ubuntu desktop installation