C:\Users\ABC>git clone git@heroku.com:mn.git -o heroku
Cloning into 'mn'...
The authenticity of host 'heroku.com (50.19.85.132)' can't be established.
RSA key fingerprint is 8b:48:5e:67:0e:c9:16:47:32:f2:87:0c:1f:c8:60:ad.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added 'heroku.com,50.19.85.132' (RSA) to the list of known
hosts.
Permission denied (publickey).
fatal: The remote end hung up unexpectedly
The above error can come when you are doing an operation in your Heroku account from a different machine (other than the one you had used to log-in for the first time). The Heroku log-in generates a public key on the very first log-in attempt. Now, each client that needs to log-in to Heroku, must generate a public key. Since it does not happen automatically on subsequent log-ins, it needs to be done manually for each machine that you intend to use to operate your Heroku account from.
This is how you can generate a public key and add it to your Heroku account
$ ssh-keygen -t rsa
$ heroku keys:add
The first command would generate a public key. And, the second one would add it to your account. You can see all the keys added to your Heroku account by:
$ heroku keys
More information on the above topic can be found on:https://devcenter.heroku.com/articles/keys
Hope it helps! :)