[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: ssh ip address



"Eduardo J. Gargiulo" <ejg@linux2.net.ar> 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

Try running this:

	ssh server printenv

and see what's in there.  For at least some versions of ssh server, the
SSH_CLIENT environment variable will be present.

Scott



Reply to: