You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.cp ~/.ssh/id_rsa.pub authorized_keys chmod 600 authorized_keys
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
:grep DATABASE_URL /home/wodby/.ssh/environment # DATABASE_URL=postgresql://user:password@host:5432/mydb?serverVersion
The text was updated successfully, but these errors were encountered: