-
Notifications
You must be signed in to change notification settings - Fork 191
Open
Description
Describe the bug
After creating a user, I can call info successfully on the server that runs soft-serve, but when calling it from a remote host, I get Error: user not found
To Reproduce
Steps to reproduce the behavior:
On server A:
- start soft-serve using docker
services:
soft-serve:
image: charmcli/soft-serve:latest
container_name: soft-serve
volumes:
- ./data:/soft-serve
ports:
- 2222:23231
- 23232:23232
- 23233:23233
- 9418:9418
env_file:
- .env
restart: unless-stopped- validate admin works
❯ ssh localhost -p 2222 info
Username: admin
Admin: true
Public keys:
ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIEizP6Nzr/jw05DLDYEdOeWOraXzHrBcuJAc8+jjx7Bw- create test user and validate
❯ ssh-keygen -t ed25519 -C '' -N '' -f ./id_ed25519
❯ ssh localhost -p 2222 user create mytest "-k '$(cat id_ed25519.pub)'"
# using server A's IP instead of `localhost` works as well
❯ ssh localhost -p 2222 -i id_ed25519 info
Username: mytest
Admin: false
Public keys:
ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIKaWLByd3F0dZJXk5t+zMpLVDra0s5x1YsPE52B5Vs0+On server B:
- validate connection works
❯ ssh <server-A-ip> -p 2222 help
Soft Serve is a self-hostable Git server for the command line.
Usage:
ssh -p 23231 localhost [command]
Available Commands:
help Help about any command
info Show your info
jwt Generate a JSON Web Token
pubkey Manage your public keys
repo Manage repositories
set-username Set your username
settings Manage server settings
token Manage access tokens
user Manage users
Flags:
-h, --help help for this command
Use "ssh -p 23231 localhost [command] --help" for more information about a command.- copy id_ed25519 from server A and call
info, see error
❯ ssh <server-A-ip> -p 2222 -i id_ed25519 info
Error: user not foundExpected behavior
should get same behavior
Screenshots
If applicable, add screenshots to help explain your problem.
Environment (please complete the following information):
- OS: [e.g. Linux]
- Terminal [e.g. kitty, iterm2, gnome-terminal]
- Version [e.g. v0.4.0]
Additional context
I have tried solution from similar issue #497 (comment)
❯ ssh <ip> -p 2222 -i id_ed25519 -o IdentitiesOnly=yes info
Error: user not foundMetadata
Metadata
Assignees
Labels
No labels