Monday 15 April 2013

configuration - How to fix URL given after creating a new repo's in gitlab? -


When creating a new project, at the last step, gitlab directs me to set up my repo, but the URL is repo For example, to add remote branch, for example, I found:

  git remote add origin git@git.srv.com: root / home.git   

Note: My zeitab installation is running on a virtual machine with the port 1122 on VM port 22 SA Forwards H requests. Therefore, locally Gitlab Port has reached 22 .

The given URL does not work

pushing

asking for the password, neither does my SSH passphrase nor my account password work:

  git push -u manu master password: password: password: permission denied (publisher, keyboard-interactive). Fatal: remote end hangs unexpectedly   

cloning

same, pointing to a password:

  git clone git @ Git .srv.com: 1122 / root / home.git Clone in 'Home' ... Password:   

Fix URL (add protocol and port)

If I simply add a ssh: // prefix and port to the server (: 1122 / ) everything:

 < Add code> git remote menu ssh: //git@git.srv.com: 1122 / root / homef    

The definitive way to debug this type of SSH access is to have a Sshd -d to launch the session and view the output (this is a debug connection once).

Note that git@git.srv.com: root / home.git is a URL, which means that you have git.srv.com , which can refer to your private key ( IdentityFile ), for example.
You can see its contents to see what's in it's right value (including the right port)

No comments:

Post a Comment