On Tue, 9 Jul 2013 20:30:37 -0500 Chanakya Vattikuti <gk2cveragon1@xxxxxxxxx> wrote: > I get this error message when trying to create a shared ssh key in > Mac osx Lion This problem has nothing to do with Git as it purely is about transferring a public part of your SSH key to another host. So try asking on the OS support channels. > scp .ssh/id_rsa.pub cvattiku@xxxxxxxxxxxxxxx:~/ > ssh_exchange_identification: Connection closed by remote host > lost connection Since the public part of your key is not transferred to that remote host yet, and it is not registered as a trusted key there, you have to use an SSH authentication method other than "publickey". Or, if you have another SSH key which is registered as trusted on the remote host, you might try to use it explicitly using the "-i <private_key_file_>" command-line option to `scp`. If this fails or not applicable, at least try to run `scp` with multiple "-v" command-line options (like `scp -vvvv ...`) to get extensive details about authentication protocols it tried with the server and which of them were agreed upon by both sides and tried. It might turn out that the server only accepts publickey authentication mechanism, and so you are not able to upload and register your public key yourself (chicken and egg problem). In that case, contact the server's system administrator for assistance. If the server has certain "Git hosting" solution like Gitlab, you might need to try registering your key using some other means like logging to your Git account via some web interface and pasting the key there -- just like you'd do this on github. If studying that information won't help you, provide it when you will be asking this question on the Mac OS support channels. -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html