Make Tech Easier published a tutorial about how to show all active SSH connections in Linux.
How to Show All Active SSH Connections in Linux
SSH is a popular and effective protocol that allows you to log in and manage remote hosts from your local machine. This guide walks you through various commands you can use to check for active SSH connections on the remote host. Note: depending on the system configuration, some of the commands we are going to discuss may require you to have root or sudo privileges.
How to Show All Active SSH Connections in Linux