• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • We are looking for U.S.-based freelancer or agency working with SEO or WordPress for a quick 30-min interviews to gather feedback on XOVI, a successful German SEO tool we’re looking to launch in the U.S.
    If you qualify and participate, you’ll receive a $30 Amazon gift card as a thank-you. Please apply here. Thanks for helping shape a better SEO product for agencies!
  • 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.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

Resolved Tools & Resources - SSH Terminal in plesk interface not working after change port

WordsBitcoins

New Pleskian
Hi Everyone,

I changed the default ssh port and added it to Plesk Firewall Rules successfully and I can access SSH through putty but when I try to access it from the Plesk GUI I see the following error:
Connection Broken
ssh: connect to host 127.0.0.1 port 22: connection refused

I also modified the Jail to the following:
iptables[name=ssh, port=4477]

Any suggestions?
 
I assume that the extension as other software expects SSH to run on port 22. Why would anyone change that anyway?
 
I assume that the extension as other software expects SSH to run on port 22. Why would anyone change that anyway?
The actual server owner is a novice and can't handle server management. In the simplest case, he needs to change the root password, while Plesk does not provide a way to change the root password.
In order to provide even a simple layer of security on SSH, we change the port.
Now I'm wondering what if ssh fails and we are not able to access it through third party programs like Putty? The Terminal option through the Plesk GUI will provide a quick solution instead of going into rescue mode or connecting through VNC sometimes.

The question now is how can I fix that??
 
There's nothing broken, so nothing to fix. The problem is that the port has been changed to a non-standard port. You need to change it back to the standard and everything will work like a charm.
 
> In order to provide even a simple layer of security on SSH, we change the port.

You really don't add any security by changing the SSH port. That's silly.

> Now I'm wondering what if ssh fails and we are not able to access it through third party programs like Putty? The Terminal option through the Plesk GUI will provide a quick solution instead of going into rescue mode or connecting through VNC sometimes.

I've not taken a look at this, but I'd guess Plesk just sends a connection to the SSHD daemon. If that fails, you cannot use the terminal anyways. It does not act like a KVM/IPMI/VNC console, which emulates a physical hardware connection.
 
Well from everything I have learnt so far is that is basic common practise to change the default SSH port as much it is to disable root login. The extension is useless, not broke, just inadequate. cPanel and Cyber Panel both allow change of the SSH port, and their internal terminals continue to work.
 
You can set port 22 and port xxxx (e.g. 2222) then block external access to port 22 with firewall rule and set up a different port for access xxxx , but use port 22 for the internal SSH Terminal.
i try and seems work
 
[+] SSH Terminal detects custom address and port of sshd daemon (PPP-53727).
To update it manually, change sshd settings and run the following commands in the console:
/usr/local/psa/admin/sbin/modules/ssh-terminal/installer --update-configuration systemctl restart plesk-ssh-terminal.service
 
Back
Top