0
我很努力讓我們的Ubuntu TeamCity服務器通過SSH來檢出repos。基本上我的問題是,我會在哪裏指定私鑰密碼?通過SSH在Linux上的TeamCity和Mercurial
在託管teamcity的機器上運行shell並以teamcity運行的用戶身份登錄時,我可以運行hg clone ssh://[email protected]/test
克隆版本庫「test」。但是我必須輸入用戶的私鑰密碼。
我TeamCity的項目設置爲:
- 拉中的更改:HG克隆的ssh://汞@本地/測試
- 密碼(密碼爲私鑰)
單擊「測試連接」結果爲
Test connection failed in Test :: Test 42. '/usr/bin/hg identify ssh://[email protected]/test' command failed.
stdout: remote: Permission denied, please try again.
remote: Permission denied, please try again.
remote: Permission denied (publickey,password).
stderr: abort: no suitable response from remote hg!
是的,作品!謝謝。 PS:我認爲這是相關的: http://youtrack.jetbrains.com/issue/TW-21495 – Tom