As I get nothing but timeouts when trying to connect to ssh on that domain and as the IP is owned by cloud flare, can you please share a screenshot of how you have set the domain up in your CF DNS dashboard?
PS: it would have helped, if you had said from the beginning that the SSH output was incomplete. We assumed you were logged in to the remote system.
(I think you need to also include any users that need to ssh into the server, as the optionâs description says âIf specified, login is allowed only for the listed users. âŚâ)
The smoking gun was the sshd logs included the line:
User forgejo from [ip] not allowed because not listed in AllowUsers
I do, if I change to DNS on CF I canât access the site at all. It could be a mix of both a CF since they only serve HTTP traffic, I have seen some talks about setting up another forward for git.ssh.ahoneybun.net or something like that to point to the SSH port or something.
What do you mean, you canât access at all? That then sounds like a much deeper problem in your setup, though as long as you have âproxiedâ rather than âDNS onlyâ, you will not be able to access anything but HTTP(S).
As said, this sounds like a massive misconfiguration on the server.
If CF can proxy the page, you should also be able to access it. The only thing that I could imagine is that you do not have set up HTTPS, but because of HLTS your browser tries to enforce HTTPS.
And that of course is not accessible then.
But while CF proxy is enabled, they do the HTTPS for you.
Not being able to SSH in is likely a seperate problem.
Alternatively you simply have retried far too eagerly, not waiting for the change in DNS to propagate.
I would like you to:
disable proxy
wait for DNS to propagate (~1h at least)
curl your site, share the logs, if there were any errors
try in browser, share a screenshot of the very exact error message
try cloning, tell us the very exact command you used, share the very exact error message, share your forgejo config.
I waited over a day once I turned off the Proxy for CF, it redirects HTTP traffic so I think I simply canât do SSH over it (the docs say that as well).
git.ahoneybun.net resolves to 104.21.39.202, which is owned by CF, I therefore assume you either have the proxy still active or DNS didnât propagate to my end yet. When did you disable the proxy? Please specify time n UTC.
Alright I got it to work! I did not use the articles I linked but I want to explain the way I got it to work and we can close this post.
I have Tailscale setup on my laptop and the server in question so I setup a A record for git-ssh@ahoneybun.net going to the Tailscale IPv4 address with no Proxy so just DNS. Once that synced I am able to connect with:
PTY allocation request failed on channel 0
Hi there, ahoneybun! Youâve successfully authenticated with the key named aaronhoneycutt@protonmail.com, but Forgejo does not provide shell access.
If this is unexpected, please log in with password and setup Forgejo under another user.
Connection to git-ssh.ahoneybun.net closed.