enclave
Goto Top

Problem mit Git ein repository via SSH von Linux auf Windows XP klonen

Hallo alle zusammen,

habe mir gerade mal das Versionkontrollsystem Git angesehen und wollte es gerne mal erproben.
Ich habe also auf meinem Root ein repository angelegt. Wenn ich von einem anderen Rootserver klonen will mache ich einfach:

ppps-debian-02-d0:~# git clone ssh://git-redmine-admin@redmine.p[...]n.de:7743/repos/redmine.git
Initialized empty Git repository in /root/redmine/.git/
The authenticity of host '[redmine.p[...]n.de]:7743 ([78.XX.XX.162]:7743)' can't be established.
RSA key fingerprint is 31:cb[...]cc:9e.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '[redmine.p[...]n.de]:7743,[78.XX.XX.162]:7743' (RSA) to the list of known hosts.
git-redmine-admin@redmine.p[...]n.de's password:

Dann gebe ich das Passwort ein und alles ist in Butter, das repository wird geklont und ich kann es wieder zurückpushen...

Von Windows allerdings sieht das Spielchen anders aus:

git clone ssh://git-redmine-admin@redmine.p[...]n.de:7743/repos/redmine.git
Initialized empty Git repository in D:/home/chaos/desktop/redmine/.git/
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 2048 31:cb[...]cc:9e.
Connection abandoned.
fatal: The remote end hung up unexpectedly

Was kann ich da machen? Und weiß zufällig jemand wie ich ein zentrales Git repository erstelle bzw. das die geklonten etwas vom master repository wissen...


Schöne Grüße,

Enclave

Content-Key: 135893

Url: https://administrator.de/contentid/135893

Ausgedruckt am: 28.03.2024 um 13:03 Uhr

Mitglied: azzurro
azzurro 14.02.2010 um 13:52:41 Uhr
Goto Top
aber sonst kannst du per ssh auf den Server (unter Windows)?
Mitglied: Enclave
Enclave 14.02.2010 um 13:59:55 Uhr
Goto Top
Ja wenn ich beispielsweise via Putty auf den Server gehe (war schon auf der gleichen IP) werde ich gefragt ob ich den Key akzeptieren will und danach kann ich ganz normal mit ssh arbeiten...


Enclave
Mitglied: dog
dog 14.02.2010 um 14:34:01 Uhr
Goto Top
30 Sek. bei Dr. Google:

http://drewblas.com/category/git/

Open putty
In the Hostname box, type github.com and click Open
You’ll receive a prompt The server’s host key is not cached in the registry. Click Yes then close Putty (don’t bother trying to log in)
Github’s host key will now be cached
Launch Pageant – This step must be repeated any time you restart your computer. Pageant must be running anytime you want to connect to github! It’s advisable to close it when you’re not using it, as any other program on your computer could use your private key for any purpose while Pageant is running.
Run Pageant (in the Putty directory on the start menu)
In your system tray you now have an icon of a computer with a black top-hat. Double-click it
Click Add Key, find your private key that you saved above and open it. If you password protected it, you’ll enter the password here
Click Ok. Pageant will remain in the system tray ready to provide your private key to Git.
Mitglied: Enclave
Enclave 14.02.2010 um 15:43:52 Uhr
Goto Top
Mächtig umständlich :/ Teste ich mal aus aber ich benutze kein github...


Mfg

Enclave