charmbracelet / soft-serve

The mighty, self-hostable Git server for the command line🍦
MIT License
5.2k stars 132 forks source link

Error: User not found #461

Open Sebagabones opened 8 months ago

Sebagabones commented 8 months ago

Hi, on a fresh install of soft server on Fedora Server, after setting SOFT_SERVE_INITIAL_ADMIN_KEYS='<contents of my pubkey' when I try to run ssh -i <path to my key> -p 23231 localhost user I get Error: user not found

To Reproduce Steps to reproduce the behavior:

  1. Follow the steps in the readme for installing on fedora server
  2. run SOFT_SERVE_INITIAL_ADMIN_KEYS='<contents of my pubkey'
  3. run soft serve (I have tried using the default location and a different location on different installs)
  4. open a new shell on the same machine (when I ran this as a systemd service I ignored this step)
  5. run ssh -i <path to my key> -p 23231 localhost user
  6. Error: user not found returned

Environment (please complete the following information):

Additional context I have tried installing this a few times, and have also tried hosting it on a domain instead of locally, which returns the same error, although if I run ssh -i <path to my key> -p 23231 localhost I do get into the tui interface of soft serve

I have also tried running this as a systemd service and putting the enviroment admin keys command in there, as well as adding ssh keys to the additional ssh keys in the config.yaml with the same issue

Sorry if the formatting/anything else is wrong, this is the first time I've rasied a github issue

Thanks!

Piker98988 commented 3 weeks ago

Hey! There is another issue open like yours. Let me link it: https://github.com/charmbracelet/soft-serve/issues/497 I'm having the same issue, I'm trying to look into it but i don't know much of what's going on with it...