Re: [PLUG] Replacing github public key

2023-08-03 Thread Michael Ewan
That file name mismatch would be a problem.

On Thu, Aug 3, 2023 at 3:56 AM Russell Senior  wrote:

> > "Rich" == Rich Shepard  writes:
>
> Rich> -rw--- 1 rshepard users 1766 Jul 31 07:16 id_rsa.github
> Rich> -rw-r--r-- 1 rshepard users  406 Jul 31 07:16 id_rsa_github.pub
>
> I don't know if that's a typo, but the private key (the one without the
> .pub suffix) has filename punctuation that does not match the public key
> ('.github' instead of a '_github'). Perhaps that was your problem.
>
>
> --
> Russell Senior
> russ...@pdxlinux.org
>


Re: [PLUG] Replacing github public key

2023-08-03 Thread Russell Senior
> "Rich" == Rich Shepard  writes:

Rich> -rw--- 1 rshepard users 1766 Jul 31 07:16 id_rsa.github
Rich> -rw-r--r-- 1 rshepard users  406 Jul 31 07:16 id_rsa_github.pub

I don't know if that's a typo, but the private key (the one without the
.pub suffix) has filename punctuation that does not match the public key
('.github' instead of a '_github'). Perhaps that was your problem.


-- 
Russell Senior
russ...@pdxlinux.org


Re: [PLUG] Replacing github public key [RESOLVED]

2023-07-31 Thread Rich Shepard

On Mon, 31 Jul 2023, Johnathan Mantey wrote:


https://docs.github.com/en/authentication/connecting-to-github-with-ssh/testing-your-ssh-connection


Many thanks, Johnathan. I'm now authenticated with github and sync'd my
local repo with github's.

Regards,

Rich


Re: [PLUG] Replacing github public key

2023-07-31 Thread Johnathan Mantey
https://docs.github.com/en/authentication/connecting-to-github-with-ssh/testing-your-ssh-connection

On Mon, Jul 31, 2023 at 9:49 AM Rich Shepard 
wrote:

> On Mon, 31 Jul 2023, Johnathan Mantey wrote:
>
> > Did you use their 'ssh -T url' function to see if ssh was configured
> > correctly?
>
> John,
>
> No. I assume that's some place after I log in to my github account. Yes?
>
> Thanks,
>
> Rich
>


Re: [PLUG] Replacing github public key

2023-07-31 Thread Rich Shepard

On Mon, 31 Jul 2023, Johnathan Mantey wrote:


Did you use their 'ssh -T url' function to see if ssh was configured
correctly?


John,

No. I assume that's some place after I log in to my github account. Yes?

Thanks,

Rich


Re: [PLUG] Replacing github public key

2023-07-31 Thread Johnathan Mantey
Did you use their 'ssh -T url' function to see if ssh was configured
correctly?

On Mon, Jul 31, 2023 at 8:40 AM Rich Shepard 
wrote:

> On Mon, 31 Jul 2023, Johnathan Mantey wrote:
>
> > Do you have any special settings in your .gitconfig?
>
> Nope; user, core, alias.
>
> Thanks,
>
> Rich
>


Re: [PLUG] Replacing github public key

2023-07-31 Thread Rich Shepard

On Mon, 31 Jul 2023, Johnathan Mantey wrote:


Do you have any special settings in your .gitconfig?


Nope; user, core, alias.

Thanks,

Rich


Re: [PLUG] Replacing github public key

2023-07-31 Thread Johnathan Mantey
Do you have any special settings in your .gitconfig?

On Mon, Jul 31, 2023 at 8:16 AM Rich Shepard 
wrote:

> On Mon, 31 Jul 2023, Ali Corbin wrote:
>
> > ssh is picky about permissions, and won't work if the keys are too open.
> > Mine are:
> > -rw---  1 ali ali  411 Jul 14  2022 id_ed25519
> > -rw-r--r--  1 ali ali  102 Jul 14  2022 id_ed25519.pub
>
> Ali,
>
> So are mine:
> -rw--- 1 rshepard users 1766 Jul 31 07:16 id_rsa.github
> -rw-r--r-- 1 rshepard users  406 Jul 31 07:16 id_rsa_github.pub
>
> Thanks,
>
> Rich
>


Re: [PLUG] Replacing github public key

2023-07-31 Thread Rich Shepard

On Mon, 31 Jul 2023, Ali Corbin wrote:


ssh is picky about permissions, and won't work if the keys are too open.
Mine are:
-rw---  1 ali ali  411 Jul 14  2022 id_ed25519
-rw-r--r--  1 ali ali  102 Jul 14  2022 id_ed25519.pub


Ali,

So are mine:
-rw--- 1 rshepard users 1766 Jul 31 07:16 id_rsa.github
-rw-r--r-- 1 rshepard users  406 Jul 31 07:16 id_rsa_github.pub

Thanks,

Rich


Re: [PLUG] Replacing github public key

2023-07-31 Thread Ali Corbin
On Mon, Jul 31, 2023 at 7:46 AM Rich Shepard 
wrote:

> Somehow I managed to lose ~/.ssh/id_rsa_github so I just generated a new
> id_rsa key pair. Logged into my github account, deleted the old public key
> and added the new one (github's email shows it to be much shorter than the
> string in ~/.ssh/id_rsa_github.pub).
>
> However, it's not working. When I try to sync my local web site directory
> with its github origin/master directory my attempt fails:
> $ git push origin
> no such identity: /home/rshepard/.ssh/id_rsa_github: No such file or
> directory
> Permission denied (publickey).
> fatal: Could not read from remote repository.
>
> Please make sure you have the correct access rights
> and the repository exists
>
> Yet, in ~/.ssh/ there are both id_rsa_github and id_rsa_github.pub, both
> freshly generated.
>
> What have I missed?
>
> TIA,
>
> Rich
>

ssh is picky about permissions, and won't work if the keys are too open.
Mine are:
-rw---  1 ali ali  411 Jul 14  2022 id_ed25519
-rw-r--r--  1 ali ali  102 Jul 14  2022 id_ed25519.pub