Re: ssh ip address
Try just doing an `echo $SSH_CLIENT`. Depending on your version, you may
need split the output up a bit...
--Rich
"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
--
_________________________________________________________
Rich Puhek
ETN Systems Inc.
_________________________________________________________
Reply to: