[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: bash prop
- To: Tzafrir Cohen <tzafrir(at-nospam)technion.ac.il>, ILUG <linux-il(at-nospam)linux.org.il>
- Subject: Re: bash prop
- From: Ben-Nes Michael <miki(at-nospam)canaan.co.il>
- Date: Tue, 13 Mar 2001 11:05:28 +0200
- Delivered-To: linux.org.il-linux-il@linux.org.il
- Organization: Canaan Surfing Ltd.
- References: <Pine.GSO.3.95-heb-2.07.1010312172348.1366G-100000@csd>
- Sender: linux-il-bounce(at-nospam)cs.huji.ac.il
I put those line in /etc/profile so each user logged get the propper Display ( log
with ssh )
By the way will it effect people starting X from the computer itself ?
Tzafrir Cohen wrote:
> On Mon, 12 Mar 2001, Ben-Nes Michael wrote:
>
> > At least with RH7 its not.
>
> Where can I configure this?
>
> >
> > The DISPLAY was the reason for asking for the REMOTEHOST var as im using X
> > emulator from winblow
> >
> > any way I used SSH var as people in the list told me
> >
> > # to get the client connectewd from ( get $1 as IP)
> > set $SSH_CLIENT
> >
> > # to bind X DISPLAY to the remote host
> > export DISPLAY=$1:0.0
>
> If you connect with ssh you can enable X forwarding, and relieve yourself
> of the need to explicitly set the IP.
>
> This is a bit if a security breach for the client, but I believe that in
> your case the windows box can trust the linux server.
>
> In that case you need not touch the value of DISPLAY which is set by the
> sshd.)
>
> >
> > Boaz Rymland wrote:
> >
> > > Ben-Nes Michael wrote:
> > > >
> > > > Hi All
> > > >
> > > > I wonder if any one know what bash variable contain the host i got
> > > > connected from.
> > > >
> > > > if ther5e is no such variable in bash, does other shell go it or system
> > > > function ?
> > > > --
> > >
> > > If he's aint using tcsh or ssh, a workaround (though not the most beautiful, I
> > > admit) is checking $DISPLAY, which will be set to the remote client name (not
> > > IP), with additional data. This is set up by telnet, if you use it.
>
> --
> Tzafrir Cohen
> mailto:tzafrir@technion.ac.il
> http://www.technion.ac.il/~tzafrir
--
--------------------------
Canaan Surfing Ltd.
Internet Service Providers
Ben-Nes Michael - Manager
Tel: 972-4-6925757
Fax: 972-4-6925858
http://www.canaan.co.il
--------------------------
=================================================================
To unsubscribe, send mail to linux-il-request@linux.org.il with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail linux-il-request@linux.org.il