Re: Getting remote user and remote host
From: Nico Kadel-Garcia (nkadel_at_comcast.net)
Date: 11/10/03
- Next message: a2zasics: "X window on ssh"
- Previous message: Simon Tatham: "Re: PuTTy escape sequence"
- In reply to: Michael Heiming: "Re: Getting remote user and remote host"
- Next in thread: Michael Heiming: "Re: Getting remote user and remote host"
- Reply: Michael Heiming: "Re: Getting remote user and remote host"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Sun, 9 Nov 2003 21:19:30 -0500
"Michael Heiming" <michael+USENET@www.heiming.de> wrote in message
news:dqajob.tqp.ln@news.heiming.de...
> Thomas Guettler <guettli@thomas-guettler.de> wrote:
> > Hi!
>
> > There is a remote account which is used
> > by serveral people.
>
> > Is there a way to distinguish between the remote
> > users?
>
> > It would be nice to have environment variables like:
>
> > SSH_REMOTE_USER and SSH_REMOTE_HOST
>
> You just need to setup accounts for each user, it's
> a rather bad idea to use a shared account and now
> blame ssh for your wrong usage of unix.
There are numerous compelling reasons to do this, usually involving shared
access to special user privileges on that specific server.
Do your users come from specific hosts? A .bashrc could read the connecting
hostname and set some things per that information, or maybe you can play
some games in your .profile or .cshrc to get such information?
- Next message: a2zasics: "X window on ssh"
- Previous message: Simon Tatham: "Re: PuTTy escape sequence"
- In reply to: Michael Heiming: "Re: Getting remote user and remote host"
- Next in thread: Michael Heiming: "Re: Getting remote user and remote host"
- Reply: Michael Heiming: "Re: Getting remote user and remote host"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|