User Tools

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
lastlog [2022/03/16 07:51] – created normanlastlog [2022/12/04 07:32] (current) norman
Line 15: Line 15:
 Displays the list of logged in and logged out users with the IP address of the source machine: Displays the list of logged in and logged out users with the IP address of the source machine:
 <code>last root -i</code> <code>last root -i</code>
 +or
 +<code>last root -i | head -n 50</code>
  
 Displays the list of logged in and logged out users more detailly with available command options: Displays the list of logged in and logged out users more detailly with available command options:
Line 21: Line 23:
 Source: https://www.servercake.blog/check-last-login-details-via-ssh/ Source: https://www.servercake.blog/check-last-login-details-via-ssh/
  
 +
 +
 +====== SSH Remove SSH Key ======
 +
 +<code>ssh-keygen -f "/root/.ssh/known_hosts" -R "[8.8.8.8]:22"</code>