Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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?

share|improve this question

1 Answer 1

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'

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.