Re: ssh ip address
see the SSH_CLIENT environment variable.
(set | grep SSH) for bash (w/o the parenthesis)
(setenv | grep SSH) for tcsh and csh (w/o the parenthesis)
Also, look into getting an account with dyndns so you will have a static
FQDN but a dynamic IP that can be looked up.
-rishi
On Tue, 19 Feb 2002, Eduardo J. Gargiulo wrote:
> Hi all.
>
> Is there any way to obtain the IP address of a ssh client and use it on
> a shell script? I want to put a crontab like
>
> ssh server script
>
> but I need the IP address i'm connecting from in the shell script and
> the address is assigned dynamically.
>
> thanks
>
> ~ejg
>
>
> --
> To UNSUBSCRIBE, email to debian-security-request@lists.debian.org
> with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
>
Reply to: