repository - Git: gitolite have mess things up? working on two different servers -
i new in using git, here context: in situation in work on 2 projects stored in different repositories on different servers. on both servers used gitolite handle administration on repositories.
when had 1 project handle push commits server command: git push --all git@myserver1.com:project1
, ok. now, when handle 2 projects, thought should ok, if using same command, changing server name , project, deploy on server.
however not ok, when write git push --all git@myserver2.com:project2
(i running command root folder of project) asking me password: git@myserver2.com's password:
, after type password get: permission denied (publickey,password).
behavior not right because have set public key on second server.
i don't know problem, maybe gitolite have mess things up? combining on pc configuration 2 servers?
when write
git push --all git@myserver2.com:project2
(i running command root folder of project) asking me password.
that means public key hasn't been pushed gitolite repo of myserver2
.
need add local gitolite-admin
repo, in keydir
directory, , push repo myserver2
, in order gitolite add .ssh/authorizedkeys
file.
for myserver1 or myserver2, need able type:
ssh git@myserver2.com
and have gitolite acl displayed.
if don't see rights (if need enter password), still wrong.
Comments
Post a Comment