Questions tagged «identity-management»

2
如何停止ssh提供错误的密钥?
(这是ssh的问题,不是gitolite的问题) 我在家庭服务器(ubuntu 12.04服务器,open-ssh)上配置了gitolite。我想要一个特殊的Identityfile来管理存储库,因此我需要使用两个不同的身份密钥通过ssh访问我自己的主机。 这是我的.ssh / config文件的内容: Host gitadmin.gammu.com User git IdentityFile /home/alvaro/.ssh/id_gitolite_mantra Host git.gammu.com User git IdentityFile /home/alvaro/.ssh/id_alvaro_mantra 这是我的主机文件的内容: # Git 127.0.0.1 gitadmin.gammu.com 127.0.0.1 git.gammu.com 因此,我应该能够通过这种方式与gitolite进行通信,以使用“普通”帐户进行访问: $ssh git.gammu.com 以及使用管理帐户进行访问的方式: $ssh gitadmin.gammu.com 当我尝试使用普通帐户访问时,一切正常: alvaro@mantra:~/.ssh$ ssh git.gammu.com PTY allocation request failed on channel 0 hello alvaro, this is gitolite 2.2-1 (Debian) running …
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.