ジェンキン(ci-server)と私のgitリポジトリの両方が同じサーバー上でホストされています。 git repoは、gitoliteによって制御されます。私は私のワークステーションから、たとえば、外部からリポジトリにアクセスした場合、私は戻ってサーバーに今(...警告PTY以外)gitolite:チャネル0でPTY割り当て要求が失敗しました
結構です
ssh [email protected]
PTY allocation request failed on channel 0
hello simou, this is [email protected] running gitolite3 v3.0-12-ge0ed141 on git 1.7.3.4
R W testing
Connection to arrakis closed.
は、私は推測を取得、私が欲しいですjenkinsも私のgitリポジトリに接続することができます。ユーザーのgit(gitoliteユーザー)としてarrakisへのログオン
[email protected]:~> ssh [email protected]
gitolite: PTY allocation request failed on channel 0
は:
[email protected]:~> cat ~git/.ssh/authorized_keys
command="/home/git/gitServer/gitolite/src/gitolite-shell jenkins",no-port-forwarding,no-x11-forwarding,no-agent-forwarding,no-pty ssh-rsa <PUBLIC-KEY> [email protected]
"無PTY" のエントリは、私が不審作ったので、私はauthorized_keysにからそれを削除して、再度試してみました:
[email protected]:~> ssh [email protected]
hello jenkins, this is [email protected] running gitolite3 v3.0-12-ge0ed141 on git 1.7.3.4
R W testing
Connection to arrakis closed.
これは私の問題をこの時点で解決しますが、「no-pty」を削除した結果についてはわかりません。
リモートアクセスにはまったく影響がないように見えるため、なぜローカルアクセスにのみ影響しますか?
のopenSUSE 11.4(x86_64版) VERSION = 11.4 CODENAME =セラドン
非常に有益です。 +1 – VonC
非常に徹底的な答え、よく説明されて...非常に感謝! – simou
私のサーバーは** OpenSSH_5.8p1 **、OpenSSL 1.0.0cは2010年12月2日、デスクトップPCは** OpenSSH_5.9p1 **、OpenSSL 0.9.8tは1月18日を使用しています。 。私は裸のgitコミュニケーションに否定的な副作用がない "no-pty"についてのあなたのstatemantについてはわかりませんが。私は、サーバー接続が中止されたために私のジェンキンスビルドが失敗したため、この問題を偶然見つけました。 「no-pty」エントリを削除すると、問題は消えました。多分、犯人はjenkins git pluginを設定するために使われたリポジトリURL git @ arrakis:myprojectです。 – simou