redmine_git_mirror icon indicating copy to clipboard operation
redmine_git_mirror copied to clipboard

Add ssh key

Open camlafit opened this issue 5 years ago • 2 comments

Hello

Could be nice to add an option to define a ssh key by repository.

Thanks a lot

camlafit avatar Mar 03 '20 14:03 camlafit

You should be using the system wide ssh key. There is no added value in having different private keys for each repository. The private key identifies your redmine as a whole. If you really need different keys for repositories, the only way is to have a .ssh/config

flozzone avatar Feb 16 '21 18:02 flozzone

Hello

git provide core.sshcommand to define repo by repo any ssh configuration as key.

[core]
        sshcommand = /usr/bin/ssh -i /var/www/repo/.ssh/id_rsa

https://git-scm.com/docs/git-config#Documentation/git-config.txt-coresshCommand

camlafit avatar Feb 26 '21 17:02 camlafit