1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142
|
### NOTES
- The ```-?``` option requires ```perl-doc```
otherwise the full source code is shown instead of the trailing POD only
- Documentation like manpages can be created with ```pod2man``` or similar tools
### TESTS
```ssh-last``` was (except the strikedtrough ones) successfully tested on the following systems:
- FreeBSD
- DragonFlyBSD
- OpenBSD
- pfSense
- 2.6.0
- OPNSense
- Guix
- 1.3.0
- Slackware
- 15
- AlmaLinux
- 8
- 9
- nixOS
- vyos (Debian)
- Parabola
- systemd Edition
- ~~openRC Edition~~
- Manjaro
- Mageia
- 8
- Arch
- Alpine
- Fedora
- 34
- ```dnf install perl-Time-Piece```
- 35
- 36
- 37
- CentOS Stream
- 8
- journal not persistent
- ```dnf install perl-Time-Piece```
- ```dnf install perl-Memoize```
- 9
- journal not persistent
- Oracle Linux
- 8.7
- journal not persistent
- no Perl installed
- ```dnf install oracle-epel-release-el8```
- ```dnf install perl```
- ```dnf install perl-Time-Piece```
- ```dnf install perl-Memoize```
- 9.1
- journal not persistent
- no Perl installed
- ```dnf install oracle-epel-release-el9```
- ```dnf install perl```
- Rocky Linux
- 8.6
- journal not persistent
- ```dnf install perl-Time-Piece```
- ```dnf install perl-Memoize```
- 9.1
- journal not persistent
- Devuan
- 2
- 3
- 4
- 5
- Debian
- Sid
- journal persistent
- https://micronews.debian.org/2021/1628949223.html
- Bookworm
- journal persistent
- https://micronews.debian.org/2021/1628949223.html
- Bullseye
- journal persistent
- https://micronews.debian.org/2021/1628949223.html
- Buster
- journal not persistent
- Ubuntu
- ~~14.04~~
- Too old: sshd logs ```Disconnect``` in other format (and without port)
- 16.04
- journal not persistent
- 18.04
- 20.04
- 22.04
- Raspbian
- Bullseye
- Parrot
- 5
- PureOS
- 9
- 10
- Pardus
- 21.3
- Trisquel
- 9
- 10
- OpenSuse
- TumbleWeed
- Leap
- 15.2
- journal not persistent
- has logfiles
- 15.3
- journal not persistent
- has NO logfiles
- 15.4
- journal not persistent
- has logfiles again
- void Linux
- no Perl installed
- ```xbps-install perl```
- no journalctl
- no logfiles
- https://docs.voidlinux.org/config/services/logging.html
- ```xbps-install rsyslog```
- ```ln -s /etc/sv/rsyslogd/ /var/service```
- /var/log/messages
- log format of OpenSUSE leap matches
### REFS
- https://www.golinuxcloud.com/enable-persistent-logging-in-systemd-journald/
- https://linuxconfig.org/introduction-to-the-systemd-journal
### TODOS
- OSX
- https://stackoverflow.com/questions/334686/how-can-i-detect-the-operating-system-in-perl
- ```sw_vers```
- older editions (10.8.5) still have /var/log/ and could be made to work
- ```cat /var/log/system.log```
- newer editions use syslog or some log command
- https://stackoverflow.com/questions/43382825/where-to-find-sshd-logs-on-macos-sierra
- https://discussions.apple.com/thread/7910499
- https://discussions.apple.com/thread/1735247
|