简体   繁体   中英

Gitlab - SSH KEY doubdt

although I know that this is my first question within Stack overflow so I will try to be as consist as possible, I continue.

Within where I work, I am in charge of implementing and training the development team to use tools related to git, within the same we use gitlab, a tool in which until now I have learned to move but as every human being I had to adapt, what that now has become a stone in the shoe has been everything related to ssh keys to be able to access the repositories of the company, my doubt is regarding that, I know that every time you create a gitlab repository you recommended create a key ssh, I already create one, so, every time I use the first repository that I create, I do not have a problem when doing commits, push, pull, or all the other related commands, but when I want to use or clone another repository for console, I miss the error "git@gitlab.com: Permission denied (publickey). fatal: Could not read from remote repository. "

So my question is, every time I create a new repository, clone, or any other referral, I will have to be creating a new ssh key ?? .. can not create one for everything? ... These have expiration date ?? ... or that .... I ask for help from the most experienced to see if you can clarify this doubt .. thank you very much in advance I read them !! Thank you !!

First of all, welcome on SO.

No , you don't need to create an SSH key for each project / repository.

Once you've created an SSH key and added it to your Gitlab account, you'll just have to add user permission to manage new repositories.

项目中的 Gitlab 用户

Here is something that can be useful to you : Gitlab permissions

These have expiration date ??

Actually, with GitLab 12.10 (April 2020), the SSH keys can have an expiration date:

Optional SSH key expiration date

Compliance-minded organizations need a way to control SSH credential access to their GitLab environment.

SSH keys are normally configured without expiration dates.
This is problematic for organizations with access management and/or credential management policies, which require an expiration date on all access credentials.

With this release, GitLab supports expiration dates for SSH keys that users can set within the GitLab UI.

https://about.gitlab.com/images/12_10/optional-ssh-key-expiration.png

See Documentation and Issue .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM