SSH_ORIGINAL_COMMAND environment variable not set

From: Anne Ramey (anner_at_blast.com)
Date: 06/10/05

  • Next message: Robert Hajime Lanning: "Re: .Xauthority corruption"
    Date: Fri, 10 Jun 2005 14:25:43 -0400
    To: secureshell@securityfocus.com
    
    

    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


  • Next message: Robert Hajime Lanning: "Re: .Xauthority corruption"