Replies: 1 comment
-
Can you try removing bind-addr: 127.0.0.1:8080
auth: password
hashed-password: "$argon2i$v=19$m=4096,t=3,p=1$5m485GeqM1gr8bULyDwXJA$RBqVHndX0sOo3V6TyVLrb7SVjKiwHjocFUvkoGq2GUE"
cert: false |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm using a docker container with the image from lscr.io/linuxserver/code-server
I compute the hashed password like this:
print -n "thisismypassword" | npx argon2-cli -e
And get the output:
$argon2i$v=19$m=4096,t=3,p=1$5m485GeqM1gr8bULyDwXJA$RBqVHndX0sOo3V6TyVLrb7SVjKiwHjocFUvkoGq2GUE
To make sure the value is passed on to the docker container I have to double the dollar sign:
$$argon2i$$v=19$$m=4096,t=3,p=1$$5m485GeqM1gr8bULyDwXJA$$RBqVHndX0sOo3V6TyVLrb7SVjKiwHjocFUvkoGq2GUE
And I configure the container as follows:
Everything boots up pretty well but when I type in "thisismypassword" (without quotes, of course) I get an incorrect password error. I also tried setting the
HASHED_PASSWORD
in thedocker-compose.yaml
without quotes. Same issue.Diving into the container
docker exec -it code-server /bin/sh
I get the following:So the password looks good and the value in
config.yaml
is:I can't tell the password set is the correct one.
Other info: I'm computing the hash password on my Mac and using it on an Ubuntu distro running docker. But I'm assuming where the hash is calculated doesn't have impact.
Beta Was this translation helpful? Give feedback.
All reactions