jenkinsからgithubに接続しようとすると、以下のエラーが発生します。
-----
Failed to connect to repository : Command "hoge\bin\git.exe ls-remote -h
g...@github.com:hoge/hoge.git HEAD" returned status code 128:
stdout:
stderr: Warning: Permanently added '
github.com,000.000.000.000' (RSA) to the list of known hosts.
Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
-----
そこで、ssh pluginとssh agent pluginをインストールし、ジョブの[SSH Agent]に[Credentials]を設定しようとすると、以下のメッセージが表示されます。
-----
sshを介してビルドの前後にシェルスクリプトを遠隔実行することができます。まず、Jenkinsのシステム設定でSSHホストを定義してください。設定すると、設定済みのホストが選択リストの中に現れます。
-----
ところが、[システムの設定]の[SSHリモートホスト]で以下のエラーが発生します。
※githubは使っていて、ユーザー名、パスフレーズは正しいです。
-----
Can't connect to server
-----
genkinsからgithubにアクセスする際にssh keyで認証させるにはどうしたらよいのでしょうか。
なお、windows 7にjenkinsをインストールし、Winstoneのままです。
また、githubにはssh keyを登録しており、eclipseから普通に使えています。
ご教示いただけると助かります。