Re: SSH Last login: (and lastlog, too)

2015-12-18 Thread Corinna Vinschen
On Dec 18 17:44, Achim Gratz wrote: > Nem W Schlecht writes: > > Try setting "UseDNS" to "yes" in /etc/sshd_config, restarting your > > sshd process, log in/out a few times and see if that fixes the issue. > > Thanks a bunch, I would't have found this! That's exactly what has been > causing the i

Re: SSH Last login: (and lastlog, too)

2015-12-18 Thread Achim Gratz
Nem W Schlecht writes: > Try setting "UseDNS" to "yes" in /etc/sshd_config, restarting your > sshd process, log in/out a few times and see if that fixes the issue. Thanks a bunch, I would't have found this! That's exactly what has been causing the issue. So I'll change all sshd_config files… R

Re: SSH Last login: (and lastlog, too)

2015-12-18 Thread Nem W Schlecht
I'm wondering if the default value for UseDNS in /etc/sshd_config changed. It used to be 'yes' (and still is for the official distribution) but many were pushing it to be 'no' (I think CentOS now defaults this to 'no'). Try setting "UseDNS" to "yes" in /etc/sshd_config, restarting your sshd proce

SSH Last login: (and lastlog, too)

2015-12-18 Thread Achim Gratz
For some time now (it had been working at least around March this year) SSH tells me that I've last logged in from whatever IP instead of the name of the machine. Lastlog does the same. Name resolution works just fine as you can see when running ssh with debug on and it will check the correct kn