I just generated a public and private key with ssh key gen. I uploaded the public key onto a gitlab (basically a clone of git hub) system for my university and got an email saying that I successfully uploaded the key. When I try to run a git clone command, I get
Cloning into 'csci6990-hci-f13'... ssh_exchange_identification: Connection closed by remote host fatal: The remote end hung up unexpectedly
I am trying to understand if I did everything properly before blaming the git lab system. With that said, when I uploaded a public key onto git lab there were no instructions/steps for telling gitlab where the private key resides in on my mac os x. This makes me think that maybe sshkeygen automatically puts the key into some kind of standard repository location? Is that the case? If not, then how can I upload a public key and have it work without telling the remote system where the corresponging private key sits within the file system?
Edit: this is the output of ssh -vvv
OpenSSH_5.6p1, OpenSSL 0.9.8r 8 Feb 2011 debug1: Reading configuration data /etc/ssh_config debug1: Applying options for * debug2: ssh_connect: needpriv 0 debug1: Connecting to gitlab.cs.uno.edu [220.127.116.11] port 22. debug1: Connection established. debug1: identity file /Users/abramhandler/.ssh/id_rsa type -1 debug1: identity file /Users/abramhandler/.ssh/id_rsa-cert type -1 debug1: identity file /Users/abramhandler/.ssh/id_dsa type -1 debug1: identity file /Users/abramhandler/.ssh/id_dsa-cert type -1 ssh_exchange_identification: Connection closed by remote host