VKontakte.DJ
forum traveling
 

Celestial Software

...better by design

Home Support SSH Client Forums
Welcome, Guest
Please Login or Register.    Lost Password?
SSH2 port forwarding (1 viewing) (1) Guest
Go to bottom Favoured: 0
TOPIC: SSH2 port forwarding
#1771
SSH2 port forwarding 15 Years, 9 Months ago  
I am attempting to use SSH2 port forwarding to connect to a remote server and run an X application but something is not set up right. After specifying the hostname, I set up SSH2 to forward port 57999 to remote "127.0.0.1" port 5903 and checked X Forwarding. I can connect to the remote server, which is a virtual server on a Linux box running VMWare, get a command line prompt (BASH shell) but no DISPLAY variable is generated. Is the problem on my end or the server end?

[ March 03, 2005, 06:35 PM: Message edited by: Brian T. Pence ]
DonLewis (User)
Fresh Boarder
Posts: 12
graphgraph
User Offline Click here to see the profile of this user
Logged Logged  
 
35
 
The administrator has disabled public write access.  
#1772
Re: SSH2 port forwarding 15 Years, 9 Months ago  
I'm not sure what you're forwarding with 57999 and 5903. To do X forwarding, all you need to enable is the 'x forwarding' option. If the DISPLAY variable is not set, then the X forwarding option is probably disabled on your server. Check the sshd_config (probably in /etc/ssh)

You'll still need to be running some kind of X software on the client side. I use xwin32 myself (www.xwin32.com)

Let me know if you need more info

Brian
bpence (Admin)
Admin
Posts: 1343
graph
User Offline Click here to see the profile of this user
Logged Logged  
 
Brian Pence
Celestial Software
SSH , SFTP, and Telnet in a tabbed interface for Windows XP, Vista, Mobile, and others
 
The administrator has disabled public write access.  
#1773
Re: SSH2 port forwarding 15 Years, 9 Months ago  
Our sysadmin for the remote box checked the /etc/ssh/sshd_config and found:
#AllowTcpForwarding yes
#GatewayPorts no
X11Forwarding yes
#X11DisplayOffset 10
#X11UseLocalhost yes

He changed it to:
AllowTcpForwarding yes
#GatewayPorts no
X11Forwarding yes
X11DisplayOffset 10
X11UseLocalhost yes

He then restarted sshd, but I still don't get a display variable when I log in. Any suggestions?
DonLewis (User)
Fresh Boarder
Posts: 12
graphgraph
User Offline Click here to see the profile of this user
Logged Logged  
 
35
 
The administrator has disabled public write access.  
#1774
Re: SSH2 port forwarding 15 Years, 9 Months ago  
And you're sure that the 'x forwarding' option is enabled in Absolute? Be sure it is enabled *before* you begin the connection.

It would be very strange to *NOT* get a DISPLAY variable if both the server and the client are both enabled. Can you double-check and make sure that he restarted the sshd?

Also check that there isn't something in your login scripts that would un-set or re-set the variable
bpence (Admin)
Admin
Posts: 1343
graph
User Offline Click here to see the profile of this user
Logged Logged  
 
Brian Pence
Celestial Software
SSH , SFTP, and Telnet in a tabbed interface for Windows XP, Vista, Mobile, and others
 
The administrator has disabled public write access.  
#1775
Re: SSH2 port forwarding 15 Years, 9 Months ago  
Any word?

Brian
bpence (Admin)
Admin
Posts: 1343
graph
User Offline Click here to see the profile of this user
Logged Logged  
 
Brian Pence
Celestial Software
SSH , SFTP, and Telnet in a tabbed interface for Windows XP, Vista, Mobile, and others
 
The administrator has disabled public write access.  
#1776
Re: SSH2 port forwarding 15 Years, 9 Months ago  
Brian,
Yes, figured it out. The guy that installed Linux on the remote server had 2 configuration files, one in /etc and one in /user/local/etc and ssh was using the one in /usr/local/etc. Fixed the files and it now works. Very slow, but that's a different problem. At least now I have a connection. Thank you for your help.

Don
DonLewis (User)
Fresh Boarder
Posts: 12
graphgraph
User Offline Click here to see the profile of this user
Logged Logged  
 
35
 
The administrator has disabled public write access.  
#1777
Re: SSH2 port forwarding 15 Years, 9 Months ago  
Don,

There are some updates in 3.80 that eliminate some speed issues with X11 forwarding that were present in 3.63. You might want to give it a try:

http://www.celestialsoftware.net/telnet/AbsoluteTelnet3.80.exe
bpence (Admin)
Admin
Posts: 1343
graph
User Offline Click here to see the profile of this user
Logged Logged  
 
Brian Pence
Celestial Software
SSH , SFTP, and Telnet in a tabbed interface for Windows XP, Vista, Mobile, and others
 
The administrator has disabled public write access.  
Go to top