Symptom
After closing the SSH session, there is no ssh session in "show ssh sessions" as expected, but the session still exists in "show resource usage".
ciscoasa# show ssh sessions
ciscoasa# show resource usage
Resource Current Peak Limit Denied Context
SSH Server 1 1 5 0 System <<<
Syslogs [rate] 0 691 N/A 0 System
Conns 2 17 100 0 System
Xlates 1 1 N/A 0 System
Hosts 3 11 N/A 0 System
Inspects [rate] 0 4 N/A 0 System
Routes 18 18 unlimited 0 System
ciscoasa#
If the SSH server resource limit is reached, it will not be possible to SSH to the device.
Conditions
An SSH session is closed when in FXOS CLI (FXOS CLI is accessed by using the 'connect fxos' command).
All firewall devices which have FXOS CLI.
Workaround
Reload the device if you run out of the SSH server resources.
Further Problem Description
The issue can be avoided by closing SSH sessions outside FXOS CLI.