see ssh established connections windows code example Example: list all ssh connections ubuntu ss | grep -i ssh