Ethical Hacking

Learn to find vulnerabilities before the bad guys do! Gain real world hands on hacking experience in our state of the art hacking lab. Course designed and taught by expert instructors with years of penetration testing experience. 12 student maximum in every class. Certification attempt included in every package.
Computer Forensics Training at InfoSec Institute

Gain the in-demand skills of a certified computer examiner, learn to recover trace data left behind by fraud, theft, and cybercrime perpetrators. Discover the source of computer crime and abuse at your organization so that it never happens again. All of our class sizes are guaranteed to be 12 students or less to facilitate one-on-one interaction with one of our expert instructors.




Network Security Secure-Shell
[Top] [All Lists]

SSH_ORIGINAL_COMMAND environment variable not set

Subject: SSH_ORIGINAL_COMMAND environment variable not set
Date: Fri, 10 Jun 2005 14:25:43 -0400
SSH_ORIGINAL_COMMAND is not set when I run a command on the ssh command line:

ssh wind env
anner@wind's password:
SHELL=/bin/bash
SSH_CLIENT=::ffff:65.5.196.240 50570 22
USER=anner
MAIL=/var/mail/anner
PATH=/usr/local/bin:/bin:/usr/bin
PWD=/home/anner
SHLVL=1
HOME=/home/anner
LOGNAME=anner
SSH_CONNECTION=::ffff:65.5.196.240 50570 ::ffff:66.45.100.230 22
_=/bin/env
[anner:~] anner% ssh wind export
anner@wind's password:
declare -x HOME="/home/anner"
declare -x LOGNAME="anner"
declare -x MAIL="/var/mail/anner"
declare -x OLDPWD
declare -x PATH="/usr/local/bin:/bin:/usr/bin"
declare -x PWD="/home/anner"
declare -x SHELL="/bin/bash"
declare -x SHLVL="1"
declare -x SSH_CLIENT="::ffff:65.5.196.240 50573 22"
declare -x SSH_CONNECTION="::ffff:65.5.196.240 50573 ::ffff:66.45.100.230 22"
declare -x USER="anner"


$OpenBSD: sshd_config,v 1.69  on redhat ES3

I've read somewhere that I need to force the commands to get that environment variable set? How do I do that?

Anne

<Prev in Thread] Current Thread [Next in Thread>