Is this happening with your ADFS repository fork?
It could be that the way you are cloning your fork is incorrect.
What does the ADFS/.git/config file contain?
Code: Select all
cat ADFS/.git/config
Is this happening with your ADFS repository fork?
Code: Select all
cat ADFS/.git/config
Code: Select all
cat ADFS/.git/config
[core]
repositoryformatversion = 0
filemode = true
bare = false
logallrefupdates = true
[remote "origin"]
url = git@github.com:beebmaster/ADFS.git
fetch = +refs/heads/*:refs/remotes/origin/*
[branch "master"]
remote = origin
merge = refs/heads/master
Code: Select all
Host github.com
User git
IdentityFile ~/.ssh/git
IdentitiesOnly yes
ForwardAgent no
Code: Select all
$ ssh-keygen.exe -l -f ~/.ssh/id_rsa
3072 SHA256:gfKm3imUpntVHgWNMuCKTlPAlTkGCtqCBYd3Jq7lvD4 tom@nequinox (RSA)
Code: Select all
Tom Seddon [work PC]
SHA256:gfKm3imUpntVHgWNMuCKTlPAlTkGCtqCBYd3Jq7lvD4
GitHub doesn't show you the actual key any more, just the SHA256.
Ah. Shows how long it is since I've had to log in and change anything then!tom_seddon wrote: ↑Tue Sep 19, 2023 3:22 pm GitHub doesn't show you the actual key any more, just the SHA256.
Code: Select all
Host account2.github.com
Hostname github.com
User git
IdentifyFile ~/.ssh/git_account2
IdentitiesOnly yes
ForwardAgent yet
Code: Select all
git clone -c user.name="My Account2 Name" -c user.email="My Account2 Email" git@account2.github.com:FOO/bar
Code: Select all
ssh-keygen -t ed25519 -C beebmaster@beebmaster.co.uk
ssh-add ../ssh.pub
ssh-add ../ssh
Code: Select all
ssh-keygen -l -f ssh
256 SHA256:ksNt0MwV3N5cAIfcVzB1qLn9v2k13PmyetWkpIzNPhU beebmaster@beebmaster.co.uk (ED25519)
Code: Select all
git push origin HEAD
git@github.com: Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
Code: Select all
ls -l ssh*
-rw------- 1 ian ian 419 Aug 29 00:28 ssh
-rw------- 1 ian ian 109 Aug 29 00:28 ssh.pub
Code: Select all
ssh -vT git@github.com
OpenSSH_8.9p1 Ubuntu-3ubuntu0.3, OpenSSL 3.0.2 15 Mar 2022
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 19: include /etc/ssh/ssh_config.d/*.conf matched no files
debug1: /etc/ssh/ssh_config line 21: Applying options for *
debug1: Connecting to github.com [140.82.121.3] port 22.
debug1: Connection established.
debug1: identity file /home/ian/.ssh/id_rsa type -1
debug1: identity file /home/ian/.ssh/id_rsa-cert type -1
debug1: identity file /home/ian/.ssh/id_ecdsa type -1
debug1: identity file /home/ian/.ssh/id_ecdsa-cert type -1
debug1: identity file /home/ian/.ssh/id_ecdsa_sk type -1
debug1: identity file /home/ian/.ssh/id_ecdsa_sk-cert type -1
debug1: identity file /home/ian/.ssh/id_ed25519 type 3
debug1: identity file /home/ian/.ssh/id_ed25519-cert type -1
debug1: identity file /home/ian/.ssh/id_ed25519_sk type -1
debug1: identity file /home/ian/.ssh/id_ed25519_sk-cert type -1
debug1: identity file /home/ian/.ssh/id_xmss type -1
debug1: identity file /home/ian/.ssh/id_xmss-cert type -1
debug1: identity file /home/ian/.ssh/id_dsa type -1
debug1: identity file /home/ian/.ssh/id_dsa-cert type -1
debug1: Local version string SSH-2.0-OpenSSH_8.9p1 Ubuntu-3ubuntu0.3
debug1: Remote protocol version 2.0, remote software version babeld-70f1bac9
debug1: compat_banner: no match: babeld-70f1bac9
debug1: Authenticating to github.com:22 as 'git'
debug1: load_hostkeys: fopen /home/ian/.ssh/known_hosts2: No such file or directory
debug1: load_hostkeys: fopen /etc/ssh/ssh_known_hosts: No such file or directory
debug1: load_hostkeys: fopen /etc/ssh/ssh_known_hosts2: No such file or directory
debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug1: kex: algorithm: curve25519-sha256
debug1: kex: host key algorithm: ssh-ed25519
debug1: kex: server->client cipher: chacha20-poly1305@openssh.com MAC: <implicit> compression: none
debug1: kex: client->server cipher: chacha20-poly1305@openssh.com MAC: <implicit> compression: none
debug1: expecting SSH2_MSG_KEX_ECDH_REPLY
debug1: SSH2_MSG_KEX_ECDH_REPLY received
debug1: Server host key: ssh-ed25519 SHA256:+DiY3wvvV6TuJJhbpZisF/zLDA0zPMSvHdkr4UvCOqU
debug1: load_hostkeys: fopen /home/ian/.ssh/known_hosts2: No such file or directory
debug1: load_hostkeys: fopen /etc/ssh/ssh_known_hosts: No such file or directory
debug1: load_hostkeys: fopen /etc/ssh/ssh_known_hosts2: No such file or directory
debug1: Host 'github.com' is known and matches the ED25519 host key.
debug1: Found key in /home/ian/.ssh/known_hosts:1
debug1: rekey out after 134217728 blocks
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug1: SSH2_MSG_NEWKEYS received
debug1: rekey in after 134217728 blocks
debug1: get_agent_identities: bound agent to hostkey
debug1: get_agent_identities: ssh_fetch_identitylist: agent contains no identities
debug1: Will attempt key: /home/ian/.ssh/id_rsa
debug1: Will attempt key: /home/ian/.ssh/id_ecdsa
debug1: Will attempt key: /home/ian/.ssh/id_ecdsa_sk
debug1: Will attempt key: /home/ian/.ssh/id_ed25519 ED25519 SHA256:nyKlW1+YfdDV4wAg8UqrA4DTmqd47nWcbjxLVmTWZoE
debug1: Will attempt key: /home/ian/.ssh/id_ed25519_sk
debug1: Will attempt key: /home/ian/.ssh/id_xmss
debug1: Will attempt key: /home/ian/.ssh/id_dsa
debug1: SSH2_MSG_EXT_INFO received
debug1: kex_input_ext_info: server-sig-algs=<ssh-ed25519-cert-v01@openssh.com,ecdsa-sha2-nistp521-cert-v01@openssh.com,ecdsa-sha2-nistp384-cert-v01@openssh.com,ecdsa-sha2-nistp256-cert-v01@openssh.com,sk-ssh-ed25519-cert-v01@openssh.com,sk-ecdsa-sha2-nistp256-cert-v01@openssh.com,rsa-sha2-512-cert-v01@openssh.com,rsa-sha2-256-cert-v01@openssh.com,ssh-rsa-cert-v01@openssh.com,sk-ssh-ed25519@openssh.com,sk-ecdsa-sha2-nistp256@openssh.com,ssh-ed25519,ecdsa-sha2-nistp521,ecdsa-sha2-nistp384,ecdsa-sha2-nistp256,rsa-sha2-512,rsa-sha2-256,ssh-rsa>
debug1: SSH2_MSG_SERVICE_ACCEPT received
debug1: Authentications that can continue: publickey
debug1: Next authentication method: publickey
debug1: Trying private key: /home/ian/.ssh/id_rsa
debug1: Trying private key: /home/ian/.ssh/id_ecdsa
debug1: Trying private key: /home/ian/.ssh/id_ecdsa_sk
debug1: Offering public key: /home/ian/.ssh/id_ed25519 ED25519 SHA256:nyKlW1+YfdDV4wAg8UqrA4DTmqd47nWcbjxLVmTWZoE
debug1: Authentications that can continue: publickey
debug1: Trying private key: /home/ian/.ssh/id_ed25519_sk
debug1: Trying private key: /home/ian/.ssh/id_xmss
debug1: Trying private key: /home/ian/.ssh/id_dsa
debug1: No more authentication methods to try.
git@github.com: Permission denied (publickey).
Code: Select all
ls ~/.ssh
id_ed25519 id_ed25519.pub known_hosts known_hosts.old
Code: Select all
Host github.com
IdentityFile /media/GH/ssh
Code: Select all
1380 git clone git@github.com:beebmaster/ADFS.git
1381 ssh -T git@github.com
1382 ssh-add -l -E sha256
1383 ssh -T git@github.com
1384 git
1385 git clone
1386 ssh-add /media/GH/ssh
1387 ssh -T git@github.com
1388 ssh-add -l -E sha256
1389 git clone git@github.com:beebmaster/ADFS.git
1390 git add
Code: Select all
ssh-add /media/GH/ssh
Identity added: /media/GH/ssh (beebmaster@beebmaster.co.uk)
Code: Select all
git push origin HEAD
Enumerating objects: 29, done.
Counting objects: 100% (29/29), done.
Delta compression using up to 12 threads
Compressing objects: 100% (15/15), done.
Writing objects: 100% (15/15), 1.81 KiB | 1.81 MiB/s, done.
Total 15 (delta 13), reused 0 (delta 0), pack-reused 0
remote: Resolving deltas: 100% (13/13), completed with 13 local objects.
To github.com:beebmaster/ADFS.git
c7b25a3..d676ee9 HEAD -> master
Code: Select all
2023-09-19 21:53:10 ian@BMDesktop2020:/media/GH/ADFS$ git push origin HEAD
Everything up-to-date
2023-09-19 21:53:18 ian@BMDesktop2020:/media/GH/ADFS$ ssh-add -l
The agent has no identities.
2023-09-19 21:53:27 ian@BMDesktop2020:/media/GH/ADFS$ cat ~/.ssh/config
Host github.com
IdentityFile /media/GH/ssh
2023-09-19 21:53:31 ian@BMDesktop2020:/media/GH/ADFS$
It is possible to get the keys out from github but I'm not sure how well documented it is. If you visit https://github.com/<username>.keys you get the keys in the same format as the ~/.ssh/authorized_keys file. I've often used this for setting up user accounts as it's relatively easy to curl/wget a set of public keys for someone.tom_seddon wrote: ↑Tue Sep 19, 2023 3:22 pm GitHub doesn't show you the actual key any more, just the SHA256.