Git Mirroring on other Servers

Sebbo
Sebbo
Hello everybody, first of all, I´m from Germany, so I apologize for my bad english grammar. Here´s the situation: We got one master-server running git with gitolite and a slave-master running git with gitolite, too. This setup works fine. nNw I´ve got a new server, which should be the new master-server in a few weeks, but first it works as a slave. I edit the config-file in .ssh from user "git" and add the entry for the new slave-server on the master-server and the other slave-server. I generated a new pair of ssh-keys on the new slave-server and copy it to the other server. When I run on the new slave-server the command "ssh master-server info" I got an answer like "hello master-server, this is ... . But when I try to run this command on master-server, the server aks me for a password for user "git". It doesn´t work, even with the right password from new slave-server. Output: File: dir, Node: Top This is the top of the INFO tree This (the Directory node) gives a menu of major topics. Typing "q" exits, "?" lists all Info commands, "d" returns here, "h" gives a primer for first-timers, "mEmacs" visits the Emacs manual, etc. In Emacs, you can click mouse button 2 on a menu item or cross reference to select it. * Menu: Basics * Common options: (coreutils)Common options. * Coreutils: (coreutils). Core GNU (file, text, shell) utilities. * Date input formats: (coreutils)Date input formats. * Ed: (ed). The GNU line editor * File permissions: (coreutils)File permissions. I search through the internet for an right answer, but nothing helps. I hope, that somebody could help me. If you need any informations, I will give it to . Thanks.

Last updated

Sebbo
Sebbo
Hi orbrey, yes, I mean the command "ssh new-slave-server info. Every server got the private and the public keys of each other server. I don´t edit ssh config on the new slave-server.
Sebbo
Sebbo
I can´t ssh from master-server to new-slave-server, nor from slave-server to new-slave-server
Sebbo
Sebbo
Hello, OpenSSH is running on every Server, which is in use. We got no intern Firewall or anything else. If I try to ssh from the new slave-server to master-server with "ssh master-server" (with user "git") theres entry on master-server like this: tail -f /var/log/auth.log Aug 22 13:20:15 zerberus sshd[COLOR=#666666][[/COLOR]2338[COLOR=#666666]][/COLOR]: Accepted publickey [COLOR=#007020][B]for [/B][/COLOR]git from 192.168.1.62 port 60940 ssh2: RSA 06:da:04:d9:e6:68:7d:5e:37:0c:93:55:6e:61:e4:5a Aug 22 13:20:15 zerberus sshd[COLOR=#666666][[/COLOR]2338[COLOR=#666666]][/COLOR]: pam_unix[COLOR=#666666]([/COLOR]sshd:session[COLOR=#666666])[/COLOR]: session opened [COLOR=#007020][B]for [/B][/COLOR]user git by [COLOR=#666666]([/COLOR][COLOR=#BB60D5]uid[/COLOR][COLOR=#666666]=[/COLOR]0[COLOR=#666666])[/COLOR] Aug 22 13:20:15 zerberus [COLOR=#666666][[/COLOR]mark[COLOR=#666666]][/COLOR]systemd-logind[COLOR=#666666][[/COLOR]1052[COLOR=#666666]][/COLOR]: Removed session 433.[COLOR=#666666][[/COLOR]/mark[COLOR=#666666]][/COLOR] Aug 22 13:20:15 zerberus [COLOR=#666666][[/COLOR]mark[COLOR=#666666]][/COLOR]systemd-logind[COLOR=#666666][[/COLOR]1052[COLOR=#666666]][/COLOR]: New session 434 of user git.[COLOR=#666666][[/COLOR]/mark[COLOR=#666666]][/COLOR] Aug 22 13:20:16 zerberus sshd[COLOR=#666666][[/COLOR]2388[COLOR=#666666]][/COLOR]: Received disconnect from 192.168.1.62: 11: disconnected by user Aug 22 13:20:16 zerberus sshd[COLOR=#666666][[/COLOR]2338[COLOR=#666666]][/COLOR]: pam_unix[COLOR=#666666]([/COLOR]sshd:session[COLOR=#666666])[/COLOR]: session closed [COLOR=#007020][B]for [/B][/COLOR]user git The Session was closed before I got on the master-server...

1-8 of 8

Reply to this discussion

You cannot edit posts or make replies: You should be logged in before you can post.

Post a reply
261 views