Updated and tested 4 December 2026
An ispmanager server is safer once SSH accepts keys only, the panel answers only your own IP addresses, logins ask for a second factor and FTP runs over TLS. I made each of these changes on an ispmanager Pro server running Debian 12 and checked every one from a second connection before relying on it. All of them are done in the panel or over SSH.
Keep one SSH session open while you work through the first two sections. If a change locks you out of a new session, the open one is how you put it back.
Switch SSH to key-only logins
Set up your SSH key first and confirm it logs you in. Then add a drop-in file that turns off password logins. Its name matters: sshd reads the files in /etc/ssh/sshd_config.d/ in name order and the first value it finds wins. Cloud images often carry a cloud-init file there, 01-cloud-init.conf on my server, that sets password login on. A file named 10-hardening.conf lost to it, so start the name with 00-:
cat > /etc/ssh/sshd_config.d/00-hardening.conf <<'EOF'
PermitRootLogin prohibit-password
PasswordAuthentication no
EOF
sshd -t && systemctl reload ssh
Then check the values sshd really uses, which is the only test that counts:
sshd -T | grep -Ei 'permitrootlogin|passwordauthentication'
Mine answered permitrootlogin without-password and passwordauthentication no. From a second terminal, a key login still worked, and ssh -v without the key ended with "Authentications that can continue: publickey" and Permission denied (publickey).
Limit who can open the panel
The panel listens on port 1500 for anyone by default. Each user can restrict their own login to a list of addresses:
- Click your user name at the top right to open User settings.
- Set Access to control panel to Only IP addresses from the list.
- In List of IP addresses, enter your address. The field takes single addresses, a mask such as
198.51.100.0/24or a range. - Save.
Panel access limited to one address. The same form holds Bind session to IP and two-factor login.
A login from any other address then gets "Access from this IP denied". I tested this on a separate user and left root alone, which is how I'd try it on a live server too. If root ever locks itself out this way, the setting can be reset from SSH, because this command, run as root, changes root's own panel settings:
/usr/local/mgr5/sbin/mgrctl -m ispmgr usrparam sok=ok atype=atany
The same form has Bind session to IP, which ends a session if its address changes. That suits a fixed office connection more than a phone that hops between networks.
Turn on two-factor authentication
Set the server's host name under System settings first. The authenticator app labels the entry with it, as host.name(user), and a generic name is hard to pick out later.
- In User settings, click Set up two-factor authentication.
- Scan the QR code with an authenticator app, and save the key with Download key somewhere safe.
- Type the code the app shows into Temporary password and click Activate.
The setup panel. The key changes every time the form opens; the QR code and key are blurred here.
Activating ended the session, and the next login asked for a code under the title "Authorization". Too many wrong codes block the account for a while.
Keep the downloaded key. Switching two-factor off asks for a current code, and I found no way in the panel for an administrator to switch it off for a user who has lost their phone. Root can still get into that user's panel with a one-time login key made over SSH, so two-factor protects the login page, not the server from its own root.




