How to autologin to Linux via PuTTY with X11 forwarding

Document ID : KB000102989
Last Modified Date : 22/06/2018
Show Technical Document Details
Question:
How should the TCP service be configured to SSH without providing credentials via PuTTY with X11 forwarding enabled?
Environment:
CA PAM 3.X
Answer:
Create or update the TCP service definition for PuTTY under Services > Manage TCP/UDP Services and ensure to select the checkbox next to 'X11' as in the following:

User-added image

In the 'Client Application' field enter the path to putty.exe similar to the above screenshot and pass the arguments <user>, -pw <password> and -X as in the following:

"C:\Program Files\PuTTY\putty.exe" -ssh <user>@<Local IP> <First Port> -pw <password> -X

Note:
-Specifying <user> and -pw <password> will allow for autologin without having to enter any credentials
-Specifying -X will launch PuTTY with X11 forwarding enabled and will not require the 'Default Settings' in PuTTY to include Connection > SSH > X11 > Enable X11 forwarding to be selected
Additional Information:

Prerequisites

1) Verify that the target Device has X11 applications that are installed 
2) Confirm that the SSH server is configured to provide X11 forwarding
3) The User workstation must run an X11 server to display the output like Xming

Additional information can be found under the 'X11 Forwarding and Command Execution' section of the following:

https://docops.ca.com/ca-privileged-access-manager/3-1-1/EN/implementing/provision-your-server/provisioning-devices/about-access-setup/create-tcp-udp-services