Looks like the problem was UsePAM=yes in /etc/ssh/sshd_config.
So system wide memlock is effected + ssh logins only effected if PAM is enabled to set limits.
Looks like the problem was UsePAM=yes in /etc/ssh/ sshd_config.
So system wide memlock is effected + ssh logins only effected if PAM is enabled to set limits.