• Introducing WebPros Cloud - a fully managed infrastructure platform purpose-built to simplify the deployment of WebPros products !  WebPros Cloud enables you to easily deliver WebPros solutions — without the complexity of managing the infrastructure.
    Join the pilot program today!
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.

Issue Something closing SSH access

Alex Holsgrove

New Pleskian
I am running a new VPS server from Heart Internet running Ubuntu 14.04.5 LTS‬ and Plesk Onyx 17.0.17. I have enabled the Firewall extension and have modified the ssh port to use something non-standard. This port is allowed through the firewall, and after applying the rules, I have been able to connect just fine with my SSH key (passwords disabled). When I come to connect a day later, I get a connection timeout (port 22 still gives me connection refused).

The Heart Tech support won't fix this problem as it's an unmanaged server (although this same setup worked on an old VPS I had from them), but did suggest that it could have been some sort of cron job and pointed me at this Plesk 12 forum post. I've not been able to fix my setup.

I have poked around various log files but don't quote know where to start.
 
It is usual Linux administrative task not related directly to Plesk.
First of all make sure that ssh service is up and running and your custom ssh port is opened. You can check it with

# lsof -i tcp:XXX

where XXX is number of your custom port.

If it is ok - check your firewall settings.
 
Igor - firstly thank you for taking the time to reply.
Running the command does show that SSH is correctly listening on my port

sshd 23650 root 3u IPv4 7376014 0t0 TCP *:XXX (LISTEN)
sshd 23650 root 4u IPv6 7376016 0t0 TCP *:XXX (LISTEN)

The firewall settings are ok from within Plesk as when I click "apply" then SSH works again. I don't change anything else on the server and it stops SSH access the following day. I dumped out iptables -L to a log file, then re-applied the firewall rules (with no changes) and I can see that it had removed 'ACCEPT tcp -- anywhere anywhere tcp dpt:XXX' which is the ssh port. What would be overwriting these settings?
 
Last edited:
Back
Top