SSH Auth Log Missing? Topic is solved

Have some feedback, questions, suggestions, or just fancy a chat? Pop it in here.
Post Reply
Parkour_Lama
Posts: 12
Joined: Sat Sep 12, 2020 2:02 pm

SSH Auth Log Missing?

Post by Parkour_Lama »

Hey I'm a noob and have a really small problem.
Where are the ssh logs located?

As far as I know, you could see who has accessed the Pi from

Code: Select all

/var/log/auth.log
That file doesn't exist in my Pi. Where can I access this info?
User avatar
Joulinar
Posts: 2597
Joined: Sat Nov 16, 2019 12:49 am

Re: SSH Auth Log Missing?

Post by Joulinar »

Hi,

many thanks for your message. If you default SSH server Dropbear, login attemps are visible within journalctl -u dropbear.service

Code: Select all

root@DietPi3:~# journalctl -u dropbear.service
-- Logs begin at Thu 2019-02-14 11:11:58 CET, end at Tue 2020-10-27 16:03:49 CET. --
Oct 27 15:54:56 DietPi3 systemd[1]: Starting LSB: Lightweight SSH server...
Oct 27 15:54:56 DietPi3 dropbear[400]: Starting Dropbear SSH server: dropbear.
Oct 27 15:54:56 DietPi3 dropbear[405]: Running in background
Oct 27 15:54:56 DietPi3 systemd[1]: Started LSB: Lightweight SSH server.
Oct 27 15:58:43 DietPi3 dropbear[437]: Child connection from 192.168.x.x:52454
Oct 27 15:58:47 DietPi3 dropbear[437]: Password auth succeeded for 'root' from 192.168.x.x:52454
Oct 27 16:03:40 DietPi3 dropbear[573]: Child connection from 192.168.x.x:52674
Oct 27 16:03:49 DietPi3 dropbear[573]: Password auth succeeded for 'dietpi' from 192.168.x.x:52674
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
Parkour_Lama
Posts: 12
Joined: Sat Sep 12, 2020 2:02 pm

Re: SSH Auth Log Missing?

Post by Parkour_Lama »

Thanks for help, unfortunately I'm currently using OpenSSH and there doesn't seem to be an openssh.service like dropbear.
User avatar
Joulinar
Posts: 2597
Joined: Sat Nov 16, 2019 12:49 am

Re: SSH Auth Log Missing?

Post by Joulinar »

just use journalctl -u ssh.service
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
Parkour_Lama
Posts: 12
Joined: Sat Sep 12, 2020 2:02 pm

Re: SSH Auth Log Missing?

Post by Parkour_Lama »

Oh... that works. Thank you!
Post Reply