I have Xmanager running on my PC as the X-Server and Putty as my ssh
client for my AIX server. I have "enable X11 forwarding" under "SSH"
-> "Tunnels" and has the "X display location" as "localhost:0". I even
tried to set the value same as the IP of my local PC.
When I connect to the AIX machine using putty, I don't see the DISPLAY
variable set.
I could set the DISPLAY to my pc's ip address on the ssh session on
AIX by "export DISPLAY=xxx.xxx.xxx.xxx:0" then I am able to run X-
programs. If I set the DISPLAY on the AIX session to
"DISPLAY=localhost:0", I get "Error: Can't open display: localhost:0"
Could anyone please suggest how will I correct the issue? I want the
DISPLAY to be set without me doing "export DISPLAY=xx.xx.xx.xx:n",
when I invoke the client using putty.
I am using putty 0.52
Thanks.
Don't do that. sshd should set the DISPLAY variable and xauth creds
for you. If you have to mess with either then there's something
wrong[1].
You don't specify which SSH server you're using. The following assumes
OpenSSH, details will vary for other servers:
Make sure that X forwarding is on in the server config (ie
"X11Forwarding yes" in sshd_config).
If xauth was not in the path at build time, sshd may not have a default
location for xauth. Try adding "XauthLocation /usr/X11/bin/xauth" to
sshd_config (I think that's the path on AIX, you should check it).
Both of those will require the sshd server to be restarted to take effect.
If neither work, please specify what your SSH server software is (and
what version).
[1] Actually, this isn't strictly true, but if you know that then you
should know when to do it.
--
Darren Tucker (dtucker at zip.com.au)
GPG key 8FF4FA69 / D9A3 86E9 7EEE AF4B B2D4 37C9 C982 80C7 8FF4 FA69
Good judgement comes with experience. Unfortunately, the experience
usually comes from bad judgement.
I am new to AIX. I tried "lslpp -lha | grep -i ssh" and it did not
return anything. Does it mean ssh is not installed?
In my putty client I set the connection to "ssh2" and am able to
successfully connect to the AIX server. If the server doesn't have the
ssh server running, how does it connect to the server. Was it falling
back to telnet or something similar?
Regards,
DA.
dtu...@dodgy.net.au (Darren Tucker) wrote in message news:<bvelvk$vu0$1...@gate.dodgy.net.au>...
No, it probably means your SSH server wasn't installed via SMIT/installp.
Try running "ssh -V", if you have OpenSSH that will return the version,
and if not it might provide a clue as to what it is.
Alternatively, telnet to port 22 on the server. You will see the
text banner it sends which will usually include the name and version.
>In my putty client I set the connection to "ssh2" and am able to
>successfully connect to the AIX server. If the server doesn't have the
>ssh server running, how does it connect to the server. Was it falling
>back to telnet or something similar?
No, I don't think PuTTY will do that.
% ssh -V
ksh: ssh: not found.
% /usr/local/F-Secure.SSH.Server/bin/ssh -V
ssh: F-Secure SSH 3.1.0 (build 8) on powerpc-ibm-aix4.3.3.0
I have "F-Secure SSH" installed.
Now, how do I get the DISPLAY value set when I connect using putty?
Regards.
DA.
===========================================================================
dtu...@dodgy.net.au (Darren Tucker) wrote in message news:<bvmiq2$lk9$1...@gate.dodgy.net.au>...
I'm not sure as I don't use F-Secure. For OpenSSH, you would need to set
"X11Forwarding yes" and possibly "XAuthLocation /path/to/xauth" and
restart the server. F-Secure may have similar options, check the
documentation.
You would also need to enable the "Enable X11 Forwarding" checkbox in
PuTTY too.
Does "X11Forwarding yes" need to be set in the server side? I have the
putty side "Enable X11 forwarding" checked.
Regards.
============================================================================
dtu...@dodgy.net.au (Darren Tucker) wrote in message news:<bvs1g0$hpb$1...@gate.dodgy.net.au>...
Thanks for all your help.
===============================================================================
dtu...@dodgy.net.au (Darren Tucker) wrote in message news:<bvs1g0$hpb$1...@gate.dodgy.net.au>...