1823063 Members
3156 Online
109645 Solutions
New Discussion

SecureCRT 4.0

 
Patrick_44
New Member

SecureCRT 4.0

I'm using SecureCRT 4.0 on my client PC connecting to an HPUX 11:00 server, I have openssh installed to forward X11 packets..The PC and Server are on two differnet subnets. When logged in as a user everything works fine, but when using sudo to gain root access it fails.. it seems to inherit the ssh display settings:

SUDO_COMMAND=/usr/bin/su
SHELL=/bin/csh
SSH_CONNECTION=10.23.x.x 1578 10.25.x.x 22
SSH_CLIENT=10.23.x.x 1578 22

However when launching any X-terminal it gives me this error message:

# /usr/dt/bin/dtterm &
[1] 3834
# Xlib: connection to "10.25.x.x:11.0" refused by server
Xlib: SSH gateway: X11 authentication failed.
Error: Can't open display: 10.25.128.151:11.0
Error: Couldn't find per display information

Any help that you can provide would be greatly appreciated.. Thanks PN...




1 REPLY 1
Ken Penland_1
Trusted Contributor

Re: SecureCRT 4.0

We just run a little script instead of su, we call it xsu...I dont know if one of us wrote it back in the day, or if we got it from the net somewhere, but this will take care of your problem....either do what this script does manually, or throw it in your path and run this instead of su...

See Attached:
'