Remove inactive SSH/webfig user session

Hello all,

could you, please, help me, how can I remove inactive (death) SSH/webfig user session on ROS?

For example - I connected to ROS via SSH/webfig, but during this session the connection was broken and the user/session is still visible in:

/user active print

The connection is also not existing in ip_conntrack table:

/ip firewall connection print

Thank you :slight_smile:

There is no working command for it.
Session will timeout after time.

Hello support team,

how much time is “after time” please? I have a “dead” sessions which are taking more than 7 days. It is possible to configure the idle timeout for SSH/webfig session?

Thank you

Please, i have the same problem, tell me how you resetting or remove the users sesion.! thanks in advace you help!

ROS version?

Use IP > Firewall > Connections [Tracking] button, and set TCP Established timeout accordingly.

This will affect to all connections to/from/traversing this router; unless remote browser/ssh client sends keepalive packets, it should do.

Otherwise you’ll need to make an script that monitor this (/user active), and by using their address and dst port = webfig or ssh remove their connections on IP > Firewall > Connections.