Create Git Server from my NAS
- Johnas Lee
- Jan 22, 2021
- 1 min read
Recently I am creating a git server in my NAS by following the tutorial here:
I have stuck in mainly two errors and I want to jot it down once I need to create another repository:
Permission problem when pushing the commit:
! [remote rejected] master -> master (failed to update ref)Do NOT use the command:
git --bare init xxx.gitbut creating the base directory by yourself and use simply bare init:
mkdir xxx
cd xxx
git --bare initSSH connection problem:
kex_exchange_identification: read: Connection reset by peerThis is simply because your NAS blocked your connection due to too many attempts of filling wrong password...
Go to your NAS Control Panel -> Security -> Account, press Allow/Block List and remove the Blocked IP.


Comments