The sftp max-sessions command configures the maximum number of clients that can be connected to the server at any point of time for SFTP service.
The undo sftp max-sessions command restores the default maximum number of clients that can be connected to the SSH server with SFTP service.
By default, the maximum number of clients that can be connected to the SFTP server is 5.
Usage Scenario
You can use this command to configure the maximum number of SFTP clients that can be connected to the server at any point of time for SFTP service, and it takes effect for both IPv4 and IPv6 connections.
If the configured max-sessions value is less than the number of current connections, then the current connection is not disconnected and the server does not accept any new connection.