Add Linux command to view SSH logs
This commit is contained in:
parent
417b78d3dd
commit
bc6e65a7e0
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue