I have an instance on Google computer engine, and i have exported environment variable running $ export my_token=my_token
. Everything is fine, it prints my_token
running
$ echo $my_token
.
But after closing ssh connection and reconnect to my instance and I try again to run echo $my_token
, it prints nothing. Therefore I guess I've lost the exported environment variable after closing ssh.
- How can i keep my environment variable even after closing ssh on a Google Compute Engine Instance?