zsh-users
 help / color / mirror / code / Atom feed
From: Geoff Raye <raye@watts.neog.com>
To: zsh-users@math.gatech.edu
Subject: Re: Is there a way to find the Remote Host in ZSH?
Date: Mon, 29 Jun 1998 17:58:40 -0500	[thread overview]
Message-ID: <199806292258.RAA15514@watts.neog.com> (raw)
In-Reply-To: Your message of "Mon, 29 Jun 1998 15:31:25 PDT." <980629153125.ZM5401@candle.brasslantern.com>

["Bart Schaefer"]
>On Jun 29,  5:35pm, Sweth Chandramouli wrote:
>> 	it looks like it; on my machine, at least, i have REMOTE_HOSTNAME
>> and REMOTE_IPADDRESS defined when i log in:
>> 
>> (astaroth)~: set | grep 'REMOTE'
>> REMOTE_HOSTNAME=simon
>> REMOTE_IPADDRESS=208.135.210.91
>> 
>> 	those aren't being set in any of the system-wide scripts or in
>> any of my personal ones, so i'm assuming that they are set by the shell.
>
>Are they set regardless of whether you rlogin/rsh/telnet/ssh to the remote
>machine?
>
>They could be being set by the rlogin daemon or some such, before the shell
>is even started.

As an example, ssh sets SSH_CLIENT='ip.you.are.from srcport localport',
which would be quite adequate for your uses.  As long as you're doing this
for customization, rather then security, it'd work quite nicely to parse
out the IP.

I'd guess that REMOTE_* are being set by some program you're using to
connect.  (Neither rsh, telnet, nor ssh seem to do so on BSDi, so I'm
not sure what you're using.)

I'd tend to hold the login daemon responsible.

Geoff

-- 
Geoff Raye           - geoff@raye.com          - MEoW!
System Administrator - Neoglyphics Media Corp. - PGP: finger raye@uiuc.edu


  reply	other threads:[~1998-06-29 23:04 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1998-06-29 20:26 Timothy J Luoma
1998-06-29 21:35 ` Sweth Chandramouli
1998-06-29 22:31   ` Bart Schaefer
1998-06-29 22:58     ` Geoff Raye [this message]
1998-06-29 21:41 ` Bart Schaefer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=199806292258.RAA15514@watts.neog.com \
    --to=raye@watts.neog.com \
    --cc=raye@neog.com \
    --cc=zsh-users@math.gatech.edu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).