I think it’s expecting the server’s public key to be in the Bitbucket server’s .ssh/known_hosts file, or something like that. You have to get them to shake hands once first.
Walter
On Sep 2, 2013, at 8:21 PM, Todd wrote:
I’m logged into my server via SSH and I’m trying to clone my private BitBucket repo into a directory.
When I run the command:
git clone email@hidden:MyAccount/repo.git
I get the following error:
Permission denied (publickey).
Does this have something to do with my server or the BitBucket server? Or a SSH key?
That’s kinda what I thought. When I generate a ssh key then try to copy the output to the pasteboard using pbcopy < ~/.ssh/id_rsa.pub it throws an “unknown command error”. Is there another way to copy the output?
Todd
I think it’s expecting the server’s public key to be in the Bitbucket server’s .ssh/known_hosts file, or something like that. You have to get them to shake hands once first.
Walter
On Sep 2, 2013, at 8:21 PM, Todd wrote:
I’m logged into my server via SSH and I’m trying to clone my private BitBucket repo into a directory.
When I run the command:
git clone email@hidden:MyAccount/repo.git
I get the following error:
Permission denied (publickey).
Does this have something to do with my server or the BitBucket server? Or a SSH key?
Where are you trying to paste the result? Does Bitbucket expose a UI for adding new keys like Github does? (I’ve never used Bitbucket at all.)
Walter
On Sep 2, 2013, at 9:16 PM, Todd wrote:
That’s kinda what I thought. When I generate a ssh key then try to copy the output to the pasteboard using pbcopy < ~/.ssh/id_rsa.pub it throws an “unknown command error”. Is there another way to copy the output?
I think it’s expecting the server’s public key to be in the Bitbucket server’s .ssh/known_hosts file, or something like that. You have to get them to shake hands once first.
Walter
On Sep 2, 2013, at 8:21 PM, Todd wrote:
I’m logged into my server via SSH and I’m trying to clone my private BitBucket repo into a directory.
When I run the command:
git clone email@hidden:MyAccount/repo.git
I get the following error:
Permission denied (publickey).
Does this have something to do with my server or the BitBucket server? Or a SSH key?
Yes it does. Very similar. The key I paste in BB needs to begin with “ssh-rsa…”. The problem is that after I generate the keys via Terminal they aren’t shown in that format, only when I use the pbcopy command do I get a properly formatted key that I can paste in BB. This is how I was able to copy/paste my local ssh keys into BB.
Todd
Where are you trying to paste the result? Does Bitbucket expose a UI for adding new keys like Github does? (I’ve never used Bitbucket at all.)
Walter
On Sep 2, 2013, at 9:16 PM, Todd wrote:
That’s kinda what I thought. When I generate a ssh key then try to copy the output to the pasteboard using pbcopy < ~/.ssh/id_rsa.pub it throws an “unknown command error”. Is there another way to copy the output?
I think it’s expecting the server’s public key to be in the Bitbucket server’s .ssh/known_hosts file, or something like that. You have to get them to shake hands once first.
Walter
On Sep 2, 2013, at 8:21 PM, Todd wrote:
I’m logged into my server via SSH and I’m trying to clone my private BitBucket repo into a directory.
When I run the command:
git clone email@hidden:MyAccount/repo.git
I get the following error:
Permission denied (publickey).
Does this have something to do with my server or the BitBucket server? Or a SSH key?
Ah. I have never had that issue, I just use Transmit to edit the ssh key from the server, copy within there, and paste in the web UI. Oh, and if you are trying to pbcopy from the server, that would have to be a Mac server, since pbcopy only exists on Mac OS X. The command has to exist on the server to use it.
Walter
On Sep 2, 2013, at 9:25 PM, Todd wrote:
Yes it does. Very similar. The key I paste in BB needs to begin with “ssh-rsa…”. The problem is that after I generate the keys via Terminal they aren’t shown in that format, only when I use the pbcopy command do I get a properly formatted key that I can paste in BB. This is how I was able to copy/paste my local ssh keys into BB.
Listening to the two of you, this is what I think of -
"I’m thinking, y’know, eight-year-old white girl, middle of the ghetto,
bunch of monsters, this time of night with quantum physics books? She about
to start some shit. Those books are WAY too advanced for her - If you ask
me, I’d say she’s up to something."
–
Ernie Simpson
On Mon, Sep 2, 2013 at 9:34 PM, Todd email@hidden wrote:
Listening to the two of you, this is what I think of -
"I’m thinking, y’know, eight-year-old white girl, middle of the ghetto,
bunch of monsters, this time of night with quantum physics books? She about
to start some shit. Those books are WAY too advanced for her - If you ask
me, I’d say she’s up to something."
–
Ernie Simpson
On Mon, Sep 2, 2013 at 9:34 PM, Todd email@hidden wrote:
Listening to the two of you, this is what I think of -
"I’m thinking, y’know, eight-year-old white girl, middle of the ghetto,
bunch of monsters, this time of night with quantum physics books? She about
to start some shit. Those books are WAY too advanced for her - If you ask
me, I’d say she’s up to something."
–
Ernie Simpson
On Mon, Sep 2, 2013 at 9:34 PM, Todd email@hidden wrote: