How to see the last ssh connecions ubuntu server code example Example: list all ssh connections ubuntu ss | grep -i ssh