Hello Woody,
Thanks for answering.
I commented out only one line. I followed the instructions at
www.openssh.com in the FAQ. It states
2.6 - X11 and/or agent forwarding does not work.
Check your ssh_config and sshd_config. The default configuration files
disable authentication agent and X11 forwarding. To enable
it, put the lines below in your configuration.
X11Forwarding yes
ForwardAgent yes
NOTE: For users of Linux Mandrake 7.2, Mandrake modifies the XAUTHORITY
environment variable in /etc/skel/.bashrc, and thus
any bash user's home directory. This variable is set by OpenSSH and for
either of the above options to work, you need to comment
out the line:
# export XAUTHORITY=$HOME/.Xauthority
They even included a note specially for Mandrake's 7.2 version users.
On the other hand, I am not able to use the variable $SSH_CLIENT
in a bash script since the bash shell doesn't authomatically export its
enviormental varibles to its child processes. One must export it
explicitly before opening another bash shell to execute a script.
Thanks for answering again. Greeting from Mexico.
Fabian.
On Wed, 28 Feb 2001, Woody Green wrote:
> Woody Green wrote:
> >
> > Pe�a Arellano Fabian Erasmo wrote:
> > >
> > > Hi,
> > >
> > > I am having a couple of problems with ssh
> > >
> > > 1. When I try to open some graphical programs from the
> > > ssh server on the client, I get the following message:
> > >
> > > channel 0: istate 4 != open
> > > channel 0: ostate 64 != open
> > > channel 1: istate 4 != open
> > > channel 1: ostate 64 != open
> > > X connection to ahuizotl.uam.mx:10.0 broken (explicit kill or server shutdown).
> > > channel 2: istate 4 != open
> > > channel 2: ostate 64 != open
> > > X connection to ahuizotl.uam.mx:10.0 broken (explicit kill or server shutdown).
> > > channel 3: istate 4 != open
> > > channel 3: ostate 64 != open
> > > X connection to ahuizotl.uam.mx:10.0 broken (explicit kill or server shutdown).
> > > channel 4: istate 4 != open
> > > channel 4: ostate 64 != open
> > > X connection to ahuizotl.uam.mx:10.0 broken (explicit kill or server shutdown).
> > >
> > > And the program obviously doen't open. On the other
> > > side at least Linuxconf does.
> > >
> > > 2. I cannot use the variable $SSH_CLIENT inside a bash
> > > script. From command line the "echo $SSH_CLIENT" works fine,
> > > but echoes nothing if executed inside a script.
> > >
> > > Any help would be greatly appreciated.
> > >
> > > Fabian.
> >
> > 1.) In your .bashrc comment out the following 4 lines and relogin:
> >
> > [ -n $DISPLAY ] && {
> > [ -f /etc/profile.d/color_ls.sh ] && source /etc/profile.d/color_ls.sh
> > export XAUTHORITY=$HOME/.Xauthority
> > }
> >
> > 2.) Couldn't help you there ($SSH_CLIENT), as it works for me
> > correctly both ways.
> >
> > Woody
> >
>
> Footnote: The remote machine is where the problems should lie and
> the 4 lines need commenting out.
>
>
Re: [expert] Two problems with ssh.
=?x-unknown?q?Pe=F1a_Arellano_Fabian_Erasmo?= Wed, 28 Feb 2001 21:06:26 -0800
- [expert] Two problems with s... =?x-unknown?q?Pe=F1a_Arellano_Fabian_Erasmo?=
- Re: [expert] Two proble... Woody Green
- Re: [expert] Two pr... Woody Green
- =?x-unknown?q?Pe=F1a_Arellano_Fabian_Erasmo?=
