list mirror (unofficial, one of many)
 help / color / mirror / code / Atom feed
From: Konstantin Khomoutov <>
To: Chanakya Vattikuti <>
Subject: Re: Error
Date: Wed, 10 Jul 2013 19:15:59 +0400	[thread overview]
Message-ID: <> (raw)
In-Reply-To: <>

On Tue, 9 Jul 2013 20:30:37 -0500
Chanakya Vattikuti <> 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/
> 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.

  reply	other threads:[~2013-07-10 15:16 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-07-10  1:30 Error Chanakya Vattikuti
2013-07-10 15:15 ` Konstantin Khomoutov [this message]
2016-09-22 23:02 error Luciano Schillagi
2016-09-23  4:46 ` error Jeff King
     [not found] <>
     [not found] ` <>
2016-10-04 17:27   ` error Jeff King

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:

  List information:

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \ \ \ \ \
    --subject='Re: Error' \

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

Code repositories for project(s) associated with this inbox:

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).