How to autologin to Linux via PuTTY with X11 forwarding
search cancel

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) 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?

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:

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> -X

Note:
-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 on documentation page Create an SSH Service to Access a Device.