I am trying to install gitosis on my server but keep getting the error "Username contains not allowed characters"

sudo -H -u git gitosis-init < /tmp/id_rsa.pub

with the username "abhinav@".

Any fix for this?


This is usually a problem with your 'username' in the id_rsa.pub, open it up, and make the text at the end something like 'alan.pub'

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy