VanDyke Software Forums

Go Back   VanDyke Software Forums > Secure Shell
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply
 
Thread Tools Display Modes
  #1  
Old 10-23-2015, 06:49 AM
peteral peteral is offline
Registered User
 
Join Date: Oct 2015
Posts: 3
Unhappy 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?
Reply With Quote
  #2  
Old 10-23-2015, 07:55 AM
rtb rtb is offline
VanDyke Technical Support
 
Join Date: Aug 2008
Posts: 4,307
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:
From:
D:"XServer Port"=00001770
To:
D:"XServer Port"=00001771
The number will be specific to the display port you want to use.

Does this help you accomplish your goal?
__________________
--Todd

VanDyke Software
Technical Support
support@vandyke.com
505-332-5730
Reply With Quote
  #3  
Old 10-26-2015, 09:13 AM
peteral peteral is offline
Registered User
 
Join Date: Oct 2015
Posts: 3
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?

Regards

Peter
Reply With Quote
  #4  
Old 10-26-2015, 09:43 AM
peteral peteral is offline
Registered User
 
Join Date: Oct 2015
Posts: 3
Todd

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

Peter
Reply With Quote
  #5  
Old 10-26-2015, 10:58 AM
rtb rtb is offline
VanDyke Technical Support
 
Join Date: Aug 2008
Posts: 4,307
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.
Attached Files
File Type: txt SetXServerFromDISPLAYEnvVar.vbs.txt (3.3 KB, 137 views)
__________________
--Todd

VanDyke Software
Technical Support
support@vandyke.com
505-332-5730
Reply With Quote
  #6  
Old 02-15-2017, 09:54 AM
Maureen's Avatar
Maureen Maureen is offline
VanDyke Product Director
 
Join Date: Feb 2004
Location: Albuquerque, NM
Posts: 1,464
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 Maureen.Jett@vandyke.com if you would be interested in trying it.

Maureen
Reply With Quote
Reply

Tags
display:, x11, xming


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 05:12 PM.


copyright 1995-2015 VanDyke Software, Inc.