0

リモート GIT リポジトリ (ubuntu) があり、Windows 7 でローカルに作業しています。これがうまく機能し、SSH キーをセットアップしました。このプロセスのある時点で、パスワードを要求する GIT/msysgit を無効にしたようです。キーをセットアップせずに新しいリモート git リポジトリ (ubuntu 上) を作成しましたが、パスワードを要求されることはありません。私は試した

git clone ssh://<user>:<pass>@<ip>:<myport>/mygitrepopath

それも機能しません。しかし、同じ資格情報でパテを使用してログインできます。

編集

これが私に与えられたメッセージです

Cloning into 'myhub'...
The server's host key is not cached in the registry. You
have no guarantee that the server is the computer you
think it is.
The server's rsa2 key fingerprint is:
ssh-rsa blah blah blah
Connection abandoned.
fatal: The remote end hung up unexpectedly
4

1 に答える 1

0

URLでは使用ssh://しないと思います。user:password@host

ファイルを削除してknown_hostsもうまくいかない場合 ( rm ~/.ssh/known_hosts)、そのファイルに行を追加してみてくださいssh-rsa blah blah blah(削除したばかりの場合は作成してください)。

それは役立つはずです。

git/ssh が不明なホストとの接続を中止しないようにするオプションがあるはずですが、私にはわかりません。

于 2012-12-13T01:41:15.853 に答える