CLI Login to Devices¶
mFusion administrators can log in to the CLI of the routers they manage (SSH and serial console) with their own mFusion username and password. mFusion acts as the RADIUS server for the routers: each login is checked against the mFusion account, recorded, and refused when the account may not reach that router.
This page explains how the parts fit together and what to configure on each. For the router's CLI login settings in detail (local login policy, every aaa command, third-party RADIUS servers), see CLI Login Security.
Overview¶
Without central login, every router has a shared local support account and a shared enable password. Everyone who manages the router uses the same password, logs show only support, and removing a person means changing passwords on every router.
With CLI login through mFusion:
| Shared local accounts | CLI login through mFusion | |
|---|---|---|
| Who logs in | support, one shared password per router |
Each administrator with a personal mFusion account |
| Passwords | Kept on every router | The mFusion password: one password for the mFusion GUI and every router CLI |
| Remove a person | Change the password on every router | Disable or delete the mFusion account: effective on all routers at the next login |
| Which routers | Anyone with the password can log in anywhere | By default the routers of the account's User Entities, as in the mFusion GUI; can be limited further |
| Enable mode | Shared enable password | Per account: straight into enable, the account's own enable password, or the router's local enable password |
| Records | Logs show support |
Every session and every refused login, with the person, router, source address and reason |
| Password rules and lockout | Per router | The mFusion Account Policy; failed CLI logins count toward the same lockout as failed GUI logins |
Administrators get exactly the same CLI as support: they can run CLI commands only, never a system shell.
Architecture¶
| Part | Role |
|---|---|
| Router | Asks mFusion to check each SSH and console login. Holds its own key and a device certificate issued by mFusion; the key never leaves the router. Falls back to the local support account only when mFusion does not answer |
| Device Login Server (mFusion) | A RadSec server (RADIUS over TLS) on TCP 2083, separate from the hotspot RADIUS server. Accepts only routers that present a valid device certificate |
| Admin → Accounts (mFusion) | The administrator accounts and their CLI options: privilege, allowed devices, enable password, source networks, expiry |
| Device CA (mFusion) | Issues, renews and revokes the routers' device certificates |
| CLI Logins report (mFusion) | Every CLI session and every refused login |
Hotspot users and administrator accounts stay apart: a hotspot user cannot log in to a router, and an administrator account cannot log in to the captive portal.
Login Flow¶
- The administrator connects to the router over SSH or the console and enters the mFusion username and password.
- The router sends the login to mFusion over RadSec, authenticated by its device certificate.
- mFusion checks the certificate (issued by its device CA, still in force, device enabled), then the password, then the account rules: account enabled, password not temporary, not locked, CLI login not expired, router within the allowed devices, source address within the allowed networks.
- mFusion answers Accept with the privilege level, or Reject. The reason for a refusal is given only after a correct password, so a wrong guess learns nothing about the account.
- The router records the session start and stop in mFusion; both appear in the CLI Logins report.
Enable Mode¶
| Account setting | What enable does |
|---|---|
| Privilege: Administrator (15) | Enters enable mode without a password |
| Privilege: Operator (1) with Enable Password on | Asks for the account's own enable password, checked by mFusion. The login password is never accepted as the enable password |
| Privilege: Operator (1) with Enable Password off | Asks for the router's local enable password |
When mFusion Does Not Answer¶
If mFusion cannot be reached (network down, server stopped), the router waits for the timeout and then accepts the local support account and the local enable password again. While mFusion answers, support is refused. Keep the support password strong and stored safely: it is the break-glass account.
Device Certificates¶
Each router is identified by a device certificate, which mFusion issues automatically. No certificate files need to be copied.
| Event | What happens |
|---|---|
| First RadSec server configured on the router | The router creates a key and requests a certificate from the mFusion device CA over its mFusion management link. The certificate is valid for 2 years |
| 60 days before expiry | The router renews the certificate with the same key, automatically |
| Device disabled or removed in mFusion | Its certificate is refused at once |
| Router reinstalled, lost, or its key may be known | Select the device under Gateway Devices / Branch Devices, then Selected → Reset Device Certificate. The old certificate is refused at once; the router creates a new key and gets a new certificate on its next check-in |
mFusion issues a certificate only for the first key a device presents. A reinstalled router, which has a new key, needs Reset Device Certificate before it can get a new certificate.
Requirements¶
| Item | Requirement |
|---|---|
| Router firmware | Firmware with the CLI system block, on the gateway series (HSG, CMG) and the branch series (HSA, UA, XE, UAP). See The CLI system Block |
| Router in mFusion | Registered and enabled under ADMIN → Devices, and managed by mFusion (it uses its mFusion management link to get its certificate) |
| Network | TCP 2083 from the routers to mFusion |
| Server name | The routers reach mFusion under the name they already use for it: portal.ransnet.com, or your on-premises mFusion name. The mFusion server certificate covers portal.ransnet.com, the mFusion hostname and its IP addresses |
| Accounts | Local mFusion accounts. LDAP and SAML accounts cannot use CLI login |
Configuration¶
Step 1: Start the Device Login Server on mFusion¶
On the mFusion server CLI:
security device-login-server starts the device login server on TCP 2083, creates the device CA and the server certificate on first start, and opens TCP 2083 in the mFusion firewall. security device-login-server port <n> uses another port; the routers must then be configured with the same port.
In an mFusion HA pair, run the command on the primary. The server runs on the primary only and starts on the secondary when it takes over; the device CA is synchronized, so router certificates stay valid after a takeover.
Step 2: Give Administrators CLI Access¶
Navigate to ADMIN → Accounts and open the account. Tick CLI Login: Enable, then turn on the CLI Options you need. Each option shows its field below it; an option that is off keeps its default.
| Option | Default (off) | On |
|---|---|---|
| Privilege | Operator (1) | Operator (1): enable asks for an enable password. Administrator (15): enable enters enable mode without a password |
| Allowed Devices | The devices of the account's User Entities (every device for a Super Admin) | Only the devices of the entities chosen here, for example NOC |
| Enable Password | enable asks the router's local enable password |
The account's own enable password (Password / Confirm), checked by mFusion. It must differ from the login password and follows the mFusion password rules. When one is set, leave both boxes empty to keep it |
| Source Networks | SSH logins from any address | SSH logins only from these IPv4 addresses or networks, separated by commas, for example 10.0.0.0/8, 192.168.1.10. Console logins are not limited |
| Valid Until | No end date | CLI login is refused after this day, for example 31/12/2027 for a contractor |
Click Save. The change applies to the next login on every router; nothing is sent to the routers.
The username must be 1–32 lowercase letters, digits, ., _ or -, and must not be a router account name such as support or admin.
Note
A new account, or a password set by another administrator, must first be changed by its owner at the mFusion login page. Until then, CLI logins are refused with temporary password: change it in mFusion first.
Step 3: Point the Routers at mFusion¶
In mFusion, open the device under Gateway Devices or Branch Devices, go to the System tab, tick CLI RADIUS / AAA Login, click Add RADIUS Server and enter:
| Field | Value |
|---|---|
| Server | portal.ransnet.com (or the name the routers use for your on-premises mFusion) |
| Type | RadSec (TLS, device certificate) |
Keep Enable Password on Each user's own enable password, tick SSH and console authentication and accounting, then click Save and Apply Config. To configure many routers at once, set the same in a System template. The other login options are described in CLI Login Security — CLI RADIUS / AAA Login.
The equivalent router CLI configuration:
system
aaa radius-server portal.ransnet.com radsec
aaa authentication ssh radius
aaa authentication console radius
aaa enable-authentication radius-user
aaa accounting enable
!
aaa radius-server portal.ransnet.com radsec makes mFusion the router's RADIUS server over RadSec on TCP 2083 (add port <n> if mFusion uses another port). The aaa authentication lines send SSH and console logins to it, aaa enable-authentication radius-user lets mFusion decide how each account enters enable mode, and aaa accounting enable records the sessions.
Within about a minute of the change, the router creates its key, gets its device certificate from mFusion, and starts sending logins to mFusion.
CLI Logins Report¶
Navigate to ADMIN → Accounts and click CLI Logins. For the devices you manage, the report lists:
- each CLI session: user, device, SSH or console, source address, login and logout time, duration;
- each refused login, with the reason, for example
wrong password,not allowed on this device,source address not allowed,CLI access expired,account locked.
Choose the time range with Period; CSV and Excel export the list. Records are kept for 400 days.
Verification¶
| Items to Test | Command / Location | Expected Outcome |
|---|---|---|
| Device login server | show security device-login-server (mFusion CLI) |
running on tcp/2083, the device CA, and the number of device certificates in force |
| Router certificate | show system aaa (router CLI) |
RadSec cert: with the device's MAC address and an expiry date about 2 years ahead; the mFusion server answering |
| An account, from the router | test system aaa alice (router, enable mode; asks for the password) |
[info] alice: accept from portal.ransnet.com, privilege 15 (or privilege 1) |
| SSH login | ssh alice@<router> with the mFusion password |
Login succeeds; the CLI banner shows alice |
| Enable mode | Log in as an Operator, type enable |
Asks for the account's enable password, or the router's local enable password when Enable Password is off |
| Refused login | Log in from an address outside Source Networks, or to a router outside Allowed Devices | Login refused; CLI Logins shows the reason |
support while mFusion answers |
ssh support@<router> |
Refused |
| Records | ADMIN → Accounts → CLI Logins | The sessions above, with user, device, source and duration |
Troubleshooting¶
| Symptom | Likely Cause | Solution |
|---|---|---|
Every mFusion login fails and support works |
The router cannot reach the device login server: server not started, TCP 2083 blocked, wrong server name, or no certificate yet | Run show security device-login-server on mFusion and show system aaa on the router. Allow TCP 2083 from the router to mFusion |
RadSec cert: missing on the router |
The router could not get its certificate: mFusion unreachable, device not registered or disabled in mFusion, or the device was enrolled earlier with another key | Check that the device is enabled under ADMIN → Devices. After a reinstall, use Reset Device Certificate |
The router reaches mFusion but the server is not answering |
The router's certificate was replaced or reset, or the device was disabled | Re-enable the device, or wait for the router's next check-in after Reset Device Certificate |
| A login is refused although the password is right | The account rules refuse it | CLI Logins shows the reason: not allowed on this device, source address not allowed, CLI access expired, account locked, temporary password. Adjust the account's CLI Options, or have the user change the password at the mFusion login |
CLI Logins shows unknown account or CLI access not enabled |
CLI Login: Enable is not ticked on the account, or the username typed differs from the mFusion username | Tick CLI Login: Enable on the account; log in with the mFusion username exactly |
An Operator's own enable password is refused at enable |
The Enable Password option is off for the account, so enable asks the router's local enable password |
Enter the router's local enable password, or turn on Enable Password and set one |
enable refuses the login password |
By design: the enable password must be different | Use the account's enable password |
Login takes about 18 seconds and then support works |
No RADIUS server answers | Fix connectivity to mFusion; see the first row |
Security Best Practices¶
- Give Administrator (15) only to those who need it. Operators with their own enable password leave a clearer record of who entered enable mode.
- Limit each account with Allowed Devices, Source Networks and Valid Until, especially for contractors.
- Disable leavers in mFusion. Their CLI access ends on every router at the next login; no router needs to be touched.
- Keep the
supportpassword strong and in a vault. It works only when mFusion does not answer, and it is the account you need then. - Reset the device certificate of a router that was lost, stolen or reinstalled.
- Restrict SSH to management addresses with
firewall-inputrules, and keep TCP 2083 open only from the routers. See Device Hardening. - Turn on lockout and 2FA in Identity Management. The lockout applies to CLI logins too; 2FA protects the GUI, where CLI access is granted.
Related Features¶
- CLI Login Security: the router's local login policy, all
aaacommands, third-party RADIUS servers - Identity Management: Account Policy (password rules and lockout) and 2FA
- Device Hardening
- LDAP Authentication and SAML SSO: sign-in to the mFusion GUI

