SSH login doesn't appear in who or w listing

If I login to one of our AIX 6.1 servers using SSH via PuTTY and I issue the who -a or w command I cannot see my session, although if I login via TELNET I can.
Why is this?

SSH:

root#> who
root#> w
08:06PM up 40 days, 27 mins, 0 users, load average: 0.05, 0.12, 0.14
User tty login@ idle JCPU PCPU what
root#>
 

TELNET:

root#> who
root pts/1 Sep 20 20:07 (server1)
root#> w
08:07PM up 40 days, 28 mins, 1 user, load average: 0.02, 0.10, 0.13
User tty login@ idle JCPU PCPU what
root pts/1 08:07PM 0 0 0 w
root#>
 

Both sessions show up if doing this on a Solaris 5.1 box

Maybe this helps: OpenSSH FAQ (Why doesn't "w" or "who" on AIX 5.x show users logged in via ssh?)

2 Likes