Re: empty $SSH_CLIENT

From: richard lucassen (spamtrap@lucassen.org)
Date: 01/15/03


Date: Wed, 15 Jan 2003 14:18:05 +0100
From: richard lucassen <spamtrap@lucassen.org>

On Wed, 15 Jan 2003 12:18:52 +0100
richard lucassen <spamtrap@lucassen.org> wrote:

> On Wed, 15 Jan 2003 10:37:53 +0100
> richard lucassen <spamtrap@lucassen.org> wrote:
>
> > openssh-3.4p1-1
> >
> > When using an rsa login that runs a command from the
> > ~/.ssh/authorized_keys file, on a machine running
> > RedHat-6.2/2.4-kernel, the $SSH_CLIENT is ok, but on a newer machine
> > RH-7.1/k2.4 the$SSH_CLIENT is empty.
> >
> > $ cat ~.ssh/authorized_keys
> > command="~/script",no-port-forwarding,no-X11-forwarding,no-agent-fo
> > rw ar ding,no-pty ssh-rsa AAAAB....[big snip]....MzKF17xWzW8rwoPM=
> > user@host
> >
> > Anyone a hint?
>
> It's bash:
>
> This document details the changes between this version,
> bash-2.04-devel, and the previous version, bash-2.03-release.
> The SSH_CLIENT environment variable is no longer auto-exported.

For those who will be googling for a solution:

add

export SSH_CLIENT=${SSH_CLIENT}

in ~/.bashrc

R.

-- 
___________________________________________________________________
Recursion: see recursion
+------------------------------------------------------------------+
| Richard Lucassen, Utrecht,    Linux 2.4.20 RedHat 7.2            |
| The Netherlands               i686/1200MHz/768MB                 |
| Public key: http://www.xs4all.nl/~pe1bbf/pubkey.asc              |
+------------------------------------------------------------------+


Relevant Pages

  • Re: empty $SSH_CLIENT
    ... > $ cat ~.ssh/authorized_keys ... > Anyone a hint? ... It's bash: ... Recursion: see recursion ...
    (comp.security.ssh)
  • Re: The meaning of $$.
    ... bash: 5444: command not found ... Any hints on the meaning of $$? ... here's a hint, try this and compare the results: ...
    (comp.unix.shell)
  • Re: Simple recursion problem. Need help.
    ... I *did* use google and other search engines to find out anything even a HINT of how i'm supposed to solve this problem. ... this isn't a typical java problem. ... this is a question about recursion. ... asking anyone here to do my homework, as Thomas seems to be implying. ...
    (comp.lang.java.programmer)
  • chown/chgrp -R : Permission denied
    ... When I use an local admin account to recursively use chown and chgrp ... command, presumably because command cannot descend into the ... not all at once using recursion? ...
    (comp.unix.questions)
  • Re: ld : cannot find entry symbol _start Linux gcc 2.96
    ... that your actual command line ... project is using extremely weird naming convention. ... generated dependency files, your project is using "normal" naming ... In order to understand recursion you must first understand recursion. ...
    (comp.os.linux.development.apps)