Welcome to LQ
I've got a theory...
Try, as root, to change this users password:
passwd - gary
And then try logging in as gary again. Short of that, can you post up any relevant log files that contain information on this:
/var/log/syslog
/var/log/sshd/current (depending on what logger you have..)
Col