1836898 Members
2231 Online
110111 Solutions
New Discussion

X11 forwarding

 
Joe_Flow_1
Advisor

X11 forwarding

Hey guys, thanks for the earlier help.

Im trying to use X11 forwarding on the hp-ux11i V1 operating system, I downloaded the package and installed.

I have a linux running Cent OS (Rocks Cluster) and it uses similar config files to set up X11 but when I try to use "putty"(for windows) to gain access to the Unix box I get a netwrok error connection refused. I can telnet into the box.

Any suggestions, there are about 100 options to uncomment and/or change. SHould I uncomment everything but leave a defult settings?
11 REPLIES 11
Steven E. Protter
Exalted Contributor

Re: X11 forwarding

Shalom,

ssh on hpux does not support ssh -Y but ssh -X works the same way. I'd try that first.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Joe_Flow_1
Advisor

Re: X11 forwarding

are these are commands in the terminal on hp-ux or putty?
spex
Honored Contributor

Re: X11 forwarding

Joe,

1) Install an X-Windows server on your Windows box. I use Cygwin/X and am quite happy with it. It's available here:

http://x.cygwin.com/

2) Start your X-Windows server.

3) Go to Putty configuration and click "X11". Click "enable forwarding" and input "localhost:0" in the text field.

4) At the command line of your Putty ssh session, enter your X-Windows command (e.g. 'xterm', 'xcalc', 'xeyes', 'sam', 'gpm', etc.). The window(s) should tunnel over ssh and display on the local X-Windows server.

PCS
Joe_Flow_1
Advisor

Re: X11 forwarding

I cant start a putty session. That is the problem. It will not let me connect to the unix machine.
Joe_Flow_1
Advisor

Re: X11 forwarding

I cant start a putty session. That is the problem. It will not let me connect to the unix machine.

I enter the Ip address and the port. x11 forwarding enabled and try to open connection but no go.
Tim Nelson
Honored Contributor

Re: X11 forwarding

I just implemented CDE through an X11 tunnel using putty.

All works as advertised.

Configure putty to allow X11 forwarding. Log into server using putty session. execute dtsession.
Or if using gnome then do same but execute gnome-session.


You display will always be the window manager at the host not your Xserver on your PC. Once you connect with putty echo $DIPLAY and use that value for all XWindow connections and security.




Joe_Flow_1
Advisor

Re: X11 forwarding

I am using cygwin...
Joe_Flow_1
Advisor

Re: X11 forwarding

Is there any config to the sshd.conf file the is nescesary for me to connect.
spex
Honored Contributor

Re: X11 forwarding

# man 5 sshd_config

Also check /etc/hosts.allow and /etc/hosts.deny if using tcp wrappers.

PCS
Joe_Flow_1
Advisor

Re: X11 forwarding

neither host.deny or host.allow is in our the etc/ folder
Kevin Wright
Honored Contributor

Re: X11 forwarding

first of all Joe, is sshd running on your system? Telnet into the system, ps -ef |grep ssh. Then ssh localhost, can you connect? if so, you will be able to connect from other servers unless you have tcp_wrappers or a firewall blocking ssh.