SSH prompting for password during Forgejo git setup

Hi, I am trying to set up ssh into my Forgejo account. I was able to add and verify my public key in settings, but when I run ssh -T git@git.32bit.cafe I am prompted for git@git.32bit.cafe``'s password:

I don’t remember running into this issue when I set up github a few years ago so I’m a bit lost, and my fj password doesn’t work.

Here’s the output of ssh -vT git@git.32bit.cafe if that helps at all :')

OpenSSH_9.9p2, LibreSSL 3.3.6
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 21: include /etc/ssh/ssh_config.d/* matched no files
debug1: /etc/ssh/ssh_config line 54: Applying options for *
debug1: Authenticator provider $SSH_SK_PROVIDER did not resolve; disabling
debug1: Connecting to git.32bit.cafe port 22.
debug1: Connection established.
debug1: identity file /Users/w/.ssh/id_rsa type -1
debug1: identity file /Users/w/.ssh/id_rsa-cert type -1
debug1: identity file /Users/w/.ssh/id_ecdsa type -1
debug1: identity file /Users/w/.ssh/id_ecdsa-cert type -1
debug1: identity file /Users/w/.ssh/id_ecdsa_sk type -1
debug1: identity file /Users/w/.ssh/id_ecdsa_sk-cert type -1
debug1: identity file /Users/w/.ssh/id_ed25519 type 3
debug1: identity file /Users/w/.ssh/id_ed25519-cert type -1
debug1: identity file /Users/w/.ssh/id_ed25519_sk type -1
debug1: identity file /Users/w/.ssh/id_ed25519_sk-cert type -1
debug1: identity file /Users/w/.ssh/id_xmss type -1
debug1: identity file /Users/w/.ssh/id_xmss-cert type -1
debug1: identity file /Users/w/.ssh/id_dsa type -1
debug1: identity file /Users/w/.ssh/id_dsa-cert type -1
debug1: Local version string SSH-2.0-OpenSSH_9.9
debug1: Remote protocol version 2.0, remote software version OpenSSH_10.0p2 Debian-7+deb13u4
debug1: compat_banner: match: OpenSSH_10.0p2 Debian-7+deb13u4 pat OpenSSH* compat 0x04000000
debug1: Authenticating to git.32bit.cafe:22 as 'git'
debug1: load_hostkeys: fopen /Users/w/.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: sntrup761x25519-sha512
debug1: kex: host key algorithm: ssh-ed25519
debug1: kex: server->client cipher: ``chacha20-poly1305@openssh.com`` MAC: compression: none
debug1: kex: client->server cipher: ``chacha20-poly1305@openssh.com`` MAC: compression: none
debug1: expecting SSH2_MSG_KEX_ECDH_REPLY
debug1: SSH2_MSG_KEX_ECDH_REPLY received
debug1: Server host key: ssh-ed25519 SHA256:THNKCUbXCMwn85pELxiPPqqOGtwzyBdHwZGCXz1xF3g
debug1: load_hostkeys: fopen /Users/w/.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 'git.32bit.cafe' is known and matches the ED25519 host key.
debug1: Found key in /Users/w/.ssh/known_hosts:8
debug1: ssh_packet_send2_wrapped: resetting send seqnr 3
debug1: rekey out after 134217728 blocks
debug1: SSH2_MSG_NEWKEYS sent
debug1: Sending SSH2_MSG_EXT_INFO
debug1: expecting SSH2_MSG_NEWKEYS
debug1: ssh_packet_read_poll2: resetting read seqnr 3
debug1: SSH2_MSG_NEWKEYS received
debug1: rekey in after 134217728 blocks
debug1: SSH2_MSG_EXT_INFO received
debug1: kex_ext_info_client_parse: server-sig-algs=<ssh-ed25519,ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521,sk-ssh-ed25519@openssh.com,sk-ecdsa-sha2-nistp256@openssh.com,rsa-sha2-512,rsa-sha2-256>
debug1: kex_ext_info_check_ver: ``publickey-hostbound@openssh.com=``<0>
debug1: kex_ext_info_check_ver: ``ping@openssh.com=``<0>
debug1: SSH2_MSG_SERVICE_ACCEPT received
debug1: SSH2_MSG_EXT_INFO received
debug1: kex_ext_info_client_parse: server-sig-algs=<ssh-ed25519,ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521,sk-ssh-ed25519@openssh.com,sk-ecdsa-sha2-nistp256@openssh.com,rsa-sha2-512,rsa-sha2-256>
debug1: Authentications that can continue: publickey,password
debug1: Next authentication method: publickey
debug1: get_agent_identities: bound agent to hostkey
debug1: get_agent_identities: agent returned 1 keys
debug1: Will attempt key: /Users/w/.ssh/id_ed25519 ED25519 SHA256:flEizwVsomf3rlDYHpX9veXViu/2CT/JDvBKush2iQI agent
debug1: Will attempt key: /Users/w/.ssh/id_rsa
debug1: Will attempt key: /Users/w/.ssh/id_ecdsa
debug1: Will attempt key: /Users/w/.ssh/id_ecdsa_sk
debug1: Will attempt key: /Users/w/.ssh/id_ed25519_sk
debug1: Will attempt key: /Users/w/.ssh/id_xmss
debug1: Will attempt key: /Users/w/.ssh/id_dsa
debug1: Offering public key: /Users/w/.ssh/id_ed25519 ED25519 SHA256:flEizwVsomf3rlDYHpX9veXViu/2CT/JDvBKush2iQI agent
debug1: Authentications that can continue: publickey,password
debug1: Trying private key: /Users/w/.ssh/id_rsa
debug1: Trying private key: /Users/w/.ssh/id_ecdsa
debug1: Trying private key: /Users/w/.ssh/id_ecdsa_sk
debug1: Trying private key: /Users/w/.ssh/id_ed25519_sk
debug1: Trying private key: /Users/w/.ssh/id_xmss
debug1: Trying private key: /Users/w/.ssh/id_dsa
debug1: Next authentication method: password

edited to remove identifying information lol

Ssh on the forgejo server is on the nonstandard port 222. Try this ssh -T git@git.32bit.cafe:222

oh wow, I didn’t even register that initially because I was using oauth helper through https but that just was an unpleasant experience. It’s totally in the ssh URL huh :person_facepalming:

I ended up needing to use ssh -Tp 222 git@git.32bit.cafe but that worked, thank you so much!