centos - git clone a repository with user different than my linux user -
i trying clone git repository configured in gitlab vm. can clone computer, cannot clone vm although using same key.
the linux session user in computer xx user name configured in git, , linux session user in vm yy.
the question - can make work ? clone session user not configured in git ? can somehow supply user , key?
i've tried create user xx in vm , there clone same key configured in ~/.ssh , worked.
since username used on gitlab server handles ssh session git , has nothing username use yourself, should work fine.
the url of remote git@server.com:/... both. gitlab determines gitlab account use ssh key use. if use same ssh key both linux user accounts (or different keys both added same gitlab user), wil use same gitlab user account.
Comments
Post a Comment