~sircmpwn/sr.ht-discuss

6 4

git@git.sr.ht: Permission denied (publickey,keyboard-interactive).

Details
Message ID
<Mrowj43--3-2@tuta.io>
DKIM signature
missing
Download raw message
Hi there!

I'm trying to push my local repo to a remote that I created at https://sr.ht/~pariahkite/returning_to_ourselves/

I used this guide: https://man.sr.ht/tutorials/set-up-account-and-git.md

And did the following:
1. I've my local repo located on my GNU/Linux system at `/home/pariahkite/Drive/Mine/Therapy/SAND`
2. I created the remote repo seen at https://sr.ht/~pariahkite/returning_to_ourselves/
3. Ran `ssh-keygen`, naming the key as `sourcehut` and gave a passphrase. I've no other keys.
4. Ran `git  remote add origin git@git.sr.ht:~pariahkite/returning_to_ourselves` and there were no errors.
5. When I try `git push -u origin main`, I get the following error:

git@git.sr.ht: Permission denied (publickey,keyboard-interactive). 
fatal: Could not read from remote repository. 
 
Please make sure you have the correct access rights 
and the repository exists.
Please help.

pariahkite
Details
Message ID
<20211226054346.vnogoszk6jvewvqq@microconnector>
In-Reply-To
<Mrowj43--3-2@tuta.io> (view parent)
DKIM signature
missing
Download raw message
On 21/12/26 05:21AM, pariahkite@tuta.io wrote:
> Hi there!
> 
> I'm trying to push my local repo to a remote that I created at https://sr.ht/~pariahkite/returning_to_ourselves/
> 
> I used this guide: https://man.sr.ht/tutorials/set-up-account-and-git.md
> 
> And did the following:
> 1. I've my local repo located on my GNU/Linux system at `/home/pariahkite/Drive/Mine/Therapy/SAND`
> 2. I created the remote repo seen at https://sr.ht/~pariahkite/returning_to_ourselves/
> 3. Ran `ssh-keygen`, naming the key as `sourcehut` and gave a passphrase. I've no other keys.
> 4. Ran `git  remote add origin git@git.sr.ht:~pariahkite/returning_to_ourselves` and there were no errors.
> 5. When I try `git push -u origin main`, I get the following error:

The step that seems to be missing is placing your public key on the
site.

https://meta.sr.ht/keys is the page you will want to add your public key
to so that it can authenticate with your created private key.
Details
Message ID
<MrpJ3u2--3-2@tuta.io>
In-Reply-To
<20211226054346.vnogoszk6jvewvqq@microconnector> (view parent)
DKIM signature
missing
Download raw message

> The step that seems to be missing is placing your public key on the
> site.
>
> https://meta.sr.ht/keys is the page you will want to add your public key
> to so that it can authenticate with your created private key.
>
Oops! Sorry, I'd missed including the step when I wrote the email. 
I'd actually added the public key to https://meta.sr.ht/keys just before step 4.
Details
Message ID
<20211226135046.6a25e42c@inspiro.localdomain>
In-Reply-To
<Mrowj43--3-2@tuta.io> (view parent)
DKIM signature
missing
Download raw message
On Sun, 26 Dec 2021 05:21:07 +0100 (CET)
pariahkite@tuta.io wrote:

> Hi there!
> 
> I'm trying to push my local repo to a remote that I created at
> https://sr.ht/~pariahkite/returning_to_ourselves/
> 
> I used this guide:
> https://man.sr.ht/tutorials/set-up-account-and-git.md
> 
> And did the following:
> 1. I've my local repo located on my GNU/Linux system at
> `/home/pariahkite/Drive/Mine/Therapy/SAND` 2. I created the remote
> repo seen at https://sr.ht/~pariahkite/returning_to_ourselves/ 3. Ran
> `ssh-keygen`, naming the key as `sourcehut` and gave a passphrase.
> I've no other keys.

Have you set the SSH config to point to your key? [1]

[1]
https://man.sr.ht/tutorials/set-up-account-and-git.md#specifying-a-key

--
{ "github":"github.com/shuLhan", "site":"kilabit.info" }
Details
Message ID
<CGP24QQZVSZ6.27FC5A03VCKSD@megumin>
In-Reply-To
<Mrowj43--3-2@tuta.io> (view parent)
DKIM signature
missing
Download raw message
On Sun Dec 26, 2021 at 5:21 AM CET,  wrote:
> Hi there!
>
> I'm trying to push my local repo to a remote that I created at
> https://sr.ht/~pariahkite/returning_to_ourselves/
>
> I used this guide: https://man.sr.ht/tutorials/set-up-account-and-git.md
>
> And did the following:
> 1. I've my local repo located on my GNU/Linux system at
> `/home/pariahkite/Drive/Mine/Therapy/SAND`
> 2. I created the remote repo seen at
> https://sr.ht/~pariahkite/returning_to_ourselves/
> 3. Ran `ssh-keygen`, naming the key as `sourcehut` and gave a
> passphrase. I've no other keys.

This is probably the problem. Leave this blank to use the default name
of id_rsa instead, or configure SSH to use your custom name. Kind of a
footgun in ssh-keygen I guess.
Details
Message ID
<Mrph8er--3-2@tuta.io>
In-Reply-To
<CGP24QQZVSZ6.27FC5A03VCKSD@megumin> (view parent)
DKIM signature
missing
Download raw message
> Leave this blank to use the default name
of id_rsa instead

That did it for me! Thanks so much people! :D
Details
Message ID
<Mrpiv9F--3-2@tuta.io>
In-Reply-To
<20211226135046.6a25e42c@inspiro.localdomain> (view parent)
DKIM signature
missing
Download raw message

> Have you set the SSH config to point to your key? [1]
>
I'd skipped that step as I am not using any other keys on the system.
Reply to thread Export thread (mbox)