Help needed with adding up SSH key to my account

Hello everyone, newcomer here!

I’m having trouble with adding an SSH key to my CodeFloe account. I followed the instructions linked in the CodeFloe settings: Adding an SSH key to your account | Codeberg Documentation .

However, when I run ssh -T git@codefloe.com I get the following error:

The authenticity of host 'codefloe.com (2a01:4f8:1c17:5398::1)' can't be established.
ED25519 key fingerprint is SHA256:bgLJ62crxndLUQrWxYcJhPqwazO4pnhWPcnH52DSgVQ.
This key is not known by any other names.
Are you sure you want to continue connecting (yes/no/[fingerprint])? no
Host key verification failed.

Here is my .ssh/config:

Host github.com
  AddKeysToAgent yes
  UseKeychain yes
  IdentityFile ~/.ssh/id_ed25519

Host codefloe.com
  HostName codefloe.com
  User git
  IdentityFile ~/.ssh/id_ed25519_codefloe

What am I missing?

You should trust the host and select “yes”. Any reason you selected “no”?

Your SSH config looks good.

Getting ssh to work is the same procedure as for GitHub or any other Git Forge.

I selected “no”, because I was expecting to receive the following message right away:

Hi there, ____! You've successfully authenticated with the key named ____, but Forgejo does not provide shell access.
If this is unexpected, please log in with password and setup Forgejo under another user.

After selecting “yes” it’s working as expected. Thanks!

1 Like