Add Linux command to view SSH logs

This commit is contained in:
James Skemp 2023-02-21 21:51:51 -06:00
parent 417b78d3dd
commit bc6e65a7e0
1 changed files with 3 additions and 0 deletions

View File

@ -13,6 +13,9 @@ ssh <user_name>@<ip_address>
# Output current user's name.
whoami
# View last hour of SSH logs.
sudo journalctl -u ssh --since "1 hour ago"
```
## System management