私は自分の問題を解決できましたが、なぜそれが正常に機能しないのか非常に興味があります。
問題:
エントリ~/.ssh/config
があります:
Host git
HostName git.myserver.com
User gitolite
Identityfile gitolite
その後、ホームディレクトリで実行するssh git
と、次のテキストが返されます(これは通常のことです):
PTY allocation request failed on channel 0
hello myname, this is gitolite@myserver.com running gitolite3 v3.4-3-g797a81f on git 1.7.2.5
R W myrepo1
R W myrepo2
R W .
R W .
R W .
Connection to git.myserver.com closed.
しかしssh git
、ディレクトリから実行している場合/opt/poky
、ファイルで認証できません...または何が問題なのかわかりませんが、結果は次のとおりです。
gitolite@myserver.com's password:
最も興味深いのは、.git/config's
url
変数を からgit:poky
に変更するとgitolite@git.myserver.com:poky
、すべてが正常に機能することです。
gitolite というよりも ssh の問題のようです。
それは何らかの環境変数でしょうか?