The awk script that produces /home/wodby/.ssh/environment breaks lines into parts by equals signs, but does not take third and subsequent parts when printing the output.
That results in all variable contents after first equals sign being lost in SSH sessions. In local shell sessions, the variables are left as defined in environment / env_file.
Environment
Ubuntu 22.04.4
Docker version 26.0.0, build 2ae903e
wodby/php:8.2-dev-4.48.0
The awk script that produces
/home/wodby/.ssh/environment
breaks lines into parts by equals signs, but does not take third and subsequent parts when printing the output.That results in all variable contents after first equals sign being lost in SSH sessions. In local shell sessions, the variables are left as defined in
environment
/env_file
.Environment
Ubuntu 22.04.4 Docker version 26.0.0, build 2ae903e wodby/php:8.2-dev-4.48.0
Steps to reproduce
compose.yml
:id_rsa.pub
toauthorized_keys
in same folder ascompose.yml
and set permissions to 600.sshd
container via SSH and print theDATABASE_URL
variable.Expected output
Actual output
Notes
When executing Bash inside container, the variable is output as defined in
compose.yml
:Also content of
/home/wodby/.ssh/environment
: