How to autologin to Linux via PuTTY with X11 forwarding

book

Article ID: 102989

calendar_today

Updated On:

Products

CA Privileged Access Manager - Cloakware Password Authority (PA) PAM SAFENET LUNA HSM CA Privileged Access Manager (PAM)

Issue/Introduction



How should the TCP service be configured to SSH without providing credentials via PuTTY with X11 forwarding enabled?

Environment

CA PAM 3.X

Resolution

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:

<Please see attached file for image>

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

Attachments

1558700699528000102989_sktwi1f5rjvs16k8g.png get_app