Description

Remote Shell utility in UI will not work properly, returning error "Connection closed" , additionally connectivity via 443 port in Mist and Junos Mist agent might be affected. When max-sessions-per-connection 2 is enabled in config-non-managed in Mist UI

Symptoms

Symptoms in Junos CLI , 

 

 

 

1) When checking logs , we can observe this sessions stating sessions are met:

 

 

Sep  7 21:57:12.872 2026  B1-FL3-OT-SW02 sshd[38615]: %AUTH-3: error: no more sessions
Sep  7 21:57:15.259 2026  B1-FL3-OT-SW02 sshd[38615]: %AUTH-3: error: no more sessions
Sep  7 21:57:15.276 2026  B1-FL3-OT-SW02 sshd[38615]: %AUTH-3: error: no more sessions

 

 

2) When checking system commit and Mist agent installation we might see it will not pass beyond mist-authkeys

 

 

 

root@> show system commit
0   2026-09-08 10:44:54 PDT by mist via netconf commit confirmed, rollback in 10mins
    mist-authkeys
1   2026-09-08 10:44:43 PDT by mist via netconf
    oc-config
2   2026-09-08 10:44:30 PDT by mist via netconf
    install-mist-mgmt
3   2026-09-08 10:44:26 PDT by root via cli

 

 

 

443 port will not open connection

root@> show system connections | match 443

 

 

 

Mist Symptoms 

 

Remote shell utility will not work 

 

 

We will see filePut error , 

 

 

 

Solution

There are a few solutions:

 

1- Delete and readd the knob (set system services ssh max-sessions-per-connection 2)

2- Increase the counter to recommended 10 at least which is default

3- Delete the knob set system services ssh max-sessions-per-connection 2 , this will leave it in 10 as default

 

Modification History

2026-09-08 : Article Created