theOGognf / private_poker

A poker library, server, client, and TUI.
Apache License 2.0
61 stars 1 forks source link

Can't add ssh keys #23

Closed adhi-thirumala closed 1 month ago

adhi-thirumala commented 1 month ago

After running ssh -i ~/.ssh/poker_id_rsa -o SendEnv=PUBLIC_KEY -p 9090 username@hostname *removed username and hostname from command for security i get the following output

/usr/local/bin/claim_user: line 10: can't create /home/foo/ssh/authorized_keys: nonexistent directory Connection to hostname closed.

adhi-thirumala commented 1 month ago

another odd issue that seems to not make a difference is that doing docker inspect --format='{{.NetworkSettings.IPAddress}}'poker does not get me anything even though I have initialized the container with docker run -d --name poker -p 9090:22 --rm ognf/poker:latest

theOGognf commented 1 month ago

What OS is the host? Can you provide the output of docker exec poker ./create_user $username as well? PS your username is showing in your path if that matters (I edited it out)

theOGognf commented 1 month ago

Assuming this is resolved since I can't reproduce