I am trying to set up putty via PAM and that is not working.
Is there a document which guides me with the info?
Please go to the following KB000103707 article to setup Putty as a service. This document also includes how to connect with autologin:
How to create PuTTY as a TCP/UDP Service with Auto - CA Knowledge
Let me know how this works for you.