SSH and passing parameters <KSH Solaris>

Dominic.Searle_at_gmail.com
Date: 05/27/05


Date: 27 May 2005 10:52:57 -0700

Hi,

Does anyone know if it is possible to pass a parameter from a local
shell to a remote shell when you carry out an interactive ssh login.

The reason I ask is if you su to root on your local host a `who am i`
still shows your original username and not root.

When you ssh to a remote host as root however a `who am i` will show
root and not the original user name.
What I would like to do is assign a parameter say USER-LOCAL. When root
then ssh's to a remote server the variable USER-LOCAL is carried from
the local shell to the remote shell. This would then enable me to track
who owned each root session on the remote box.

Thanks in advance,

Dom



Relevant Pages

  • Re: SSH and passing parameters <KSH Solaris>
    ... > shell to a remote shell when you carry out an interactive ssh login. ... > still shows your original username and not root. ...
    (comp.security.ssh)
  • Re: Restricting access to a web server by IP
    ... > remote control clients, etc - we remotely ... > The agrument against is that mpst vulnerabilities seem to come through ... > servers, and blocking access to all IPs accept those on the allowed list - ...
    (comp.security.misc)
  • Re: Restricting access to a web server by IP
    ... > remote control clients, etc - we remotely ... > The agrument against is that mpst vulnerabilities seem to come through ... > servers, and blocking access to all IPs accept those on the allowed list - ...
    (comp.security.firewalls)
  • Re: Restricting access to a web server by IP
    ... > remote control clients, etc - we remotely ... > The agrument against is that mpst vulnerabilities seem to come through ... > servers, and blocking access to all IPs accept those on the allowed list - ...
    (alt.computer.security)
  • Re: smb.conf
    ... I just came across this post and noted you're use of the smb browser. ... does it allow one to actually work with file on remote ... >>Linux machine is located as well as the Samba server, ... > to both machines as root. ...
    (linux.redhat)