I found this topic/thread but my issue is not RC being run by the wrong user. My SSH clone URL looks like this:
ssh://firstname.lastname@example.org/another-test and access is denied.
However, HTTP cloning works just fine.
My public keys are in my RC config file as well. Here is the content from
Jul 21 01:52:05 CODE sshd: Accepted publickey for root from [REDACTED] port 50481 ssh2: RSA SHA256:qwerty Jul 21 01:52:05 CODE sshd: pam_unix(sshd:session): session opened for user root by (uid=0) Jul 21 01:52:05 CODE systemd-logind: New session 1607 of user root. Jul 21 01:52:06 CODE sshd: Received disconnect from [REDACTED] port 50481:11: disconnected by user Jul 21 01:52:06 CODE sshd: Disconnected from user root [REDACTED] port 50481 Jul 21 01:52:06 CODE sshd: pam_unix(sshd:session): session closed for user root Jul 21 01:52:06 CODE systemd-logind: Removed session 1607.
Not quite sure what I’m doing wrong.
/root/.rccontrol/community-1/rhodecode.ini I see this in the SSH section:
## AuthorizedKeysFile %h/.ssh/authorized_keys %h/.ssh/authorized_keys_rhodecode ssh.authorized_keys_file_path = ~/.ssh/authorized_keys_rhodecode
Should I be using
EDIT 2: Nvm,
rccontrol status doesn’t like that…
RHODECODE CONTROL VERSION: 1.23.0 Failed to parse /root/.rccontrol/community-1/rhodecode.ini Invalid line ('AuthorizedKeysFile %h/.ssh/authorized_keys %h/.ssh/authorized_keys_rhodecode') (matched as neither section nor keyword) at line 589.