Life cycle of ssh connection

145 Views Asked by At

I want to know really what does the "PrintLastLog yes" do in the background, When I try to connect it's showing me the last login section, I'm searching for the command whose allows me get that result I have a SunOS machine and I didn't find command to get the date of last login with the year

bash-[510]$ last root
root   pts/1        192.168.0.106    Wed Jun 13 18:16   still logged in

that's why I'm looking for the source to get that value :

Last login: *Wed Dec 25 11:53:27 2019* from srvsunos.control-dev.com

0

There are 0 best solutions below