Source Path/URL: Key in IP_ADDR: path_of_repository in Source path/URL.Tools => Options => General => SSH Client: please choose “PuTTY/Plink” 4.2 Press “Clone/New” Please confirm SourceTree use PuTTY as SSH client It is time to clone a repository 4.1 Use PuTTY as SSH client You see this error message because shell access is disabled by Gitosis. If you see the following error message, your SSH connection is ok. Please make sure pageant is launched and your SSH private key is loaded. If you are asked to key in password, this is incorrect. Please choose “Never” in “Close window on exit” for debug purpose Key in IP_ADDR in “Host Name”, where git is the user name of ssh server and IP_ADDR is the IP address of SSH server.These information could be found when you generate the key described above. From left to right are key type, Number of bits in a generated key, key fingerprint, key comment. You could also choose “view keys”, and you will see the following information. If you need to load more keys, go to windows system tray and right-click mouse, choose “add key”, select the *.ppk file and key in the passphrase. After you key in passphrase, the private key is decrypted and stay in memory of your local machine. Remember, the SSH private key is encrypted by the passphrase. Please click “yes”, select the *.ppk file and key in the passphrase. If purplearrow is the right person, you need to $ sudo -H -u git gitosis-init “Launch SSH agent” When you initialize the Gitosis, you need the public key of the user who has read/write permission to the repository: gitosis-admin. $ cat /tmp/id_ > /home/git/.ssh/authorized_keys 2.2 Initialize Gitosis You need to append the id_ to the file: /home/ git/.ssh/authorized_keys. In other words, other users will login as “git” using SSH protocol. 2.1 Fundamental methodĪssuming you create the user “git” to initialize the repository. There is only one line in your public key, and let’s name the file as id_.Īssuming you are the GIT administrator, there are three scenario to put the public key to GIT server. Copy the string “ssh-rsa AAAAB3…” to another file and send this file to the GIT administrator. You could find the public key in the dialog above. You need to put the public key on GIT server, and the GIT server will consider the user who has the corresponding private key as a authorized user. Actually, you need to save the public key to GIT server. This is why I strongly suggest you to encrypt this file via a passphrase. As long as you login on GIT server using SSH protocol, you need that file to convince the server whom you are. You need to store your private key in your local machine. Click “Save private key” to save as *.ppk.You can modify “Key comment” to increase readability.After key generation, it is highly recommended to key in “Key passphrase” and “Confirm passphrase”. You will be asked to move your mouse across the blank region.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |