[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: automatically set DISPLAY after telnet/rlogin ?



Michael Agbaglo wrote:
>
> is there is nice way to have the DISPLAY-Variable automatically set to
> the host from where I logged in ?
> 

Obviously ssh appears to be the preferred answer but if tcsh is
available on the remote host, check for tcsh's REMOTEHOST environment
variable.  It should have exactly what you want.

If it (tcsh) was built to support it ($version will have an "rh" in
it), tcsh will attempt to set $REMOTEHOST to the name (or IP address)
of the incoming machine according to getpeername() on the incoming
socket connection.  This of course won't do you much good if you are
connecting via more than one hop, connecting through a firewall, want
security, etc.

HTH,
Keith


--
To UNSUBSCRIBE, email to debian-user-request@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org


Reply to: