How to set environment variable in Yosemite for local ssh sessions
Did you try to add your variable to your .bash_profile: export MYVAR="Whatever"

$ . .bash_profile
$ echo $MYVAR
Whatever
$ ssh localhost
Password:
Last login: Tue Nov 18 18:58:41 2014 from localhost
$ echo $MYVAR
Whatever
$