SSH and passing parameters <KSH Solaris>
Dominic.Searle_at_gmail.com
Date: 05/27/05
- Next message: Per Hedeland: "Re: OpenSSH ssh-keygen and non-empty passphrase"
- Previous message: bnies_at_bluewin.ch: "Re: OpenSSH ssh-keygen and non-empty passphrase"
- Next in thread: Richard E. Silverman: "Re: SSH and passing parameters <KSH Solaris>"
- Reply: Richard E. Silverman: "Re: SSH and passing parameters <KSH Solaris>"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
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
- Next message: Per Hedeland: "Re: OpenSSH ssh-keygen and non-empty passphrase"
- Previous message: bnies_at_bluewin.ch: "Re: OpenSSH ssh-keygen and non-empty passphrase"
- Next in thread: Richard E. Silverman: "Re: SSH and passing parameters <KSH Solaris>"
- Reply: Richard E. Silverman: "Re: SSH and passing parameters <KSH Solaris>"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|