{"thread":{"id":"34395","subject":"Error","startedAt":"2013-07-10T01:30:37Z","lastAt":"2013-07-10T15:15:59Z","messageCount":2,"participants":["Chanakya Vattikuti","Konstantin Khomoutov"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"222989","messageId":"632ECB1A-63EA-4334-8716-53A1F45B6E0B@gmail.com","threadId":"34395","inReplyTo":null,"subject":"Error","fromName":"Chanakya Vattikuti","fromEmail":"gk2cveragon1@gmail.com","sentAt":"2013-07-10T01:30:37Z","receivedAt":"2013-07-10T01:30:37Z","isPatch":false,"sender":{"key":"gk2cveragon1@gmail.com","avatar":null},"body":"I get this error message when trying to create a shared ssh key in Mac osx Lion\n\nscp .ssh/id_rsa.pub cvattiku@cook.cs.uno.edu:~/\nssh_exchange_identification: Connection closed by remote host\nlost connection\n"},{"id":"223024","messageId":"20130710191559.a0236010ffccbdd526d4d69c@domain007.com","threadId":"34395","inReplyTo":"632ECB1A-63EA-4334-8716-53A1F45B6E0B@gmail.com","subject":"Re: Error","fromName":"Konstantin Khomoutov","fromEmail":"kostix+git@007spb.ru","sentAt":"2013-07-10T15:15:59Z","receivedAt":"2013-07-10T15:15:59Z","isPatch":false,"sender":{"key":"kostix+git@007spb.ru","avatar":null},"body":"On Tue, 9 Jul 2013 20:30:37 -0500\nChanakya Vattikuti <gk2cveragon1@gmail.com> wrote:\n\n> I get this error message when trying to create a shared ssh key in\n> Mac osx Lion\n\nThis problem has nothing to do with Git as it purely is about\ntransferring a public part of your SSH key to another host.\nSo try asking on the OS support channels.\n\n> scp .ssh/id_rsa.pub cvattiku@cook.cs.uno.edu:~/\n> ssh_exchange_identification: Connection closed by remote host\n> lost connection\n\nSince the public part of your key is not transferred to that remote host\nyet, and it is not registered as a trusted key there, you have to use\nan SSH authentication method other than \"publickey\".  Or, if you have\nanother SSH key which is registered as trusted on the remote host, you\nmight try to use it explicitly using the \"-i <private_key_file_>\"\ncommand-line option to `scp`.\n\nIf this fails or not applicable, at least try to run `scp` with\nmultiple \"-v\" command-line options (like `scp -vvvv ...`) to get\nextensive details about authentication protocols it tried with the\nserver and which of them were agreed upon by both sides and tried.\n\nIt might turn out that the server only accepts publickey authentication\nmechanism, and so you are not able to upload and register your public\nkey yourself (chicken and egg problem).  In that case, contact the\nserver's system administrator for assistance.\n\nIf the server has certain \"Git hosting\" solution like Gitlab, you might\nneed to try registering your key using some other means like logging to\nyour Git account via some web interface and pasting the key there --\njust like you'd do this on github.\n\nIf studying that information won't help you, provide it when you will\nbe asking this question on the Mac OS support channels.\n"}]}