Enable Terminal without SSH Access
Hello, everyone.
We want to offer the Terminal in cPanel without giving SSH access. Unfortunately, in the Feature Manager, if we disable SSH access, the Terminal also gets disabled, as cPanel treats these two as a single feature.
What we want is for the Terminal to be available in cPanel, but without the user seeing the SSH Access icon or being able to generate keys, since we don't provide external SSH access.
I tried to achieve this by editing the
/usr/local/cpanel/base/frontend/jupiter/telnet/index.html.tt
file and removing its contents, but I noticed that the next day cPanel regenerated the original file.
I would like to ask if there’s a way to remove the SSH Access icon and functionality from cPanel, so that only the Terminal appears since external SSH access is not possible.
Thank you.
-
Hey there! This isn't the intended use of the tool, so there isn't going to be a way around this behavior.
0 -
The main feature we are looking for, is to give access to the end user to run commands using the Terminal directly through their browser because it’s important for almost any modern application (composer, git, laravel, wp-cli etc.) while in the same time we do not exposeSSH for third party access besides system administrators.
0 -
What if you customized the SSH port on the machine?
https://support.cpanel.net/hc/en-us/articles/360055195553-How-to-change-the-SSH-port
This would let the SSH service run, you could still enable Shell Access and Terminal for the user, but a simple "ssh username@domain" or "ssh username@IP-address-here" wouldn't work for the cPanel user since they wouldn't know the custom port.
Would that be a good alternative?
0
Please sign in to leave a comment.
Comments
3 comments