X applications fail to run on ssh -X - Aix
This is a discussion on X applications fail to run on ssh -X - Aix ; On 08/20/2008 07:20 PM, Frank Fegert wrote:
> On 2008-08-20, TsanChung wrote:
>> bash$ set|grep DISPLAY
>> bash$ xclock
>> Error: Can't open display:
>
> There's your problem. DISPLAY should be automatically set so some-
> thing like "localhost:$OFFSET.0" ...
-
Re: X applications fail to run on ssh -X
On 08/20/2008 07:20 PM, Frank Fegert wrote:
> On 2008-08-20, TsanChung wrote:
>> bash$ set|grep DISPLAY
>> bash$ xclock
>> Error: Can't open display:
>
> There's your problem. DISPLAY should be automatically set so some-
> thing like "localhost:$OFFSET.0" by SSHD. So either it doesn't get
> set in the first place (no xauth or no X11Forwarding) or it's reset
> by your environment. Check your .profile, .bashrc, etc. and make
> sure DISPLAY is not unset/overwritten.
It may also help to delete any existing $HOME/.Xauthority file you may
have. It will be recreated as soon as you log in using SSH if your setup
is proper.
Similar to the above tip for DISPLAY, you should check if the XAUTHORITY
or HOME environment variables are changed somewhere.
Also check your client SSH config (ssh_config). i.e. if
ForwardX11Trusted = no.
I have previously recommended that you should upgrade your SSH, for very
good reasons.
Here are the steps:
1. Download the SSHxxx.BFF file from the IBM website I previously posted
to a local directory i.e. /tmp/ssh
2. Run: cd /tmp/ssh; inutoc .
3. Run: smitty install_all -> use . for the directory -> press Esc and 4
to list the installable file-sets -> press Esc-7 to pick 'OpenSSH' and
press Enter until it installs.
4. Stop (kill) the current sshd. It might be a good idea to keep another
SSH session open just in case you run into any type of installation
problem, not that it's ever happened to me.
5. Run: startsrc -s sshd
If it still does not work, you need to post your ssh_config and
sshd_config files.
cheers
Niel
-
Re: X applications fail to run on ssh -X
On Aug 20, 3:01*pm, Niel Lambrechts wrote:
> On 08/20/2008 07:20 PM, Frank Fegert wrote:
>
> > On 2008-08-20, TsanChung wrote:
> >> bash$ set|grep DISPLAY
> >> bash$ xclock
> >> Error: Can't open display:
>
> > There's your problem. DISPLAY should be automatically set so some-
> > thing like "localhost:$OFFSET.0" by SSHD. So either it doesn't get
> > set in the first place (no xauth or no X11Forwarding) or it's reset
> > by your environment. Check your .profile, .bashrc, etc. and make
> > sure DISPLAY is not unset/overwritten.
>
> It may also help to delete any existing $HOME/.Xauthority file you may
> have. It will be recreated as soon as you log in using SSH if your setup
> is proper.
>
> Similar to the above tip for DISPLAY, you should check if the XAUTHORITY
> or HOME environment variables are changed somewhere.
>
> Also check your client SSH config (ssh_config). i.e. if
> ForwardX11Trusted = no.
>
> I have previously recommended that you should upgrade your SSH, for very
> good reasons.
>
> Here are the steps:
> 1. Download the SSHxxx.BFF file from the IBM website I previously posted
> to a local directory i.e. /tmp/ssh
> 2. Run: cd /tmp/ssh; inutoc .
> 3. Run: smitty install_all -> use . for the directory -> press Esc and 4
> to list the installable file-sets -> press Esc-7 to pick 'OpenSSH' and
> press Enter until it installs.
> 4. Stop (kill) the current sshd. It might be a good idea to keep another
> SSH session open just in case you run into any type of installation
> problem, not that it's ever happened to me.
> 5. Run: startsrc -s sshd
>
> If it still does not work, you need to post your ssh_config and
> sshd_config files.
>
> cheers
> Niel
I downloaded openssh-4.7_new5302.tar.Z from
https://sourceforge.net/projects/openssh-aix/
Untarring it get these files, which are not SSHxxx.BFF file.
How to install openssh on AIX 5.3?
$ ls
change_log.txt openssh.msg.ZH_CN
openssh-4.7_new5302.tar.Z openssh.msg.ZH_TW
openssh.base openssh.msg.Zh_CN
openssh.license openssh.msg.Zh_TW
openssh.man.en_US openssh.msg.ca_ES
openssh.msg.CA_ES openssh.msg.cs_CZ
openssh.msg.CS_CZ openssh.msg.de_DE
openssh.msg.DE_DE openssh.msg.en_US
openssh.msg.EN_US openssh.msg.es_ES
openssh.msg.ES_ES openssh.msg.fr_FR
openssh.msg.FR_FR openssh.msg.hu_HU
openssh.msg.HU_HU openssh.msg.it_IT
openssh.msg.IT_IT openssh.msg.ja_JP
openssh.msg.JA_JP openssh.msg.ko_KR
openssh.msg.Ja_JP openssh.msg.pl_PL
openssh.msg.KO_KR openssh.msg.pt_BR
openssh.msg.PL_PL openssh.msg.ru_RU
openssh.msg.PT_BR openssh.msg.sk_SK
openssh.msg.RU_RU openssh.msg.zh_CN
openssh.msg.SK_SK openssh.msg.zh_TW
-
Re: X applications fail to run on ssh -X
On 2008-08-21, TsanChung wrote:
> I downloaded openssh-4.7_new5302.tar.Z from
> https://sourceforge.net/projects/openssh-aix/
>
> Untarring it get these files, which are not SSHxxx.BFF file.
> How to install openssh on AIX 5.3?
> $ ls
> change_log.txt openssh.msg.ZH_CN
> openssh-4.7_new5302.tar.Z openssh.msg.ZH_TW
> openssh.base openssh.msg.Zh_CN
> openssh.license openssh.msg.Zh_TW
> openssh.man.en_US openssh.msg.ca_ES
> openssh.msg.CA_ES openssh.msg.cs_CZ
> openssh.msg.CS_CZ openssh.msg.de_DE
> openssh.msg.DE_DE openssh.msg.en_US
> openssh.msg.EN_US openssh.msg.es_ES
> openssh.msg.ES_ES openssh.msg.fr_FR
> openssh.msg.FR_FR openssh.msg.hu_HU
> openssh.msg.HU_HU openssh.msg.it_IT
> openssh.msg.IT_IT openssh.msg.ja_JP
> openssh.msg.JA_JP openssh.msg.ko_KR
> openssh.msg.Ja_JP openssh.msg.pl_PL
> openssh.msg.KO_KR openssh.msg.pt_BR
> openssh.msg.PL_PL openssh.msg.ru_RU
> openssh.msg.PT_BR openssh.msg.sk_SK
> openssh.msg.RU_RU openssh.msg.zh_CN
> openssh.msg.SK_SK openssh.msg.zh_TW
In this directory run:
inutoc
smitty install
(enter a dot (".") as input directory/device)
Regards,
Frank
-