VanDyke Software Forums

VanDyke Software Forums (
-   Secure Shell (
-   -   Cannot forward x11 to non 0 display number (

peteral 10-23-2015 08:49 AM

Cannot forward x11 to non 0 display number
Hi, I am trying to use X11 forwarding to a windows terminal server using Xming. As I have several users I am using a script to alter the DISPLAY variable so I can have multiple servers running. This all works great except securecrt will only connect to DISPLAY:0 and not to any other display i.e. DISPLAY:1. With Putty it reads the environment variable for DISPLAY and uses that but securecrt does not do this. My question is how to I pass a non zero display back to securecrt?

rtb 10-23-2015 09:55 AM

Hi peteral,

Thanks for the post. SecureCRT does indeed work differently than Putty. Rather than use an environment variable, SecureCRT looks to its own configuration folder and files.

I have created a feature request to add the ability to look to a DISPLAY environment variable rather than use the configured options. Should we add this we will post to this forum thread.

If you would like to be notified directly, please complete and submit the form at the following location:
Submit Feature Request
In the meantime, you can configure the session to use a specific local display using the following instructions:
To edit a session .ini file:
  1. Close all instances of SecureCRT. If changes are made to the session .ini file while SecureCRT is running, the changes made will be undone when SecureCRT is restarted.
  2. Edit the session .ini file (located in SecureCRT's configuration folder location indicated by the "Configuration folder" field in the 'General' category of the Global Options dialog. Add/modify lines as instructed.
  3. Save changes made to the session .ini file and start SecureCRT.
Note: If you have a /f in the target of the shortcut used to launch SecureCRT, then the path to the Config folder will be different than the path in step 2 above.
The line to modify is:
D:"XServer Port"=00001770
D:"XServer Port"=00001771
The number will be specific to the display port you want to use.

Does this help you accomplish your goal?

peteral 10-26-2015 11:13 AM

Cannot forward x11 to non 0 display number
Hi Todd,

Thanks for the feedback, this works for 0 and 1 but does not see to work for greater display numbers is this achievable?



peteral 10-26-2015 11:43 AM


ignore my last post I have now tested with displays 2 through 5. I should be able to work with this, many thanks


rtb 10-26-2015 12:58 PM

1 Attachment(s)
Hi All,

If anyone is interested, it is possible to configure SecureCRT to run a logon script which could get at a display environment variable and set the port.

You can configure a Logon script: in the Connection / Logon Actions category of the Session Options dialog.

The script which could be a logon script is attached.

Maureen 02-15-2017 11:54 AM

The ability to specify the X11 display options in the GUI has been added to a pre-beta version of SecureCRT. Please email me at if you would be interested in trying it.


All times are GMT -6. The time now is 03:27 AM.