Skip to content

Common Issues and How To Fix Them

Anvil Environment Variables are Not Set for Remote Commands

Anvil exports some environment variables to the environment of the processes it executes, including those needed to connect to the API as described in the environment reference. For those to be exported for remote commands the SSH server may need to be configured to specifically allow them. For the OpenSSH server this amounts to adding the following line to the SSH configuration:

AcceptEnv ANVIL_*